diff --git a/python-cups.spec b/python-cups.spec index 9c9e873..2fb6bb6 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: 4%{?dist} +Release: 5%{?dist} URL: http://cyberelk.net/tim/software/pycups/ Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 License: GPLv2+ @@ -44,18 +44,17 @@ Documentation for python-cups. %prep %setup -n pycups-%{version} +sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py + %build make doc %py2_build %py3_build - %install make install-rpmhook DESTDIR="%{buildroot}" %py2_install %py3_install -chmod 755 %{buildroot}%{python3_sitearch}/cups*.so - %files %doc COPYING README NEWS TODO @@ -73,6 +72,9 @@ chmod 755 %{buildroot}%{python3_sitearch}/cups*.so %doc examples html %changelog +* Mon Dec 07 2015 Jiri Popelka - 1.9.72-5 +- Remove shebang from examples/cupstree.py (bug #1288830). + * Fri Nov 20 2015 Jiri Popelka - 1.9.72-4 - do not use py3dir - use python_provide macro