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
8 Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa
13 Group: Libraries/Python
14 #Source0Download: https://pypi.python.org/pypi/alabaster
15 Source0: https://pypi.python.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
16 # Source0-md5: ba31bf652194200428aa4e3d976f5ccd
17 URL: https://pypi.python.org/pypi/alabaster
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.219
21 BuildRequires: python-devel
22 BuildRequires: python-setuptools >= 7.0
25 BuildRequires: python3-devel
26 BuildRequires: python3-modules
27 BuildRequires: python3-setuptools >= 7.0
29 Requires: python-modules
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 A configurable sidebar-enabled Sphinx theme.
36 This theme is a modified "Kr" Sphinx theme from @kennethreitz
37 (especially as used in his Requests project), which was itself
38 originally based on @mitsuhiko's theme used for Flask & related
41 %description -l pl.UTF-8
42 Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa.
44 Motyw ten to zmodyfikowany motyw Sphinksa "Kr" od @kennethreitz
45 (konkretnie wersja używana w jego projekcie Requests), pierwotnie
46 oparty na motywie @mitsuhiko używanym w projekcie Flash i powiązanych
49 %package -n python3-%{module}
50 Summary: A configurable sidebar-enabled Sphinx theme
51 Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa
52 Group: Libraries/Python
53 Requires: python3-modules
55 %description -n python3-%{module}
56 A configurable sidebar-enabled Sphinx theme
58 This theme is a modified "Kr" Sphinx theme from @kennethreitz
59 (especially as used in his Requests project), which was itself
60 originally based on @mitsuhiko's theme used for Flask & related
63 %description -n python3-%{module} -l pl.UTF-8
64 Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa.
66 Motyw ten to zmodyfikowany motyw Sphinksa "Kr" od @kennethreitz
67 (konkretnie wersja używana w jego projekcie Requests), pierwotnie
68 oparty na motywie @mitsuhiko używanym w projekcie Flash i powiązanych
72 %setup -q -n %{module}-%{version}
76 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
80 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
84 rm -rf $RPM_BUILD_ROOT
87 %{__python} setup.py \
88 build --build-base build-2 \
89 install --skip-build \
91 --root=$RPM_BUILD_ROOT
97 %{__python3} setup.py \
98 build --build-base build-3 \
99 install --skip-build \
101 --root=$RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_ROOT
109 %defattr(644,root,root,755)
111 %{py_sitescriptdir}/%{module}
112 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
116 %files -n python3-%{module}
117 %defattr(644,root,root,755)
119 %{py3_sitescriptdir}/%{module}
120 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info