]>
Commit | Line | Data |
---|---|---|
56170f27 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | ||
6 | Summary: Sphinx theme used by Guzzle | |
7 | Summary(pl.UTF-8): Motyw Sphinksa wykorzystywany przez Guzzle | |
8 | Name: python-guzzle_sphinx_theme | |
9 | Version: 0.7.11 | |
e8eb0ff5 | 10 | Release: 5 |
56170f27 JB |
11 | License: MIT |
12 | Group: Libraries/Python | |
13 | #Source0Download: https://pypi.org/simple/guzzle_sphinx_theme/ | |
14 | Source0: https://files.pythonhosted.org/packages/source/g/guzzle_sphinx_theme/guzzle_sphinx_theme-%{version}.tar.gz | |
15 | # Source0-md5: f6ec1c3fe16ce9f076941912df0cc4cd | |
16 | URL: https://pypi.org/project/guzzle_sphinx_theme/ | |
17 | %if %{with python2} | |
18 | BuildRequires: python-modules >= 1:2.5 | |
19 | BuildRequires: python-setuptools | |
20 | %endif | |
21 | %if %{with python3} | |
22 | BuildRequires: python3-modules >= 1:3.2 | |
23 | BuildRequires: python3-setuptools | |
24 | %endif | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.714 | |
27 | Requires: python-modules | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Sphinx theme used by Guzzle: <http://guzzlephp.org/>. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Motyw Sphinksa wykorzystywany przez Guzzle: <http://guzzlephp.org/>. | |
36 | ||
37 | %package -n python3-guzzle_sphinx_theme | |
38 | Summary: Sphinx theme used by Guzzle | |
39 | Summary(pl.UTF-8): Motyw Sphinksa wykorzystywany przez Guzzle | |
40 | Group: Libraries/Python | |
41 | Requires: python3-modules | |
42 | ||
43 | %description -n python3-guzzle_sphinx_theme | |
44 | Sphinx theme used by Guzzle: <http://guzzlephp.org/>. | |
45 | ||
46 | %description -n python3-guzzle_sphinx_theme -l pl.UTF-8 | |
47 | Motyw Sphinksa wykorzystywany przez Guzzle: <http://guzzlephp.org/>. | |
48 | ||
49 | %prep | |
50 | %setup -q -n guzzle_sphinx_theme-%{version} | |
51 | ||
52 | %build | |
53 | %if %{with python2} | |
54 | %py_build | |
55 | %endif | |
56 | ||
57 | %if %{with python3} | |
58 | %py3_build | |
59 | %endif | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %if %{with python2} | |
65 | %py_install | |
66 | ||
67 | %py_postclean | |
68 | %endif | |
69 | ||
70 | %if %{with python3} | |
71 | %py3_install | |
72 | %endif | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %if %{with python2} | |
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc LICENSE README.rst | |
81 | %{py_sitescriptdir}/guzzle_sphinx_theme | |
82 | %{py_sitescriptdir}/guzzle_sphinx_theme-%{version}-py*.egg-info | |
83 | %endif | |
84 | ||
85 | %if %{with python3} | |
86 | %files -n python3-guzzle_sphinx_theme | |
87 | %defattr(644,root,root,755) | |
88 | %doc LICENSE README.rst | |
89 | %{py3_sitescriptdir}/guzzle_sphinx_theme | |
90 | %{py3_sitescriptdir}/guzzle_sphinx_theme-%{version}-py*.egg-info | |
91 | %endif |