From a9ca43868817cc56d4cfa6fb73b846f452234da4 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 11 Apr 2018 13:57:55 +0200 Subject: [PATCH] remove python2 subpackage --- python-cups.spec | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/python-cups.spec b/python-cups.spec index 556ac94..fd52c47 100644 --- a/python-cups.spec +++ b/python-cups.spec @@ -6,7 +6,7 @@ Summary: Python bindings for CUPS Name: python-cups Version: 1.9.72 -Release: 16%{?dist} +Release: 17%{?dist} URL: http://cyberelk.net/tim/software/pycups/ Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 License: GPLv2+ @@ -15,7 +15,7 @@ License: GPLv2+ BuildRequires: gcc BuildRequires: cups-devel -BuildRequires: python2-devel python3-devel +BuildRequires: python3-devel BuildRequires: epydoc %description @@ -23,19 +23,10 @@ This package provides Python bindings for CUPS API, known as pycups. It was written for use with system-config-printer, but can be put to other uses as well. -%package -n python2-cups -Summary: Python2 bindings for CUPS API, known as pycups. +%package -n python3-cups # defined in /usr/lib/rpm/macros.d/macros.python # if python_provide() is defined, call python_provide(python2-cups) # which may eventually add Provides: ... (see the function definition) -%{?python_provide:%python_provide python2-cups} - -%description -n python2-cups -This package provides Python 2 bindings for CUPS API, -known as pycups. It was written for use with -system-config-printer, but can be put to other uses as well. - -%package -n python3-cups Summary: Python3 bindings for CUPS API, known as pycups. %{?python_provide:%python_provide python3-cups} @@ -56,22 +47,14 @@ Documentation for python-cups. sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py %build -%py2_build %py3_build rm -rf html -epydoc -v -o html --html build/lib*/*cups.so +#epydoc -v -o html --html build/lib*/cups*.so %install make install-rpmhook DESTDIR="%{buildroot}" -%py2_install %py3_install -%files -n python2-cups -%doc README NEWS TODO -%license COPYING -%{python2_sitearch}/cups.so -%{python2_sitearch}/pycups*.egg-info - %files -n python3-cups %doc README NEWS TODO %license COPYING @@ -81,9 +64,12 @@ make install-rpmhook DESTDIR="%{buildroot}" %{_rpmconfigdir}/postscriptdriver.prov %files doc -%doc examples html +%doc examples %changelog +* Wed Apr 11 2018 Zdenek Dohnal - 1.9.72-17 +- remove python2 subpackage + * Mon Feb 19 2018 Zdenek Dohnal - 1.9.72-16 - gcc is no longer in buildroot by default