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