]> git.pld-linux.org Git - packages/python3-sphinxcontrib-asyncio.git/commitdiff
- python-sphinxcontrib-asyncio.spec updated to 0.3.0 for python 3.5+/Sphinx 3+ auto/th/python3-sphinxcontrib-asyncio-0.3.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Mar 2022 17:51:54 +0000 (19:51 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Mar 2022 17:51:54 +0000 (19:51 +0200)
python3-sphinxcontrib-asyncio.spec [moved from python-sphinxcontrib-asyncio.spec with 55% similarity]

similarity index 55%
rename from python-sphinxcontrib-asyncio.spec
rename to python3-sphinxcontrib-asyncio.spec
index 22586b0203abb0017a4b15b60fa43496d96f6386..2a967dabdf717412bbeb11c715d080d6446d1cdf 100644 (file)
@@ -1,41 +1,31 @@
 #
 # Conditional build:
 %bcond_without doc     # Sphinx documentation
-%bcond_with    tests   # unit tests (not included in release tarball)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with    tests   # unit tests (not included in sdist)
 
 Summary:       Sphinx extension to support coroutines in markup
 Summary(pl.UTF-8):     Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
-Name:          python-sphinxcontrib-asyncio
-Version:       0.2.0
-Release:       4
+Name:          python3-sphinxcontrib-asyncio
+Version:       0.3.0
+Release:       1
 License:       Apache v2
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinxcontrib-asyncio/
 Source0:       https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
-# Source0-md5: ad3372cb3be157a98834c2f121674862
+# Source0-md5: 5445823a927f3368dd81b9061bec0055
 URL:           https://pypi.org/project/sphinxcontrib-asyncio/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-modules >= 1:3.5
 BuildRequires: python3-setuptools
 %if %{with tests}
+BuildRequires: python3-Sphinx >= 3.0
 BuildRequires: python3-pytest
 %endif
-%endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires: sphinx-pdg
+BuildRequires: sphinx-pdg >= 3.0
 %endif
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.5
 Requires:      python-sphinxcontrib
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,19 +36,6 @@ Sphinx extension for adding asyncio-specific markups.
 %description -l pl.UTF-8
 Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
 
-%package -n python3-sphinxcontrib-asyncio
-Summary:       Sphinx extension to support coroutines in markup
-Summary(pl.UTF-8):     Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.3
-Requires:      python3-sphinxcontrib
-
-%description -n python3-sphinxcontrib-asyncio
-Sphinx extension for adding asyncio-specific markups.
-
-%description -n python3-sphinxcontrib-asyncio -l pl.UTF-8
-Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
-
 %package apidocs
 Summary:       API documentation for Python sphinxcontrib-asyncio module
 Summary(pl.UTF-8):     Dokumentacja API modułu Pythona sphinxcontrib-asyncio
@@ -74,21 +51,12 @@ Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
 %setup -q -n sphinxcontrib-asyncio-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
@@ -98,44 +66,24 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-# provides by python-sphinxcontrib in PLD
-%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib/__init__.py*
-%endif
-
-%if %{with python3}
 %py3_install
 
 # provides by python3-sphinxcontrib in PLD
 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__init__.py \
        $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__pycache__/__init__.*.py*
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst README.rst
-%{py_sitescriptdir}/sphinxcontrib/asyncio.py[co]
-%{py_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinxcontrib-asyncio
-%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
 %{py3_sitescriptdir}/sphinxcontrib/asyncio.py
 %{py3_sitescriptdir}/sphinxcontrib/__pycache__/asyncio.cpython-*.py[co]
 %{py3_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
 %endif
This page took 0.115245 seconds and 4 git commands to generate.