]>
Commit | Line | Data |
---|---|---|
92df6993 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 Bootstrap Theme - Python 2.x version | |
7 | Summary(pl.UTF-8): Motyw Bootstrap dla narzędzia Sphinx - wersja dla Pythona 2.x | |
8 | Name: python-sphinx_bootstrap_theme | |
069137b1 | 9 | Version: 0.8.1 |
923ce9e6 | 10 | Release: 3 |
92df6993 JB |
11 | License: MIT |
12 | Group: Libraries/Python | |
e61e1913 | 13 | #Source0Download: https://pypi.org/simple/sphinx-bootstrap-theme/ |
659909d4 | 14 | Source0: https://files.pythonhosted.org/packages/source/s/sphinx-bootstrap-theme/sphinx-bootstrap-theme-%{version}.tar.gz |
069137b1 | 15 | # Source0-md5: 705bb962d9ad21741f8b2efd6ebba2db |
e61e1913 | 16 | URL: https://pypi.org/project/sphinx-bootstrap-theme/ |
92df6993 | 17 | %if %{with python2} |
07293cd6 | 18 | BuildRequires: python-modules >= 1:2.5 |
92df6993 JB |
19 | BuildRequires: python-setuptools |
20 | %endif | |
21 | %if %{with python3} | |
07293cd6 | 22 | BuildRequires: python3-modules >= 1:3.2 |
92df6993 JB |
23 | BuildRequires: python3-setuptools |
24 | %endif | |
659909d4 JB |
25 | BuildRequires: rpm-pythonprov |
26 | BuildRequires: rpmbuild(macros) >= 1.714 | |
e61e1913 | 27 | Requires: python-Sphinx >= 1.6.1 |
92df6993 JB |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | This Sphinx theme integrates the Bootstrap CSS/JavaScript framework | |
33 | with various layout options, hierarchical menu navigation, and | |
34 | mobile-friendly responsive design. It is configurable, extensible, and | |
35 | can use any number of different Bootswatch CSS themes. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Ten motyw Sphinksa integruje szkielet CSS/JavaScript Bootstrap z | |
39 | różnymi opcjami układu, hierarchiczną nawigacją poprzez menu, | |
40 | zaprojektowawany w sposób łatwo regujący, przyjazny dla urządzeń | |
41 | przenośnych. Jest konfigurowalny, rozszerzalny, może używać dowolnej | |
42 | liczby różnych motywów CSS Bootswatch. | |
43 | ||
44 | %package -n python3-sphinx_bootstrap_theme | |
45 | Summary: Sphinx Bootstrap Theme - Python 3.x version | |
46 | Summary(pl.UTF-8): Motyw Bootstrap dla narzędzia Sphinx - wersja dla Pythona 3.x | |
47 | Group: Libraries/Python | |
e61e1913 | 48 | Requires: python3-Sphinx >= 1.6.1 |
92df6993 JB |
49 | |
50 | %description -n python3-sphinx_bootstrap_theme | |
51 | This Sphinx theme integrates the Bootstrap CSS/JavaScript framework | |
52 | with various layout options, hierarchical menu navigation, and | |
53 | mobile-friendly responsive design. It is configurable, extensible, and | |
54 | can use any number of different Bootswatch CSS themes. | |
55 | ||
56 | %description -n python3-sphinx_bootstrap_theme -l pl.UTF-8 | |
57 | Ten motyw Sphinksa integruje szkielet CSS/JavaScript Bootstrap z | |
58 | różnymi opcjami układu, hierarchiczną nawigacją poprzez menu, | |
59 | zaprojektowawany w sposób łatwo regujący, przyjazny dla urządzeń | |
60 | przenośnych. Jest konfigurowalny, rozszerzalny, może używać dowolnej | |
61 | liczby różnych motywów CSS Bootswatch. | |
62 | ||
63 | %prep | |
64 | %setup -q -n sphinx-bootstrap-theme-%{version} | |
65 | ||
66 | %build | |
67 | %if %{with python2} | |
68 | %py_build | |
69 | %endif | |
70 | ||
71 | %if %{with python3} | |
72 | %py3_build | |
73 | %endif | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %if %{with python2} | |
79 | %py_install | |
80 | ||
81 | %py_postclean | |
82 | %endif | |
83 | ||
84 | %if %{with python3} | |
85 | %py3_install | |
86 | %endif | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %if %{with python2} | |
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc HISTORY.rst LICENSE.txt README.rst TODO.rst | |
95 | %{py_sitescriptdir}/sphinx_bootstrap_theme | |
92df6993 JB |
96 | %{py_sitescriptdir}/sphinx_bootstrap_theme-%{version}-py*.egg-info |
97 | %endif | |
92df6993 JB |
98 | |
99 | %if %{with python3} | |
100 | %files -n python3-sphinx_bootstrap_theme | |
101 | %defattr(644,root,root,755) | |
102 | %doc HISTORY.rst LICENSE.txt README.rst TODO.rst | |
103 | %{py3_sitescriptdir}/sphinx_bootstrap_theme | |
104 | %{py3_sitescriptdir}/sphinx_bootstrap_theme-%{version}-py*.egg-info | |
105 | %endif |