3 %bcond_without python2 # CPython 2.x module
4 %bcond_with python3 # CPython 3.x module (built from python3-pallets-sphinx-themes.spec)
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
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/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.5
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.7
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This package contains Sphinx themes for Pallets related projects.
35 %description -l pl.UTF-8
36 Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z
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
45 %description -n python3-pallets-sphinx-themes
46 This package contains Sphinx themes for Pallets related projects.
48 %description -n python3-pallets-sphinx-themes -l pl.UTF-8
49 Ten pakiet zawiera motywy Sphinksa dla projektów powiązanych z
53 %setup -q -n Pallets-Sphinx-Themes-%{version}
65 rm -rf $RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
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
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