Readd Python 2 subpackage

This commit is contained in:
Julien Enselme 2018-10-06 12:31:32 +02:00
parent 540d1d3dd3
commit 1eadb643bd

View File

@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 0.7.12
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Configurable sidebar-enabled Sphinx theme
License: BSD
@ -11,6 +11,8 @@ URL: https://pypi.python.org/pypi/%{pypi_name}
Source0: https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f83c4d5463a7614cb1d078ad7ae890c9143edebbf072/alabaster-0.7.12.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
@ -18,6 +20,16 @@ used in his Requests project), which was itself originally based on @mitsuhiko's
theme used for Flask & related projects.
%package -n python2-%{srcname}
Summary: Configurable sidebar-enabled Sphinx theme
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
used in his Requests project), which was itself originally based on @mitsuhiko's
theme used for Flask & related projects.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: Configurable sidebar-enabled Sphinx theme
BuildArch: noarch
@ -39,13 +51,21 @@ rm -rf %{pypi_name}.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/%{pypi_name}/
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst
@ -54,6 +74,9 @@ rm -rf %{pypi_name}.egg-info
%changelog
* Sat Oct 06 2018 Julien Enselme <jujens@jujens.eu> - 0.7.12-2
- Readd Python 2 subpackage
* Thu Oct 04 2018 Julien Enselme <jujens@jujens.eu> - 0.7.12-1
- Update to 0.7.12
- Remove Python 2 subpackage