SPECS: python-pycups.spec (NEW) - new spec

wiget wiget at pld-linux.org
Wed Mar 22 16:25:44 CET 2006


Author: wiget                        Date: Wed Mar 22 15:25:44 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new spec

---- Files affected:
SPECS:
   python-pycups.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-pycups.spec
diff -u /dev/null SPECS/python-pycups.spec:1.1
--- /dev/null	Wed Mar 22 16:25:44 2006
+++ SPECS/python-pycups.spec	Wed Mar 22 16:25:38 2006
@@ -0,0 +1,55 @@
+# $Revision$, $Date$
+
+%define		module	pycups
+
+Summary:	Set of Python bindings for the CUPS API
+Name:		python-%{module}
+Version:	1.9.4
+Release:	1
+License:	GPL
+Group:		Development/Languages/Python
+Source0:	http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
+# Source0-md5:	32aa26ac40274419c4bbd68bed77407d
+BuildRequires:	python-devel >= 1:2.3
+BuildRequires:	cups-devel
+%pyrequires_eq	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pycups is a set of Python bindings for the CUPS API.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+CFLAGS="%{rpmcflags}"
+export CFLAGS
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_sitedir}
+
+python setup.py install \
+	--root=$RPM_BUILD_ROOT \
+	--optimize=2
+
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS ChangeLog
+%attr(755,root,root) %{py_sitedir}/*.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/03/22 15:25:38  wiget
+- new spec
+
================================================================


More information about the pld-cvs-commit mailing list