%{?filter_setup: %filter_provides_in %{python_sitearch}/.*\.so$ %filter_setup } Summary: Python bindings for CUPS Name: python-cups Version: 1.9.53 Release: 5%{?dist} URL: http://cyberelk.net/tim/software/pycups/ Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 Source2: psdriver.attr Source3: postscriptdriver.prov License: GPLv2+ Group: Development/Languages BuildRequires: cups-devel BuildRequires: python2-devel BuildRequires: epydoc Conflicts: rpm-build < 4.9.0 %description This package provides Python bindings for the CUPS API, known as pycups. It was written for use with system-config-printer, but can be put to other uses as well. %package doc Summary: Documentation for python-cups Group: Documentation %description doc Documentation for python-cups. %prep %setup -q -n pycups-%{version} %build CFLAGS="%{optflags} -fno-strict-aliasing" %{__python} setup.py build rm -rf html epydoc -o html --html build/lib*/cups.so %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} chmod 755 %{buildroot}%{python_sitearch}/cups.so mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs install -m644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/fileattrs/ install -m755 %{SOURCE3} %{buildroot}%{_rpmconfigdir} %files %defattr(-,root,root,-) %doc COPYING ChangeLog README NEWS TODO %{python_sitearch}/cups.so %{python_sitearch}/pycups*.egg-info %{_rpmconfigdir}/fileattrs/psdriver.attr %{_rpmconfigdir}/postscriptdriver.prov %files doc %defattr(-,root,root,-) %doc examples html %changelog * Wed Feb 23 2011 Tim Waugh - 1.9.53-5 - Use rpmconfigdir macro throughout. * Tue Feb 08 2011 Fedora Release Engineering - 1.9.53-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 25 2011 Tim Waugh - 1.9.53-3 - Fixed typo in psdriver.attr that prevented PPD files from being scanned when generating postscriptdriver tags. * Thu Jan 20 2011 Tim Waugh - 1.9.53-2 - Moved postscriptdriver RPM tagging machinery here. Fixed leading/trailing whitespace in tags as well. * Wed Dec 15 2010 Tim Waugh - 1.9.53-1 - 1.9.53 fixing a thread-local storage issue (bug #662805). * Wed Nov 17 2010 Jiri Popelka - 1.9.52-2 - Fixed rpmlint errors/warnings (#648986) - doc subpackage * Mon Nov 01 2010 Jiri Popelka - 1.9.52-1 - Initial RPM spec file