3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module alabaster
7 Summary: A configurable sidebar-enabled Sphinx theme
12 Group: Libraries/Python
13 Source0: https://pypi.python.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
14 # Source0-md5: ba31bf652194200428aa4e3d976f5ccd
15 URL: https://pypi.python.org/pypi/alabaster
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.219
19 BuildRequires: python-devel
20 BuildRequires: python-setuptools >= 7.0
23 BuildRequires: python3-devel
24 BuildRequires: python3-modules
25 BuildRequires: python3-setuptools >= 7.0
27 Requires: python-modules
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 A configurable sidebar-enabled Sphinx theme
34 This theme is a modified “Kr” Sphinx theme from @kennethreitz
35 (especially as used in his Requests project), which was itself
36 originally based on @mitsuhiko’s theme used for Flask & related
39 %package -n python3-%{module}
40 Summary: A configurable sidebar-enabled Sphinx theme
41 Group: Libraries/Python
42 Requires: python3-modules
44 %description -n python3-%{module}
45 A configurable sidebar-enabled Sphinx theme
47 This theme is a modified “Kr” Sphinx theme from @kennethreitz
48 (especially as used in his Requests project), which was itself
49 originally based on @mitsuhiko’s theme used for Flask & related
53 %setup -q -n %{module}-%{version}
57 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
61 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
65 rm -rf $RPM_BUILD_ROOT
68 %{__python} setup.py \
69 build --build-base build-2 \
70 install --skip-build \
72 --root=$RPM_BUILD_ROOT
78 %{__python3} setup.py \
79 build --build-base build-3 \
80 install --skip-build \
82 --root=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %{py_sitescriptdir}/%{module}
93 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
97 %files -n python3-%{module}
98 %defattr(644,root,root,755)
100 %{py3_sitescriptdir}/%{module}
101 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info