From bd57f8fbf02342fd32db3a02ced00bfa89914b4f Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 30 Jul 2013 16:53:52 +0100 Subject: [PATCH] Set cost for text filters to 200. This means the paps filter gets preference for the time being (bug #988909). Resolves: rhbz#988909 --- cups-filters-textfilters.patch | 22 ++++++++++++++++++++++ cups-filters.spec | 10 +++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 cups-filters-textfilters.patch diff --git a/cups-filters-textfilters.patch b/cups-filters-textfilters.patch new file mode 100644 index 0000000..bd44876 --- /dev/null +++ b/cups-filters-textfilters.patch @@ -0,0 +1,22 @@ +diff -up cups-filters-1.0.35/mime/cupsfilters.convs.textfilters cups-filters-1.0.35/mime/cupsfilters.convs +--- cups-filters-1.0.35/mime/cupsfilters.convs.textfilters 2013-07-29 16:08:25.244864850 +0100 ++++ cups-filters-1.0.35/mime/cupsfilters.convs 2013-07-29 16:09:40.030216976 +0100 +@@ -46,12 +46,12 @@ application/postscript application/pdf + application/vnd.adobe-reader-postscript application/vnd.cups-postscript 66 pstops + + application/pdf application/vnd.cups-pdf 66 pdftopdf +-application/x-cshell application/pdf 0 texttopdf +-application/x-csource application/pdf 0 texttopdf +-application/x-perl application/pdf 0 texttopdf +-application/x-shell application/pdf 0 texttopdf +-text/plain application/pdf 0 texttopdf +-text/html application/pdf 0 texttopdf ++application/x-cshell application/pdf 200 texttopdf ++application/x-csource application/pdf 200 texttopdf ++application/x-perl application/pdf 200 texttopdf ++application/x-shell application/pdf 200 texttopdf ++text/plain application/pdf 200 texttopdf ++text/html application/pdf 200 texttopdf + image/gif application/vnd.cups-pdf 33 imagetopdf + image/png application/vnd.cups-pdf 33 imagetopdf + image/jpeg application/vnd.cups-pdf 33 imagetopdf diff --git a/cups-filters.spec b/cups-filters.spec index c1819b1..f269589 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.0.35 -Release: 5%{?dist} +Release: 6%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -25,6 +25,7 @@ Source1: cups-browsed.service Patch1: cups-filters-man.patch Patch2: cups-filters-lookup.patch Patch3: cups-filters-page-label.patch +Patch4: cups-filters-textfilters.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -105,6 +106,9 @@ This is the development package for OpenPrinting CUPS filters and backends. # Added support for page-label (bug #987515). %patch3 -p1 -b .page-label +# Set cost for text filters to 200 (bug #988909). +%patch4 -p1 -b .textfilters + %build # work-around Rpath ./autogen.sh @@ -212,6 +216,10 @@ fi %{_libdir}/libfontembed.so %changelog +* Tue Jul 30 2013 Tim Waugh - 1.0.35-6 +- Set cost for text filters to 200 so that the paps filter gets + preference for the time being (bug #988909). + * Wed Jul 24 2013 Tim Waugh - 1.0.35-5 - Handle page-label when printing n-up as well.