packages: ghostscript/ghostscript.spec, ghostscript/ghostscript-cups-sh.pat...

qboosh qboosh at pld-linux.org
Mon Sep 13 21:19:34 CEST 2010


Author: qboosh                       Date: Mon Sep 13 19:19:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added cups-sh patch (use grep instead of bash test extension); build pdftoraster for cups

---- Files affected:
packages/ghostscript:
   ghostscript.spec (1.190 -> 1.191) , ghostscript-cups-sh.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ghostscript/ghostscript.spec
diff -u packages/ghostscript/ghostscript.spec:1.190 packages/ghostscript/ghostscript.spec:1.191
--- packages/ghostscript/ghostscript.spec:1.190	Sun Sep 12 21:23:44 2010
+++ packages/ghostscript/ghostscript.spec	Mon Sep 13 21:19:28 2010
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 # TODO:
 # - fix svga bcond
-# - cups subpackage?
 # - add djvu driver:
 #   http://dl.sourceforge.net/djvu/gsdjvu-1.3.tar.gz (or newer)
 # - gtk package packages library as executable and bogus libgs.so.8 dep
@@ -35,6 +34,7 @@
 Patch2:		%{name}-time_h.patch
 Patch3:		%{name}-libpng14.patch
 Patch4:		%{name}-system-zlib.patch
+Patch5:		%{name}-cups-sh.patch
 # no device for cdj850 in non-espgs ghostscript
 # look for patch in old spec for GNU ghostscript
 #Patch4:		%{name}-gdevcd8-fixes.patch
@@ -180,6 +180,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %if %{with system_jbig2dec}
@@ -200,14 +201,15 @@
 CFLAGS="%{rpmcflags} -DA4 -fPIC"
 export CFLAGS
 %configure \
+	--enable-dynamic \
+	--with-drivers=ALL%{?with_svga:,vgalib,lvga256} \
 	--with-fontpath="%{_datadir}/fonts:%{_datadir}/fonts/Type1" \
 	--with-ijs \
 	--with-jbig2dec \
 	--with-jasper \
+	--with-pdftoraster \
 	--with-system-libtiff \
-	--with-x \
-	--with-drivers=ALL%{?with_svga:,vgalib,lvga256} \
-	--enable-dynamic
+	--with-x
 
 cd ijs
 %{__libtoolize}
@@ -358,7 +360,9 @@
 
 %files cups
 %defattr(644,root,root,755)
+/etc/cups/pdftoraster.convs
 /etc/cups/pstoraster.convs
+%attr(755,root,root) %{_ulibdir}/cups/filter/pdftoraster
 %attr(755,root,root) %{_ulibdir}/cups/filter/pstopxl
 %attr(755,root,root) %{_ulibdir}/cups/filter/pstoraster
 %{_datadir}/cups/model/pxlcolor.ppd
@@ -394,6 +398,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.191  2010/09/13 19:19:28  qboosh
+- added cups-sh patch (use grep instead of bash test extension); build pdftoraster for cups
+
 Revision 1.190  2010/09/12 19:23:44  qboosh
 - dropped outdated am patch
 - added libpng14,system-zlib patches, force system zlib and libpng

================================================================
Index: packages/ghostscript/ghostscript-cups-sh.patch
diff -u /dev/null packages/ghostscript/ghostscript-cups-sh.patch:1.1
--- /dev/null	Mon Sep 13 21:19:34 2010
+++ packages/ghostscript/ghostscript-cups-sh.patch	Mon Sep 13 21:19:28 2010
@@ -0,0 +1,11 @@
+--- ghostscript-8.71/configure.ac.orig	2010-09-12 20:06:48.571133459 +0200
++++ ghostscript-8.71/configure.ac	2010-09-12 21:41:49.847134297 +0200
+@@ -531,7 +531,7 @@
+ 	    CUPSDEV="\$(DD)cups.dev"
+ 	    CUPSVERSION="`$CUPSCONFIG --version`"
+ 	    if ( test x$with_pdftoraster != xno ); then
+-	        if test "$CUPSVERSION" ">" "1.2"; then
++	        if echo "$CUPSVERSION" | grep -q '^1\.[[2-9]]'; then
+ 		    CUPSPDFTORASTER="1"
+ 		fi
+ 	    fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ghostscript/ghostscript.spec?r1=1.190&r2=1.191&f=u



More information about the pld-cvs-commit mailing list