diff --git a/python-cups.spec b/python-cups.spec index b5a032a..75a9e4f 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: 18%{?dist} +Release: 19%{?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 -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 BuildRequires: python2-devel %endif BuildRequires: python3-devel @@ -26,7 +26,7 @@ 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. -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 %package -n python2-cups Summary: Python2 bindings for CUPS API, known as pycups. # defined in /usr/lib/rpm/macros.d/macros.python @@ -61,23 +61,23 @@ Documentation for python-cups. sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py %build -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 %py2_build %endif %py3_build rm -rf html -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 epydoc -v -o html --html build/lib*/*cups.so %endif %install make install-rpmhook DESTDIR="%{buildroot}" -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 %py2_install %endif %py3_install -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 %files -n python2-cups %doc README NEWS TODO %license COPYING @@ -95,11 +95,14 @@ make install-rpmhook DESTDIR="%{buildroot}" %files doc %doc examples -%if 0%{?rhel} <= 7 || 0%{?fedora} <= 30 +%if 0%{?rhel} <= 7 %doc html %endif %changelog +* Thu Apr 12 2018 Zdenek Dohnal - 1.9.72-19 +- fixing statement + * Thu Apr 12 2018 Zdenek Dohnal - 1.9.72-18 - make building python2 subpackage optional