From c0de6debaf1f67cc2f50ceb58be7f03aca466fa7 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 19 Nov 2010 19:12:19 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + python-cups.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 python-cups.spec diff --git a/.gitignore b/.gitignore index e69de29..83dd988 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pycups-1.9.52.tar.bz2 diff --git a/python-cups.spec b/python-cups.spec new file mode 100644 index 0000000..3faab06 --- /dev/null +++ b/python-cups.spec @@ -0,0 +1,59 @@ +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup +} + +Summary: Python bindings for CUPS +Name: python-cups +Version: 1.9.52 +Release: 2%{?dist} +URL: http://cyberelk.net/tim/software/pycups/ +Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 +License: GPLv2+ +Group: Development/Languages +BuildRequires: cups-devel +BuildRequires: python2-devel +BuildRequires: epydoc + +%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 + +%files +%defattr(-,root,root,-) +%doc COPYING ChangeLog README NEWS TODO +%{python_sitearch}/cups.so +%{python_sitearch}/pycups*.egg-info + +%files doc +%defattr(-,root,root,-) +%doc examples html + +%changelog +* 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 diff --git a/sources b/sources index e69de29..bfd0f65 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dc5ea2f3e0ef61837f493a70d1f74905 pycups-1.9.52.tar.bz2