3 %bcond_without doc # Sphinx documentation
4 %bcond_with tests # unit tests (not included in release tarball)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Sphinx extension to support coroutines in markup
9 Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
10 Name: python-sphinxcontrib-asyncio
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/sphinxcontrib-asyncio/
16 Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
17 # Source0-md5: ad3372cb3be157a98834c2f121674862
18 URL: https://pypi.org/project/sphinxcontrib-asyncio/
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-pytest
27 BuildRequires: python3-modules >= 1:3.3
28 BuildRequires: python3-setuptools
30 BuildRequires: python3-pytest
33 BuildRequires: rpm-pythonprov
34 BuildRequires: rpmbuild(macros) >= 1.714
36 BuildRequires: sphinx-pdg
38 Requires: python-modules >= 1:2.7
39 Requires: python-sphinxcontrib
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Sphinx extension for adding asyncio-specific markups.
46 %description -l pl.UTF-8
47 Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
49 %package -n python3-sphinxcontrib-asyncio
50 Summary: Sphinx extension to support coroutines in markup
51 Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
52 Group: Libraries/Python
53 Requires: python3-modules >= 1:3.3
54 Requires: python3-sphinxcontrib
56 %description -n python3-sphinxcontrib-asyncio
57 Sphinx extension for adding asyncio-specific markups.
59 %description -n python3-sphinxcontrib-asyncio -l pl.UTF-8
60 Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
63 Summary: API documentation for Python sphinxcontrib-asyncio module
64 Summary(pl.UTF-8): Dokumentacja API modułu Pythona sphinxcontrib-asyncio
68 API documentation for Python sphinxcontrib-asyncio module.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
74 %setup -q -n sphinxcontrib-asyncio-%{version}
81 %{__python} -m pytest tests
89 %{__python3} -m pytest tests
95 %{__make} -C docs html
99 rm -rf $RPM_BUILD_ROOT
105 # provides by python-sphinxcontrib in PLD
106 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib/__init__.py*
112 # provides by python3-sphinxcontrib in PLD
113 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__init__.py \
114 $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__pycache__/__init__.*.py*
118 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
123 %doc CHANGES.rst README.rst
124 %{py_sitescriptdir}/sphinxcontrib/asyncio.py[co]
125 %{py_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
129 %files -n python3-sphinxcontrib-asyncio
130 %defattr(644,root,root,755)
131 %doc CHANGES.rst README.rst
132 %{py3_sitescriptdir}/sphinxcontrib/asyncio.py
133 %{py3_sitescriptdir}/sphinxcontrib/__pycache__/asyncio.cpython-*.py[co]
134 %{py3_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
139 %defattr(644,root,root,755)
140 %doc docs/_build/html/{_static,*.html,*.js}