[cups/f16] Set the correct PostScript command filter for e.g. foomatic queues (STR #3973).

Tim Waugh twaugh at fedoraproject.org
Fri Nov 4 15:30:55 UTC 2011


commit 03ff0bfd1ab48f237aa6f2aa49c6126480d4be75
Author: Tim Waugh <twaugh at redhat.com>
Date:   Fri Nov 4 13:13:28 2011 +0000

    Set the correct PostScript command filter for e.g. foomatic queues (STR #3973).

 cups-ps-command-filter.patch |   13 +++++++++++++
 cups.spec                    |   11 ++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/cups-ps-command-filter.patch b/cups-ps-command-filter.patch
new file mode 100644
index 0000000..88cd18b
--- /dev/null
+++ b/cups-ps-command-filter.patch
@@ -0,0 +1,13 @@
+diff -up cups-1.5.0/cups/ppd-cache.c.ps-command-filter cups-1.5.0/cups/ppd-cache.c
+--- cups-1.5.0/cups/ppd-cache.c.ps-command-filter	2011-11-04 13:10:34.405729542 +0000
++++ cups-1.5.0/cups/ppd-cache.c	2011-11-04 13:11:58.502184096 +0000
+@@ -1272,7 +1272,8 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd)
+ 
+     if (filter)
+       cupsArrayAdd(pc->filters,
+-                   "application/vnd.cups-command application/postscript 0 -");
++                   "application/vnd.cups-command application/postscript 100 "
++		   "commandtops");
+   }
+ 
+   if ((ppd_attr = ppdFindAttr(ppd, "cupsPreFilter", NULL)) != NULL)
diff --git a/cups.spec b/cups.spec
index 949bdfd..b724dcd 100644
--- a/cups.spec
+++ b/cups.spec
@@ -13,7 +13,7 @@
 Summary: Common Unix Printing System
 Name: cups
 Version: 1.5.0
-Release: 19%{?dist}
+Release: 20%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@@ -73,6 +73,7 @@ Patch35: cups-icc.patch
 Patch36: cups-systemd-socket.patch
 Patch37: cups-CVE-2011-2896.patch
 Patch38: cups-str3921.patch
+Patch39: cups-ps-command-filter.patch
 
 Patch100: cups-lspp.patch
 
@@ -300,6 +301,10 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
 # Work around PPDs cache handling issue (bug #742989).
 %patch38 -p1 -b .str3921
 
+# Set the correct PostScript command filter for e.g. foomatic queues
+# (STR #3973).
+%patch39 -p1 -b .ps-command-filter
+
 %if %lspp
 # LSPP support.
 %patch100 -p1 -b .lspp
@@ -649,6 +654,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/ipptool.1.gz
 
 %changelog
+* Fri Nov  4 2011 Tim Waugh <twaugh at redhat.com> 1:1.5.0-20
+- Set the correct PostScript command filter for e.g. foomatic queues
+  (STR #3973).
+
 * Mon Oct 31 2011 Tim Waugh <twaugh at redhat.com> 1:1.5.0-19
 - Set correct systemd service default on upgrade (bug #748841).
 


More information about the scm-commits mailing list