packages: python-pycups/python-pycups.spec - merged with python-cups

glen glen at pld-linux.org
Sat Mar 3 18:18:08 CET 2012


Author: glen                         Date: Sat Mar  3 17:18:08 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- merged with python-cups

---- Files affected:
packages/python-pycups:
   python-pycups.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: packages/python-pycups/python-pycups.spec
diff -u packages/python-pycups/python-pycups.spec:1.25 packages/python-pycups/python-pycups.spec:1.26
--- packages/python-pycups/python-pycups.spec:1.25	Thu Jan 12 19:58:37 2012
+++ packages/python-pycups/python-pycups.spec	Sat Mar  3 18:18:03 2012
@@ -1,53 +1,59 @@
 # $Revision$, $Date$
-
 %define		module	pycups
-
 Summary:	Set of Python bindings for the CUPS API
 Summary(pl.UTF-8):	Zbiór wiązań Pythona do API CUPS-a
 Name:		python-%{module}
 Version:	1.9.60
-Release:	1
-License:	GPL
+Release:	2
+License:	GPL v2+
 Group:		Development/Languages/Python
 Source0:	http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
 # Source0-md5:	083f3dd657df986e712a6fae36427457
 URL:		http://cyberelk.net/tim/software/pycups/
 BuildRequires:	cups-devel >= 1.2.1
+BuildRequires:	epydoc
 BuildRequires:	python-devel >= 1:2.5
 BuildRequires:	rpm-pythonprov
+Obsoletes:	python-cups
 %pyrequires_eq	python-modules
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-pycups is a set of Python bindings for the CUPS API.
+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.
 
 %description -l pl.UTF-8
 pycups to zbiór wiązań Pythona do API CUPS-a.
 
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+
+%description doc
+Documentation for %{name}.
+
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
-CFLAGS="-DVERSION=\\\"%{version}\\\" %{rpmcflags}"
-export CFLAGS
-python setup.py build
+%{__make} \
+	CFLAGS="%{rpmcflags} -fno-strict-aliasing"
 
+%{__make} doc
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitedir}
-
-python setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc NEWS ChangeLog
-%attr(755,root,root) %{py_sitedir}/*.so
-%{py_sitedir}/*.egg-info
+%doc ChangeLog README NEWS TODO
+%attr(755,root,root) %{py_sitedir}/cups.so
+%{py_sitedir}/pycups*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -55,6 +61,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2012/03/03 17:18:03  glen
+- merged with python-cups
+
 Revision 1.25  2012/01/12 18:58:37  zbyniu
 - up to 1.9.60
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-pycups/python-pycups.spec?r1=1.25&r2=1.26&f=u



More information about the pld-cvs-commit mailing list