3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Sphinx extension: auto-generate API docs from Zope interfaces
7 Summary(pl.UTF-8): Rozszerzenie Sphinksa: automatyczne generowanie dokumentacji API z interfejsów Zope
8 Name: python-repoze.sphinx.autointerface
9 # keep 0.x here for python2 support
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/repoze-sphinx-autointerface/
15 Source0: https://files.pythonhosted.org/packages/source/r/repoze.sphinx.autointerface/repoze.sphinx.autointerface-%{version}.tar.gz
16 # Source0-md5: 8e05cb8421b0a3bea8ec3b0aa3695310
17 URL: https://pypi.org/project/repoze.sphinx.autointerface/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.3
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.7
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This package defines an extension for the Sphinx documentation system.
34 The extension allows generation of API documentation by introspection
35 of zope.interface instances in code.
37 %description -l pl.UTF-8
38 Ten pakiet definiuje rozszerzenie systemu dokumentacji Sphinx,
39 pozwalające generować dokumentację API poprzez wgląd w instancje
40 zope.interface w kodzie.
42 %package -n python3-repoze.sphinx.autointerface
43 Summary: Sphinx extension: auto-generate API docs from Zope interfaces
44 Summary(pl.UTF-8): Rozszerzenie Sphinksa: automatyczne generowanie dokumentacji API z interfejsów Zope
45 Group: Libraries/Python
46 Requires: python3-modules >= 1:3.3
48 %description -n python3-repoze.sphinx.autointerface
49 This package defines an extension for the Sphinx documentation system.
50 The extension allows generation of API documentation by introspection
51 of zope.interface instances in code.
53 %description -n python3-repoze.sphinx.autointerface -l pl.UTF-8
54 Ten pakiet definiuje rozszerzenie systemu dokumentacji Sphinx,
55 pozwalające generować dokumentację API poprzez wgląd w instancje
56 zope.interface w kodzie.
59 %setup -q -n repoze.sphinx.autointerface-%{version}
71 rm -rf $RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt LICENSE.txt README.rst TODO.txt
91 %dir %{py_sitescriptdir}/repoze
92 %dir %{py_sitescriptdir}/repoze/sphinx
93 %{py_sitescriptdir}/repoze/sphinx/autointerface.py[co]
94 %{py_sitescriptdir}/repoze.sphinx.autointerface-%{version}-py*.egg-info
95 %{py_sitescriptdir}/repoze.sphinx.autointerface-%{version}-py*-nspkg.pth
99 %files -n python3-repoze.sphinx.autointerface
100 %defattr(644,root,root,755)
101 %doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt LICENSE.txt README.rst TODO.txt
102 %dir %{py3_sitescriptdir}/repoze
103 %dir %{py3_sitescriptdir}/repoze/sphinx
104 %{py3_sitescriptdir}/repoze/sphinx/autointerface.py
105 %{py3_sitescriptdir}/repoze/sphinx/__pycache__
106 %{py3_sitescriptdir}/repoze.sphinx.autointerface-%{version}-py*.egg-info
107 %{py3_sitescriptdir}/repoze.sphinx.autointerface-%{version}-py*-nspkg.pth