1 # TODO: docs (requires custom sphinxcontrib-fulltoc, see docs/requirements.txt)
4 %bcond_with doc # Sphinx documentation
5 %bcond_without tests # unit tests
6 %bcond_without python2 # CPython 2.x module
7 %bcond_without python3 # CPython 3.x module
9 Summary: "Cloud" Sphinx Theme
10 Summary(pl.UTF-8): Motyw "Cloud" dla Sphinksa
11 Name: python-cloud_sptheme
15 Group: Libraries/Python
17 #Source0Download: https://pypi.org/simple/cloud_sptheme/
18 Source0: https://files.pythonhosted.org/packages/source/c/cloud_sptheme/cloud_sptheme-%{version}.tar.gz
19 # Source0-md5: 9a74d8609cd2c640c3a2ec459e5438dc
20 Patch0: %{name}-mock.patch
21 URL: https://pypi.org/project/cloud_sptheme/
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.714
25 BuildRequires: python-modules >= 1:2.6
26 BuildRequires: python-setuptools
28 BuildRequires: python-Sphinx >= 1.4
29 BuildRequires: python-mock
33 BuildRequires: python3-modules >= 1:3.3
34 BuildRequires: python3-setuptools
36 BuildRequires: python3-Sphinx >= 1.4
40 BuildRequires: sphinx-pdg
41 # python-sphinxcontrib-fulltoc
43 Requires: python-modules >= 1:2.6
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 This is a small package containing a Sphinx theme named "Cloud", along
49 with some related Sphinx extensions.
51 %description -l pl.UTF-8
52 Ten mały pakiet zawiera motyw Sphinksa "Cloud" wraz z kilkoma
53 powiązanymi rozszerzeniami Sphinksa.
55 %package -n python3-cloud_sptheme
56 Summary: "Cloud" Sphinx Theme
57 Summary(pl.UTF-8): Motyw "Cloud" dla Sphinksa
58 Group: Libraries/Python
59 Requires: python3-modules >= 1:3.3
61 %description -n python3-cloud_sptheme
62 This is a small package containing a Sphinx theme named "Cloud", along
63 with some related Sphinx extensions.
65 %description -n python3-cloud_sptheme -l pl.UTF-8
66 Ten mały pakiet zawiera motyw Sphinksa "Cloud" wraz z kilkoma
67 powiązanymi rozszerzeniami Sphinksa.
70 Summary: API documentation for Python cloud_sptheme module
71 Summary(pl.UTF-8): Dokumentacja API modułu Pythona cloud_sptheme
75 API documentation for Python cloud_sptheme module.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API modułu Pythona cloud_sptheme.
81 %setup -q -n cloud_sptheme-%{version}
86 %py_build %{?with_tests:test}
90 %py3_build %{?with_tests:test}
94 %{__make} -C docs -j1 html
98 rm -rf $RPM_BUILD_ROOT
111 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc CHANGES LICENSE README
117 %{py_sitescriptdir}/cloud_sptheme
118 %{py_sitescriptdir}/cloud_sptheme-%{version}-py*.egg-info
122 %files -n python3-cloud_sptheme
123 %defattr(644,root,root,755)
124 %doc CHANGES LICENSE README
125 %{py3_sitescriptdir}/cloud_sptheme
126 %{py3_sitescriptdir}/cloud_sptheme-%{version}-py*.egg-info
131 %defattr(644,root,root,755)
132 %doc docs/_build/html/*