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