]>
Commit | Line | Data |
---|---|---|
8cf3d6fc AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
09911bea | 4 | %bcond_with python3 # CPython 3.x module (built from python3-pallets-sphinx-themes.spec) |
8cf3d6fc AM |
5 | |
6 | Summary: Sphinx themes for Pallets Project documentation | |
7 | Summary(pl.UTF-8): Motywy Sphinksa do dokumentacji z projektu Pallets | |
8 | Name: python-pallets-sphinx-themes | |
09911bea | 9 | # keep 1.x here for python2 support |
08b6e37f | 10 | Version: 1.2.3 |
66c06101 | 11 | Release: 4 |
8cf3d6fc AM |
12 | License: BSD |
13 | Group: Libraries/Python | |
14 | #Source0Download: https://pypi.org/simple/pallets-sphinx-themes/ | |
5e89ebce | 15 | Source0: https://files.pythonhosted.org/packages/source/p/pallets-sphinx-themes/Pallets-Sphinx-Themes-%{version}.tar.gz |
08b6e37f | 16 | # Source0-md5: 05f25718e2319a6dfd7a3a7d6aee9c19 |
8cf3d6fc AM |
17 | URL: https://palletsprojects.com/ |
18 | %if %{with python2} | |
19 | BuildRequires: python-modules >= 1:2.7 | |
20 | BuildRequires: python-setuptools | |
21 | %endif | |
22 | %if %{with python3} | |
08b6e37f | 23 | BuildRequires: python3-modules >= 1:3.5 |
8cf3d6fc AM |
24 | BuildRequires: python3-setuptools |
25 | %endif | |
26 | BuildRequires: rpm-pythonprov | |
27 | BuildRequires: rpmbuild(macros) >= 1.714 | |
28 | Requires: python-modules >= 1:2.7 | |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | This package contains Sphinx themes for Pallets related projects. | |
34 | ||
35 | %description -l pl.UTF-8 | |
5e89ebce JB |
36 | Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z |
37 | Pallets. | |
8cf3d6fc AM |
38 | |
39 | %package -n python3-pallets-sphinx-themes | |
40 | Summary: Sphinx themes for Pallets Project documentation | |
41 | Summary(pl.UTF-8): Motywy Sphinksa do dokumentacji z projektu Pallets | |
42 | Group: Libraries/Python | |
08b6e37f | 43 | Requires: python3-modules >= 1:3.5 |
8cf3d6fc AM |
44 | |
45 | %description -n python3-pallets-sphinx-themes | |
46 | This package contains Sphinx themes for Pallets related projects. | |
47 | ||
48 | %description -n python3-pallets-sphinx-themes -l pl.UTF-8 | |
08b6e37f JB |
49 | Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z |
50 | Pallets. | |
8cf3d6fc AM |
51 | |
52 | %prep | |
5e89ebce | 53 | %setup -q -n Pallets-Sphinx-Themes-%{version} |
8cf3d6fc AM |
54 | |
55 | %build | |
56 | %if %{with python2} | |
57 | %py_build | |
58 | %endif | |
59 | ||
60 | %if %{with python3} | |
61 | %py3_build | |
62 | %endif | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %if %{with python2} | |
68 | %py_install | |
69 | ||
70 | %py_postclean | |
71 | %endif | |
72 | ||
73 | %if %{with python3} | |
74 | %py3_install | |
75 | %endif | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %if %{with python2} | |
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc README.rst CHANGES.rst | |
84 | %{py_sitescriptdir}/pallets_sphinx_themes | |
85 | %{py_sitescriptdir}/Pallets_Sphinx_Themes-%{version}-py*.egg-info | |
86 | %endif | |
87 | ||
88 | %if %{with python3} | |
89 | %files -n python3-pallets-sphinx-themes | |
90 | %defattr(644,root,root,755) | |
91 | %doc README.rst CHANGES.rst | |
92 | %{py3_sitescriptdir}/pallets_sphinx_themes | |
93 | %{py3_sitescriptdir}/Pallets_Sphinx_Themes-%{version}-py*.egg-info | |
94 | %endif |