3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module sphinx_rtd_theme
7 Summary: ReadTheDocs.org theme for Sphinx, 2013 version
8 Summary(pl.UTF-8): Motyw ReadTheDocs.org dla Sphinksa, wersja z 2013 roku
13 Group: Libraries/Python
14 Source0: https://pypi.python.org/packages/source/s/sphinx_rtd_theme/%{module}-%{version}.tar.gz
15 # Source0-md5: 713ce7c53239449bdd799385577329ee
16 URL: https://github.com/snide/sphinx_rtd_theme/
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.710
20 BuildRequires: python-setuptools
23 BuildRequires: python3-setuptools
25 Requires: python-modules
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is a mobile-friendly Sphinx theme made for readthedocs.org.
32 %description -l pl.UTF-8
33 Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
34 wykonany przez readthedocs.org.
36 %package -n python3-%{module}
37 Summary: ReadTheDocs.org theme for Sphinx, 2013 version
38 Summary(pl.UTF-8): Motyw ReadTheDocs.org dla Sphinksa, wersja z 2013 roku
39 Group: Libraries/Python
40 Requires: python3-modules
42 %description -n python3-%{module}
43 This is a mobile-friendly Sphinx theme made for readthedocs.org.
45 %description -n python3-%{module} -l pl.UTF-8
46 Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
47 wykonany przez readthedocs.org.
50 %setup -q -n %{module}-%{version}
54 %py_build %{?with_tests:test}
58 %py3_build %{?with_tests:test}
62 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
81 %{py_sitescriptdir}/%{module}
82 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
86 %files -n python3-%{module}
87 %defattr(644,root,root,755)
89 %{py3_sitescriptdir}/%{module}
90 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info