]> git.pld-linux.org Git - packages/python-pallets-sphinx-themes.git/blame - python-pallets-sphinx-themes.spec
rebuild with tests and docs
[packages/python-pallets-sphinx-themes.git] / python-pallets-sphinx-themes.spec
CommitLineData
8cf3d6fc
AM
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
09911bea 4%bcond_with python3 # CPython 3.x module (built from python3-pallets-sphinx-themes.spec)
8cf3d6fc
AM
5
6Summary: Sphinx themes for Pallets Project documentation
7Summary(pl.UTF-8): Motywy Sphinksa do dokumentacji z projektu Pallets
8Name: python-pallets-sphinx-themes
09911bea 9# keep 1.x here for python2 support
08b6e37f 10Version: 1.2.3
66c06101 11Release: 4
8cf3d6fc
AM
12License: BSD
13Group: Libraries/Python
14#Source0Download: https://pypi.org/simple/pallets-sphinx-themes/
5e89ebce 15Source0: https://files.pythonhosted.org/packages/source/p/pallets-sphinx-themes/Pallets-Sphinx-Themes-%{version}.tar.gz
08b6e37f 16# Source0-md5: 05f25718e2319a6dfd7a3a7d6aee9c19
8cf3d6fc
AM
17URL: https://palletsprojects.com/
18%if %{with python2}
19BuildRequires: python-modules >= 1:2.7
20BuildRequires: python-setuptools
21%endif
22%if %{with python3}
08b6e37f 23BuildRequires: python3-modules >= 1:3.5
8cf3d6fc
AM
24BuildRequires: python3-setuptools
25%endif
26BuildRequires: rpm-pythonprov
27BuildRequires: rpmbuild(macros) >= 1.714
28Requires: python-modules >= 1:2.7
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33This package contains Sphinx themes for Pallets related projects.
34
35%description -l pl.UTF-8
5e89ebce
JB
36Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z
37Pallets.
8cf3d6fc
AM
38
39%package -n python3-pallets-sphinx-themes
40Summary: Sphinx themes for Pallets Project documentation
41Summary(pl.UTF-8): Motywy Sphinksa do dokumentacji z projektu Pallets
42Group: Libraries/Python
08b6e37f 43Requires: python3-modules >= 1:3.5
8cf3d6fc
AM
44
45%description -n python3-pallets-sphinx-themes
46This package contains Sphinx themes for Pallets related projects.
47
48%description -n python3-pallets-sphinx-themes -l pl.UTF-8
08b6e37f
JB
49Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z
50Pallets.
8cf3d6fc
AM
51
52%prep
5e89ebce 53%setup -q -n Pallets-Sphinx-Themes-%{version}
8cf3d6fc
AM
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
65rm -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
78rm -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.103249 seconds and 5 git commands to generate.