From 0e76331d29cc4f56218dc6f06566b67666310713 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 14 2017 20:33:52 +0000 Subject: Rename Python 2 package to python2-cairo --- diff --git a/pycairo.spec b/pycairo.spec index 86bab0f..db5dba5 100644 --- a/pycairo.spec +++ b/pycairo.spec @@ -9,20 +9,35 @@ Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pyca BuildRequires: cairo-devel BuildRequires: pkgconfig -BuildRequires: pytest -BuildRequires: python-devel +BuildRequires: python2-devel +BuildRequires: python2-pytest BuildRequires: python-xpyb-devel -Requires: python-xpyb %description Python bindings for the cairo library. -%package devel -Summary: Libraries and headers for pycairo -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: python-devel +%package -n python2-cairo +Summary: Python 2 bindings for the cairo library +%{?python_provide:%python_provide python2-cairo} +Requires: python-xpyb +# Renamed in F27 +Obsoletes: pycairo < 1.15.2 +Provides: pycairo = %{version}-%{release} +Provides: pycairo%{?_isa} = %{version}-%{release} -%description devel +%description -n python2-cairo +Python 2 bindings for the cairo library. + +%package -n python2-cairo-devel +Summary: Libraries and headers for pycairo +Requires: python2-cairo%{?_isa} = %{version}-%{release} +Requires: python2-devel +# Renamed in F27 +Obsoletes: pycairo-devel < 1.15.2 +Provides: pycairo-devel = %{version}-%{release} +Provides: pycairo-devel%{?_isa} = %{version}-%{release} + +%description -n python2-cairo-devel This package contains files required to build wrappers for cairo add-on libraries so that they interoperate with pycairo. @@ -38,12 +53,12 @@ libraries so that they interoperate with pycairo. %check %{__python2} setup.py test -%files +%files -n python2-cairo %license COPYING* -%{python_sitearch}/cairo/ -%{python_sitearch}/pycairo*.egg-info +%{python2_sitearch}/cairo/ +%{python2_sitearch}/pycairo*.egg-info -%files devel +%files -n python2-cairo-devel %{_includedir}/pycairo/ %{_libdir}/pkgconfig/pycairo.pc @@ -53,6 +68,7 @@ libraries so that they interoperate with pycairo. - Switch to new upstream at https://github.com/pygobject/pycairo - Switch to distutils build system - Tighten subpackage deps with the _isa macro +- Rename Python 2 package to python2-cairo * Thu Aug 03 2017 Fedora Release Engineering - 1.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild