]> git.pld-linux.org Git - packages/python-sphinx_bootstrap_theme.git/blob - python-sphinx_bootstrap_theme.spec
- release 3
[packages/python-sphinx_bootstrap_theme.git] / python-sphinx_bootstrap_theme.spec
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
9 Version:        0.7.1
10 Release:        3
11 License:        MIT
12 Group:          Libraries/Python
13 #Source0Download: https://pypi.org/simple/sphinx-bootstrap-theme/
14 Source0:        https://files.pythonhosted.org/packages/source/s/sphinx-bootstrap-theme/sphinx-bootstrap-theme-%{version}.tar.gz
15 # Source0-md5:  a2db84f029c14f23c2d0ad6a842197c1
16 URL:            https://pypi.org/project/sphinx-bootstrap-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-Sphinx >= 1.6.1
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
48 Requires:       python3-Sphinx >= 1.6.1
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
96 %{py_sitescriptdir}/sphinx_bootstrap_theme-%{version}-py*.egg-info
97 %endif
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
This page took 0.107987 seconds and 3 git commands to generate.