]>
Commit | Line | Data |
---|---|---|
b3a61f4a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | ||
6 | Summary: Enhanced Sphinx theme (based on Python 3 docs) | |
7 | Summary(pl.UTF-8): Rozszerzony motyw dla Sphinksa (oparty na dokumentacji Pythona 3) | |
8 | Name: python-sphinx_py3doc_enhanced_theme | |
9 | Version: 2.4.0 | |
c60be9ef | 10 | Release: 2 |
b3a61f4a JB |
11 | License: BSD |
12 | Group: Libraries/Python | |
13 | #Source0Download: https://pypi.python.org/simple/sphinx_py3doc_enhanced_theme | |
14 | Source0: https://files.pythonhosted.org/packages/source/s/sphinx_py3doc_enhanced_theme/sphinx-py3doc-enhanced-theme-%{version}.tar.gz | |
15 | # Source0-md5: 38af7b770835cca10a6034abdcc58989 | |
16 | URL: https://github.com/ionelmc/sphinx-py3doc-enhanced-theme | |
17 | %if %{with python2} | |
18 | BuildRequires: python-modules >= 1:2.6 | |
19 | BuildRequires: python-setuptools | |
20 | %endif | |
21 | %if %{with python3} | |
22 | BuildRequires: python3-modules >= 1:3.3 | |
23 | BuildRequires: python3-setuptools | |
24 | %endif | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.714 | |
27 | Requires: python-modules >= 1:2.6 | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | A theme based on the theme of https://docs.python.org/3/ with some | |
33 | responsive enhancements. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Motyw oparty na motywie https://docs.python.org/3/ z pewnymi | |
37 | reagującymi rozszerzeniami. | |
38 | ||
39 | %package -n python3-sphinx_py3doc_enhanced_theme | |
40 | Summary: Enhanced Sphinx theme (based on Python 3 docs) | |
41 | Summary(pl.UTF-8): Rozszerzony motyw dla Sphinksa (oparty na dokumentacji Pythona 3) | |
42 | Group: Libraries/Python | |
43 | Requires: python3-modules >= 1:3.3 | |
44 | ||
45 | %description -n python3-sphinx_py3doc_enhanced_theme | |
46 | A theme based on the theme of https://docs.python.org/3/ with some | |
47 | responsive enhancements. | |
48 | ||
49 | %description -n python3-sphinx_py3doc_enhanced_theme -l pl.UTF-8 | |
50 | Motyw oparty na motywie https://docs.python.org/3/ z pewnymi | |
51 | reagującymi rozszerzeniami. | |
52 | ||
53 | %prep | |
54 | %setup -q -n sphinx-py3doc-enhanced-theme-%{version} | |
55 | ||
56 | %build | |
57 | %if %{with python2} | |
58 | %py_build | |
59 | %endif | |
60 | ||
61 | %if %{with python3} | |
62 | %py3_build | |
63 | %endif | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %if %{with python2} | |
69 | %py_install | |
70 | ||
71 | %py_postclean | |
72 | %endif | |
73 | ||
74 | %if %{with python3} | |
75 | %py3_install | |
76 | %endif | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %if %{with python2} | |
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst | |
85 | %{py_sitescriptdir}/sphinx_py3doc_enhanced_theme | |
86 | %{py_sitescriptdir}/sphinx_py3doc_enhanced_theme-%{version}-py*.egg-info | |
87 | %endif | |
88 | ||
89 | %if %{with python3} | |
90 | %files -n python3-sphinx_py3doc_enhanced_theme | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst | |
93 | %{py3_sitescriptdir}/sphinx_py3doc_enhanced_theme | |
94 | %{py3_sitescriptdir}/sphinx_py3doc_enhanced_theme-%{version}-py*.egg-info | |
95 | %endif |