3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
5 %bcond_without doc # Sphinx documentation
6 %bcond_with tests # unit tests (not included in dist tarball?)
8 Summary: OpenStack Sphinx extensions
9 Summary(pl.UTF-8): Rozszerzenia modułu Sphinx z projektu OpenStack
10 Name: python-oslosphinx
14 Group: Development/Languages/Python
15 #Source0Download: https://pypi.python.org/simple/oslosphinx/
16 Source0: https://files.pythonhosted.org/packages/source/o/oslosphinx/oslosphinx-%{version}.tar.gz
17 # Source0-md5: f2e63063eeae74ca0f92452d964b9b5c
18 URL: http://www.openstack.org/
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
22 BuildRequires: python-devel >= 1:2.7
23 BuildRequires: python-pbr >= 2.0.0
24 BuildRequires: python-setuptools
26 BuildRequires: python-hacking >= 0.12.0
27 BuildRequires: python-hacking < 0.14
28 BuildRequires: python-requests >= 2.14.2
29 BuildRequires: python-six >= 1.10.0
33 BuildRequires: python3-devel >= 1:3.4
34 BuildRequires: python3-pbr >= 2.0.0
35 BuildRequires: python3-setuptools
37 BuildRequires: python3-hacking >= 0.12.0
38 BuildRequires: python3-hacking < 0.14
39 BuildRequires: python3-requests >= 2.14.2
40 BuildRequires: python3-six >= 1.10.0
44 BuildRequires: python3-openstackdocstheme >= 1.17.0
45 BuildRequires: python3-reno >= 2.5.0
46 BuildRequires: sphinx-pdg-3 >= 1.6.2
48 Requires: python-modules >= 1:2.7
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Theme and extension support for Sphinx documentation from the
56 Note: this package is obsolete, the openstackdocstheme module should
59 %description -l pl.UTF-8
60 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
61 Sphinx w projekcie OpenStack.
63 Uwaga: ten pakiet jest przestarzały, zamiast niego należy używać
64 modułu openstackdocstheme.
66 %package -n python3-oslosphinx
67 Summary: OpenStack Sphinx extensions
68 Summary(pl.UTF-8): Rozszerzenia modułu Sphinx z projektu OpenStack
69 Group: Development/Languages/Python
70 Requires: python3-modules >= 1:3.2
72 %description -n python3-oslosphinx
73 Theme and extension support for Sphinx documentation from the
76 Note: this package is obsolete, the openstackdocstheme module should
79 %description -n python3-oslosphinx -l pl.UTF-8
80 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
81 Sphinx w projekcie OpenStack.
83 Uwaga: ten pakiet jest przestarzały, zamiast niego należy używać
84 modułu openstackdocstheme.
87 Summary: API documentation for Python oslosphinx module
88 Summary(pl.UTF-8): Dokumentacja API modułu Pythona oslosphinx
92 API documentation for Python oslosphinx module.
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API modułu Pythona oslosphinx.
98 %setup -q -n oslosphinx-%{version}
110 sphinx-build-3 -b html doc/source doc/_build/html
114 rm -rf $RPM_BUILD_ROOT
127 rm -rf $RPM_BUILD_ROOT
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog README.rst
133 %{py_sitescriptdir}/oslosphinx
134 %{py_sitescriptdir}/oslosphinx-%{version}-py*.egg-info
138 %files -n python3-oslosphinx
139 %defattr(644,root,root,755)
140 %doc AUTHORS ChangeLog README.rst
141 %{py3_sitescriptdir}/oslosphinx
142 %{py3_sitescriptdir}/oslosphinx-%{version}-py*.egg-info
147 %defattr(644,root,root,755)
148 %doc doc/_build/html/{_static,*.html,*.js}