3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
5 %bcond_with doc # Sphinx documentation
6 %bcond_with tests # test target (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-openstackdocstheme
14 Group: Development/Languages/Python
15 #Source0Download: https://pypi.org/simple/openstackdocstheme/
16 Source0: https://files.pythonhosted.org/packages/source/o/openstackdocstheme/openstackdocstheme-%{version}.tar.gz
17 # Source0-md5: 24ff0af7dd233e78e9f388e7e0876426
18 URL: https://docs.openstack.org/openstackdocstheme/
20 BuildRequires: python-devel >= 1:2.7
21 BuildRequires: python-pbr >= 2.0.0
22 BuildRequires: python-setuptools
24 BuildRequires: python-Sphinx >= 1.6.2
25 BuildRequires: python-bindep
26 BuildRequires: python-dulwich >= 0.15.0
27 BuildRequires: python-hacking >= 1.1.0
28 BuildRequires: python-hacking < 1.2.0
32 BuildRequires: python3-devel >= 1:3.5
33 BuildRequires: python3-pbr >= 2.0.0
34 BuildRequires: python3-setuptools
36 BuildRequires: python3-Sphinx >= 1.6.2
37 BuildRequires: python3-bindep
38 BuildRequires: python3-dulwich >= 0.15.0
39 BuildRequires: python3-hacking >= 1.1.0
40 BuildRequires: python3-hacking < 1.2.0
43 BuildRequires: rpm-pythonprov
44 BuildRequires: rpmbuild(macros) >= 1.714
46 BuildRequires: python3-os-api-ref >= 1.4.0
47 BuildRequires: python3-reno >= 2.5.0
48 BuildRequires: sphinx-pdg-3 >= 1.6.6
50 Requires: python-modules >= 1:2.7
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Theme and extension support for Sphinx documentation from the
58 %description -l pl.UTF-8
59 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
60 Sphinx w projekcie OpenStack.
62 %package -n python3-openstackdocstheme
63 Summary: OpenStack Sphinx extensions
64 Summary(pl.UTF-8): Rozszerzenia modułu Sphinx z projektu OpenStack
65 Group: Development/Languages/Python
66 Requires: python3-modules >= 1:3.5
68 %description -n python3-openstackdocstheme
69 Theme and extension support for Sphinx documentation from the
72 %description -n python3-openstackdocstheme -l pl.UTF-8
73 Motyw oraz rozszerzenia wspomagające tworzenie dokumentacji w systemie
74 Sphinx w projekcie OpenStack.
77 %setup -q -n openstackdocstheme-%{version}
89 sphinx-build-3 -b html doc/source doc-build/html/doc
90 sphinx-build-3 -b html api-ref/source doc-build/html/api-ref
91 sphinx-build-3 -b html releasenotes/source doc-build/html/releasenotes
95 rm -rf $RPM_BUILD_ROOT
108 %{__rm} $RPM_BUILD_ROOT%{_bindir}/docstheme-{build-pdf,build-translated.sh,lang-display-name.py}
111 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc AUTHORS ChangeLog README.rst
117 %{py_sitescriptdir}/openstackdocstheme
118 %{py_sitescriptdir}/openstackdocstheme-%{version}-py*.egg-info
122 %files -n python3-openstackdocstheme
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog README.rst
125 %{py3_sitescriptdir}/openstackdocstheme
126 %{py3_sitescriptdir}/openstackdocstheme-%{version}-py*.egg-info