packages: cups-pdf/cups-pdf.spec - ghostscript-esp earlier than 8.15.2 is b...

glen glen at pld-linux.org
Mon Nov 30 15:42:52 CET 2009


Author: glen                         Date: Mon Nov 30 14:42:52 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- ghostscript-esp earlier than 8.15.2 is buggy
- restart ups only once on upgrades
- cosmetics

---- Files affected:
packages/cups-pdf:
   cups-pdf.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: packages/cups-pdf/cups-pdf.spec
diff -u packages/cups-pdf/cups-pdf.spec:1.8 packages/cups-pdf/cups-pdf.spec:1.9
--- packages/cups-pdf/cups-pdf.spec:1.8	Mon Mar 23 08:07:38 2009
+++ packages/cups-pdf/cups-pdf.spec	Mon Nov 30 15:42:46 2009
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
-#
-#TODO - add contrib dir
-
+# TODO
+# - add contrib dir
 Summary:	CUPS-PDF driver
 Summary(pl.UTF-8):	Sterownik CUPS-PDF
 Name:		cups-pdf
@@ -15,9 +14,10 @@
 BuildRequires:	cups-devel
 Requires:	cups
 Requires:	ghostscript
+Conflicts:	ghostscript-esp < 8.15.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _libdir         %(cups-config --serverbin 2>/dev/null)
+%define		_libdir	%(cups-config --serverbin 2>/dev/null)
 
 %description
 CUPS-PDF is designed to produce PDF files in a heterogeneous network
@@ -37,19 +37,20 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir}/backend,%{_sysconfdir}/cups,%{_datadir}/cups/model,%{_var}/spool/%{name}}
-
-install src/cups-pdf $RPM_BUILD_ROOT%{_libdir}/backend
-install extra/cups-pdf.conf  $RPM_BUILD_ROOT%{_sysconfdir}/cups
-install extra/CUPS-PDF.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
+cp -a src/cups-pdf $RPM_BUILD_ROOT%{_libdir}/backend
+cp -a extra/cups-pdf.conf  $RPM_BUILD_ROOT%{_sysconfdir}/cups
+cp -a extra/CUPS-PDF.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%service cups restart "cups daemon"
+%service -q cups restart
 
 %postun
-%service cups restart "cups daemon"
+if [ "$1" = 0 ]; then
+	%service -q cups restart
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -65,6 +66,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2009/11/30 14:42:46  glen
+- ghostscript-esp earlier than 8.15.2 is buggy
+- restart ups only once on upgrades
+- cosmetics
+
 Revision 1.8  2009/03/23 07:07:38  duddits
 - up to 2.5.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cups-pdf/cups-pdf.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list