]> git.pld-linux.org Git - packages/python3-sphinxcontrib-asyncio.git/blame - python3-sphinxcontrib-asyncio.spec
- require python3-sphinxcontrib, not python-sphinxcontrib
[packages/python3-sphinxcontrib-asyncio.git] / python3-sphinxcontrib-asyncio.spec
CommitLineData
f86f7cb6
JB
1#
2# Conditional build:
3%bcond_without doc # Sphinx documentation
d6f0f59c 4%bcond_with tests # unit tests (not included in sdist)
f86f7cb6
JB
5
6Summary: Sphinx extension to support coroutines in markup
7Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsługi korutyn w znacznikach
d6f0f59c
JB
8Name: python3-sphinxcontrib-asyncio
9Version: 0.3.0
d8ca5c12 10Release: 2
f86f7cb6
JB
11License: Apache v2
12Group: Libraries/Python
13#Source0Download: https://pypi.org/simple/sphinxcontrib-asyncio/
14Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-asyncio/sphinxcontrib-asyncio-%{version}.tar.gz
d6f0f59c 15# Source0-md5: 5445823a927f3368dd81b9061bec0055
f86f7cb6 16URL: https://pypi.org/project/sphinxcontrib-asyncio/
d6f0f59c 17BuildRequires: python3-modules >= 1:3.5
f86f7cb6
JB
18BuildRequires: python3-setuptools
19%if %{with tests}
d6f0f59c 20BuildRequires: python3-Sphinx >= 3.0
f86f7cb6
JB
21BuildRequires: python3-pytest
22%endif
f86f7cb6
JB
23BuildRequires: rpm-pythonprov
24BuildRequires: rpmbuild(macros) >= 1.714
25%if %{with doc}
212f58a0
JB
26# requires already installed package
27BuildRequires: python3-sphinxcontrib-asyncio
d6f0f59c 28BuildRequires: sphinx-pdg >= 3.0
f86f7cb6 29%endif
d6f0f59c 30Requires: python3-modules >= 1:3.5
e28d0a12 31Requires: python3-sphinxcontrib
f86f7cb6
JB
32BuildArch: noarch
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Sphinx extension for adding asyncio-specific markups.
37
38%description -l pl.UTF-8
39Rozszerzenie Sphinksa do dodawania oznaczeń specyficznych dla asyncio.
40
f86f7cb6
JB
41%package apidocs
42Summary: API documentation for Python sphinxcontrib-asyncio module
43Summary(pl.UTF-8): Dokumentacja API modułu Pythona sphinxcontrib-asyncio
44Group: Documentation
45
46%description apidocs
47API documentation for Python sphinxcontrib-asyncio module.
48
49%description apidocs -l pl.UTF-8
50Dokumentacja API modułu Pythona sphinxcontrib-asyncio.
51
52%prep
53%setup -q -n sphinxcontrib-asyncio-%{version}
54
55%build
f86f7cb6
JB
56%py3_build
57
58%if %{with tests}
d6f0f59c 59PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
f86f7cb6
JB
60%{__python3} -m pytest tests
61%endif
f86f7cb6
JB
62
63%if %{with doc}
64PYTHONPATH=$(pwd) \
65%{__make} -C docs html
66%endif
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
f86f7cb6 71%py3_install
7f13dc0d
JB
72
73# provides by python3-sphinxcontrib in PLD
74%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__init__.py \
75 $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/__pycache__/__init__.*.py*
f86f7cb6
JB
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
f86f7cb6
JB
80%files
81%defattr(644,root,root,755)
82%doc CHANGES.rst README.rst
f86f7cb6
JB
83%{py3_sitescriptdir}/sphinxcontrib/asyncio.py
84%{py3_sitescriptdir}/sphinxcontrib/__pycache__/asyncio.cpython-*.py[co]
f86f7cb6 85%{py3_sitescriptdir}/sphinxcontrib_asyncio-%{version}-py*.egg-info
f86f7cb6
JB
86
87%if %{with doc}
88%files apidocs
89%defattr(644,root,root,755)
d6f0f59c 90%doc docs/_build/html/{_modules,_static,*.html,*.js}
f86f7cb6 91%endif
This page took 0.152941 seconds and 4 git commands to generate.