%{?python_enable_dependency_generator} %global desc Implements support for python plugins in Nvim. Also works as a library for\ connecting to and scripting Nvim processes through its msgpack-rpc API. # EPEL7 Sphinx is too old, disable doc building by default %if 0%{?el7} %bcond_with sphinx %else %bcond_without sphinx %endif # Enable py2 on Fedora before 31 %if 0%{?fedora} < 31 %bcond_without py2 %else %bcond_with py2 %endif Name: python-neovim Version: 0.3.2.0.git.525.febe0f0 Release: 1%{?dist} License: ASL 2.0 Summary: Python client to Neovim URL: https://github.com/neovim/pynvim Source0: python-neovim-0.3.2.0.git.525.febe0f0.tar.gz Patch0: pynvim-0.3.2-dont-require-pytest-runner.patch BuildArch: noarch %if %{with py2} BuildRequires: python2-devel BuildRequires: python2-setuptools %endif BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with sphinx} BuildRequires: python%{python3_pkgversion}-sphinx %if 0%{?fedora} > 30 BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme %endif %endif %description %{desc} %if %{with py2} %package -n python2-neovim Summary: %{summary} %{?python_provide:%python_provide python2-neovim} Requires: neovim %if 0%{?el7} Requires: python-greenlet Requires: python-trollius %else Requires: python2-greenlet Requires: python2-trollius %endif Requires: python2-msgpack %description -n python2-neovim %{desc} %endif %package -n python%{python3_pkgversion}-neovim Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-neovim} Requires: neovim %if %{undefined __pythondist_requires} Requires: python%{python3_pkgversion}-greenlet Requires: python%{python3_pkgversion}-msgpack %endif %description -n python%{python3_pkgversion}-neovim %{desc} %if %{with sphinx} %package doc Summary: Documentation for %{name} %description doc %{desc} This package contains documentation in HTML format. %endif %prep %setup -q -n python-neovim-0.3.2.0.git.525.febe0f0 %patch0 -p1 %build %if %{with py2} %py2_build %endif %py3_build %if %{with sphinx} pushd docs make html SPHINXBUILD=sphinx-build-3 rm -f _build/html/.buildinfo popd %endif %install %if %{with py2} %py2_install %endif %py3_install %if %{with py2} %files -n python2-neovim %license LICENSE %doc README.md %{python2_sitelib}/* %endif %files -n python%{python3_pkgversion}-neovim %license LICENSE %doc README.md %{python3_sitelib}/* %if %{with sphinx} %files doc %license LICENSE %doc docs/_build/html %endif %changelog * Fri Sep 27 2019 Aron Griffis - 0.3.2.0.git.525.febe0f0-1 - Re-enable python2 sub-packages on Fedora prior to 31 - Nightly build from git master * Mon Mar 11 2019 Andreas Schneider - 0.3.2-1 - Update to version 0.3.2 * Sat Feb 02 2019 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 02 2019 Igor Gnatenko - 0.3.1-2 - Enable python dependency generator * Wed Jan 02 2019 Andreas Schneider - 0.3.1-1 - Update to version 0.3.1 * Wed Sep 26 2018 Andreas Schneider - 0.2.6-4 - resolves: #1632298 - Remove python2 sub-packages * Sat Jul 14 2018 Fedora Release Engineering - 0.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.2.6-2 - Rebuilt for Python 3.7 * Thu May 03 2018 Andreas Schneider - 0.2.6-1 - resolves: #1574026 - Update to 0.2.6 * Mon Mar 12 2018 Filip Szymański - 0.2.4-1 - resolves: #1541621 - Update to 0.2.4 - Add -doc subpackage * Fri Feb 09 2018 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Iryna Shcherbina - 0.2.0-2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Dec 30 2017 Filip Szymański - 0.2.0-1 - resolves: #1511245 - Update to 0.2.0 * Thu Jul 27 2017 Fedora Release Engineering - 0.1.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jul 19 2017 Michel Alexandre Salim - 0.1.13-3 - Use %%{python3_pkgversion} macro for EPEL compatibility - special-case python2 greenlet dependency on EL7 * Sat Feb 11 2017 Fedora Release Engineering - 0.1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Filip Szymański - 0.1.13-1 - Update to 0.1.13 - Use %%{summary} macro * Thu Dec 22 2016 Miro Hrončok - 0.1.12-4 - Rebuild for Python 3.6 * Wed Dec 07 2016 Filip Szymański - 0.1.12-3 - Add requires on python-trollius * Mon Dec 05 2016 Filip Szymański - 0.1.12-2 - Add python2- package * Sun Dec 04 2016 Andreas Schneider - 0.1.12-1 - Initial release