diff --git a/python-pycups.changes b/python-pycups.changes index ebc0d94..715a577 100644 --- a/python-pycups.changes +++ b/python-pycups.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 9 22:02:30 UTC 2017 - toddrme2178@gmail.com + +- Provide old packages. +- Minor singlespec cleanups. + ------------------------------------------------------------------- Mon Jun 5 10:48:38 UTC 2017 - aloisio@gmx.com diff --git a/python-pycups.spec b/python-pycups.spec index 7067fe6..7527125 100644 --- a/python-pycups.spec +++ b/python-pycups.spec @@ -17,7 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define _name pycups +%define oldpython python Name: python-pycups Version: 1.9.73 Release: 0 @@ -25,20 +25,29 @@ Summary: Python Bindings for CUPS License: GPL-2.0+ Group: Development/Libraries/Python Url: http://cyberelk.net/tim/software/pycups/ -Source: https://files.pythonhosted.org/packages/source/p/pycups/%{_name}-%{version}.tar.bz2 +Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.bz2 # PATCH-FIX-OPENSUSE revert-postscriptdriver.prov-py3.patch switch back to python2 Patch0: revert-postscriptdriver.prov-py3.patch BuildRequires: %{python_module devel} BuildRequires: cups-devel +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build +%ifpython2 +Obsoletes: %{oldpython}-pycups < %{version} +Provides: %{oldpython}-pycups = %{version} +%endif +%ifpython3 +Obsoletes: python3-pycups < %{version} +Provides: python3-pycups = %{version} +%endif %python_subpackages %description Python Bindings for CUPS, the Common Unix Printing System %prep -%setup -q -n %{_name}-%{version} +%setup -q -n pycups-%{version} %patch0 -p1 %build @@ -47,11 +56,12 @@ export CFLAGS="%{optflags}" %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %defattr(-,root,root) %doc COPYING NEWS README TODO %{python_sitearch}/cups*.so -%{python_sitearch}/%{_name}-%{version}-py%{python_version}.egg-info +%{python_sitearch}/pycups-%{version}-py*.egg-info %changelog