]>
Commit | Line | Data |
---|---|---|
afc9ffc8 JK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | ||
6 | %define module alabaster | |
7 | Summary: A configurable sidebar-enabled Sphinx theme | |
c05795af | 8 | Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa |
afc9ffc8 | 9 | Name: python-%{module} |
f6c6b4f1 JB |
10 | Version: 0.7.12 |
11 | Release: 1 | |
afc9ffc8 JK |
12 | License: BSD |
13 | Group: Libraries/Python | |
4a234fc9 | 14 | #Source0Download: https://pypi.org/simple/alabaster/ |
036b64f3 | 15 | Source0: https://files.pythonhosted.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz |
f6c6b4f1 | 16 | # Source0-md5: 3591827fde96d1dd23970fb05410ed04 |
4a234fc9 | 17 | URL: https://pypi.org/project/alabaster/ |
afc9ffc8 | 18 | BuildRequires: rpm-pythonprov |
036b64f3 | 19 | BuildRequires: rpmbuild(macros) >= 1.714 |
afc9ffc8 | 20 | %if %{with python2} |
f0e5c25a | 21 | BuildRequires: python-devel >= 1:2.6 |
afc9ffc8 JK |
22 | BuildRequires: python-setuptools >= 7.0 |
23 | %endif | |
24 | %if %{with python3} | |
f0e5c25a JB |
25 | BuildRequires: python3-devel >= 1:3.2 |
26 | BuildRequires: python3-modules >= 1:3.2 | |
afc9ffc8 JK |
27 | BuildRequires: python3-setuptools >= 7.0 |
28 | %endif | |
f0e5c25a | 29 | Requires: python-modules >= 1:2.6 |
afc9ffc8 JK |
30 | BuildArch: noarch |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
c05795af | 34 | A configurable sidebar-enabled Sphinx theme. |
afc9ffc8 | 35 | |
2c7296e8 | 36 | This theme is a modified "Kr" Sphinx theme from @kennethreitz |
afc9ffc8 | 37 | (especially as used in his Requests project), which was itself |
2c7296e8 | 38 | originally based on @mitsuhiko's theme used for Flask & related |
afc9ffc8 JK |
39 | projects. |
40 | ||
c05795af JB |
41 | %description -l pl.UTF-8 |
42 | Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa. | |
43 | ||
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 | |
47 | z nim. | |
48 | ||
afc9ffc8 JK |
49 | %package -n python3-%{module} |
50 | Summary: A configurable sidebar-enabled Sphinx theme | |
c05795af | 51 | Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa |
afc9ffc8 | 52 | Group: Libraries/Python |
f0e5c25a | 53 | Requires: python3-modules >= 1:3.2 |
afc9ffc8 JK |
54 | |
55 | %description -n python3-%{module} | |
56 | A configurable sidebar-enabled Sphinx theme | |
57 | ||
2c7296e8 | 58 | This theme is a modified "Kr" Sphinx theme from @kennethreitz |
afc9ffc8 | 59 | (especially as used in his Requests project), which was itself |
2c7296e8 | 60 | originally based on @mitsuhiko's theme used for Flask & related |
afc9ffc8 JK |
61 | projects. |
62 | ||
c05795af JB |
63 | %description -n python3-%{module} -l pl.UTF-8 |
64 | Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa. | |
65 | ||
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 | |
69 | z nim. | |
70 | ||
afc9ffc8 JK |
71 | %prep |
72 | %setup -q -n %{module}-%{version} | |
73 | ||
74 | %build | |
75 | %if %{with python2} | |
f6c6b4f1 | 76 | %py_build |
afc9ffc8 JK |
77 | %endif |
78 | ||
79 | %if %{with python3} | |
f6c6b4f1 | 80 | %py3_build |
afc9ffc8 JK |
81 | %endif |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %if %{with python2} | |
54117e15 | 87 | %py_install |
afc9ffc8 JK |
88 | |
89 | %py_postclean | |
90 | %endif | |
91 | ||
92 | %if %{with python3} | |
54117e15 | 93 | %py3_install |
afc9ffc8 JK |
94 | %endif |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %if %{with python2} | |
100 | %files | |
101 | %defattr(644,root,root,755) | |
4a234fc9 | 102 | %doc LICENSE README.rst |
afc9ffc8 JK |
103 | %{py_sitescriptdir}/%{module} |
104 | %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info | |
105 | %endif | |
106 | ||
107 | %if %{with python3} | |
108 | %files -n python3-%{module} | |
109 | %defattr(644,root,root,755) | |
4a234fc9 | 110 | %doc LICENSE README.rst |
afc9ffc8 JK |
111 | %{py3_sitescriptdir}/%{module} |
112 | %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info | |
113 | %endif |