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