Hello community,

here is the log from the commit of package cups-filters for openSUSE:Factory 
checked in at 2015-10-19 22:48:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cups-filters (Old)
 and      /work/SRC/openSUSE:Factory/.cups-filters.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cups-filters"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cups-filters/cups-filters.changes        
2015-09-17 09:17:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.cups-filters.new/cups-filters.changes   
2015-10-19 22:48:09.000000000 +0200
@@ -1,0 +2,111 @@
+Wed Oct  7 11:16:13 CEST 2015 - [email protected]
+
+- FirstPage_LastPage_only_if_needed.patch lets foomatic-rip
+  add -dFirstPage=N [and -dLastPage=M] to the Ghostscript
+  command line only if those options are actually needed
+  (i.e. if FirstPage > 1 [and when LastPage >= FirstPage])
+  cf. http://bugs.ghostscript.com/show_bug.cgi?id=696246
+  and https://bugs.linuxfoundation.org/show_bug.cgi?id=1324
+- At least for now support for cups154 in the SLE12 legacy module
+  is abandoned (by default SLE12 has CUPS 1.7.5) because newer
+  cups-filters versions again use stuff that is provided
+  since CUPS > 1.5.4 so that it does no longer build with
+  CUPS 1.5.4. Perhaps I ([email protected]) find time to fix it
+  again for CUPS 1.5.4 but when not, newer cups-filters will
+  no longer work with CUPS 1.5.4.
+- Version upgrade to 1.0.76
+  Changes in 1.0.76 (excerpt - for details see the NEWS file):
+  * cups-browsed, implicitclass: Let the load-balancing queue up
+    the jobs in the local (generated) queue until a free (idle,
+    enabled, and accepting jobs) remote queue is found (check
+    every 5 sec if no free queue available). This gives a more
+    even distribution of the work amongst the servers and
+    protects against the case that a bunch of jobs gets
+    inaccessible or lost if one of the servers fails.
+  * cups-browsed: Let the load-balancing also check whether the
+    destination queue is actually accepting jobs.
+  * cups-browsed: If a generated queue is not removed on
+    shutdown of cups-browsed due to remaining jobs in it,
+    re-enable it in the next cups-browsed session even if it was
+    disabled by something other than cups-browsed.
+  * implicitclass: Clean up debug and error messages.
+  * implicitclass: Fix exit codes for immediate retry of jobs.
+  * cups-browsed: Make absence of CUPS notifications via D-Bus
+    non-fatal and fall back to the old behavior of cups-browsed
+    (fail-over instead of load balancing for equally-named
+    remote queues, do not remove generated queue if it is
+    default instead of default printer management). This solves
+    problems of CUPS and/or cups-browsed built without D-Bus
+    support or absence of D-Bus on the system (Bug #1316).
+  * cups-browsed: Do not use g_warning() function, sneaked in
+    by copy and paste of CUPS subscription functions.
+- Version upgrade to 1.0.75
+  Changes in 1.0.75 (excerpt - for details see the NEWS file):
+  * texttopdf: Really support BoldItalic (original texttops
+    just maps BoldItalic to Bold).
+  * texttopdf: Fixed segfault when outputting BoldItalic
+    (Bug #1314).
+- Version upgrade to 1.0.74
+  Changes in 1.0.74 (excerpt - for details see the NEWS file):
+  * cups-browsed: Added NULL check when getting the notification
+    of a printer starting to process a job and checking whether
+    this printer is created by cups-browsed with the
+    implicitclass: backend (Ubuntu bug #1488524).
+  * cups-browsed: Do not schedule printers for update when they
+    are already marked as disappeared.
+  * cups-browsed: Added sanity checks when saving the default
+    printer selection in a file.
+  * cups-browsed, implicitclass: If remote queues disappear or
+    cups-browsed shuts down and a cups-browsed-generated queue
+    still has jobs and needs to be kept therefore, disable it
+    and re-enable it when cups-browsed starts again and/or the
+    remote queue(s) re-appear(s). This avoids repeated retries
+    of the jobs while the remote server is not available, causing
+    unneeded system load and battery consumption.
+  * cups-browsed: After polling info from remote CUPS servers
+    to find the best destination job, set the default CUPS server
+    back to local.
+- Version upgrade to 1.0.73
+  Changes in 1.0.73 (excerpt - for details see the NEWS file):
+  * cups-browsed: Added missing
+    utils/org.cups.cupsd.Notifier.xml file.
+- Version upgrade to 1.0.72
+  Changes in 1.0.72 (excerpt - for details see the NEWS file):
+  * cups-browsed, implicitclass: Added load balancing
+    functionality. If there are several remote CUPS printers
+    with the same name, they for locally a cluster represented
+    by a print queue with this name. This printer prints through
+    a special backend (implicitclass) which makes cups-browsed
+    find the best destination remote queue (fewest jobs,
+    enabled) for this job.
+  * cups-browsed: Added protection against accidental deletion of
+    print queues generated by cups-browsed. These queues now get
+    automatically re-created.
+  * cups-browsed: Added LDAP support. Appropriately configured
+    via cups-browsed.conf remote printers made available via LDAP
+    will be looked up and local queues pointing to them created.
+    Thanks to Raphael Geissert (atomo64 at gmail dot com) for
+    contributing this patch (Debian bug #795185).
+  * cups-browsed: Introduced new handling for the default printer
+    using cache files. So we do not need to keep an auto-generated
+    queue because it is set as default printer. If the
+    auto-generated queue disappears, the old local printer is set
+    as default again and when it re-appears it returns to be the
+    default printer.
+  * cups-browsed: Added infrastructure for subscribing to CUPS
+    notifications for things like improved default printer
+    handling, load balancing, ...
+  * foomatic-rip: Prevent crash when supplying "media" option with
+    empty value ("media=", Ubuntu bug #1479871).
+  * pdftoopvp: Adaptations to API changes on Poppler 0.34.0, note
+    that this patch disables color management in this filter.
+    Thanks to Vincent le Garrec and Andreas K. Huettel for the
+    patch (Bug #1301, Gentoo bug #554782).
+  * texttopdf: Request the generic 'monospace' font alias from
+    fontconfig instead of the hard-coded FreeMono. Thanks
+    to Fabian Greffrath (fabian at debian dot org) for the
+    patch (Debian bug #788048).
+- cups-filters-poppler-034.patch is obsolete since version 1.0.72
+  because it is fixed in the sources.
+
+-------------------------------------------------------------------
@@ -25 +136 @@
-  Change in 1.0.71 (cf. the NEWS file but there is a typo
+  Changes in 1.0.71 (cf. the NEWS file but there is a typo

Old:
----
  cups-filters-1.0.71.tar.xz
  cups-filters-poppler-034.patch

New:
----
  FirstPage_LastPage_only_if_needed.patch
  cups-filters-1.0.76.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cups-filters.spec ++++++
--- /var/tmp/diff_new_pack.cMbw4O/_old  2015-10-19 22:48:10.000000000 +0200
+++ /var/tmp/diff_new_pack.cMbw4O/_new  2015-10-19 22:48:10.000000000 +0200
@@ -37,9 +37,13 @@
 #       and also run: zypper vcmp 'next version' 'current version'
 # e.g. zypper vcmp '1.0.49' '1.0.49.20140326' -> 1.0.49 is older than 
1.0.49.20140326
 #  and zypper vcmp '1.0.50' '1.0.49.20140326' -> 1.0.50 is newer than 
1.0.49.20140326
-Version:        1.0.71
+Version:        1.0.76
 Release:        0
 Source0:        
http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
+# Patch1 FirstPage_LastPage_only_if_needed.patch lets foomatic-rip add 
-dFirstPage=N [and -dLastPage=M]
+# to the Ghostscript command line only if needed (i.e. if FirstPage > 1 [and 
when LastPage >= FirstPage])
+# cf. http://bugs.ghostscript.com/show_bug.cgi?id=696246 and 
https://bugs.linuxfoundation.org/show_bug.cgi?id=1324
+Patch1:         FirstPage_LastPage_only_if_needed.patch
 # Since cups-filters version 1.0.42 foomatic-rip is also provided by 
cups-filters.
 # The foomatic-rip version that is provided by cups-filters is not specified 
in the cups-filters sources
 # but on http://www.openprinting.org/download/foomatic/ the 
foomatic-filters-4.0-current.tar.gz
@@ -50,23 +54,12 @@
 #   zypper vcmp '4.0.17.256' '4.0.17.256.1' -> 4.0.17.256 is older than 
4.0.17.256.1
 #   zypper vcmp '4.0.17.257' '4.0.17.256.1' -> 4.0.17.257 is newer than 
4.0.17.256.1
 %define foomatic_rip_version 4.0.17.256.1
-# PATCH-FIX-UPSTREAM cups-filters-poppler-034.patch blo#1301 
[email protected] -- Fix build with new poppler-0.34. Upstream patch.
-Patch0:         cups-filters-poppler-034.patch
-# SLE12 needs special BuildRequires.
-# For suse_version values see 
https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
-%if 0%{?suse_version} == 1315
-# For SLE12 by default CUPS 1.7.5 is provided and alternatively CUPS 1.5.4 is 
provided in the "legacy" module.
-# For SLE12 build it with traditional CUPS 1.5.4 to ensure it works on SLE12 
both with CUPS 1.7.5 and CUPS 1.5.4
-# because libcups and libcupsimage in CUPS 1.7.5 are backward compatible with 
CUPS 1.5.4 so that applications
-# that have been built with CUPS 1.5.4 also work under CUPS 1.7.5 but the 
libraries in CUPS 1.7.5 provide
-# some additional functions so that applications that have been built with 
CUPS 1.7.5 and use those
-# additional functions would not work under CUPS 1.7.5.
-# Only in the Printing project for SLE12 use cups154-ddk (a sub package of the 
cups154-SLE12 source package):
-BuildRequires:  cups154-devel
-%else
-# Anything what is not SLE12 (i.e. SLE11 and all openSUSE versions) have 
"normal" BuildRequires:
-BuildRequires:  cups-devel
-%endif
+# At least for now support for cups154 in the SLE12 legacy module is abandoned 
(by default SLE12 has CUPS 1.7.5)
+# because newer cups-filters versions again use stuff that is provided since 
CUPS > 1.5.4 so that it does
+# no longer build with CUPS 1.5.4. Perhaps I ([email protected]) find time to fix 
it again for CUPS 1.5.4
+# but when not, newer cups-filters will no longer work with CUPS 1.5.4:
+BuildRequires:  cups-devel > 1.5.4
+Requires:       cups > 1.5.4
 BuildRequires:  pkgconfig
 # pdftopdf
 BuildRequires:  qpdf-devel
@@ -172,6 +165,8 @@
 %package ghostscript
 Summary:        OpenPrinting CUPS filters for Ghostscript
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
+Requires:       cups > 1.5.4
 # Provide the well known generic name "gstoraster" so that it is easier for 
users
 # to find or install the RPM package name "cups-filters-ghostscript" that 
actually provides it
 # e.g. via "zypper search gstoraster" or "zypper install gstoraster":
@@ -195,6 +190,8 @@
 %package foomatic-rip
 Summary:        OpenPrinting CUPS filter foomatic-rip
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
+Requires:       cups > 1.5.4
 # Because gstoraster is linked with libcupsfilters.so
 # that library is in the cups-filters-ghostscript sub-package
 # (see the cups-filters-ghostscript sub-package file section).
@@ -235,6 +232,8 @@
 %package cups-browsed
 Summary:        OpenPrinting cups-browsed for CUPS Browsing
 Group:          Hardware/Printing
+# Newer cups-filters versions use stuff that is provided since CUPS > 1.5.4:
+Requires:       cups > 1.5.4
 # Do not conflict with CUPS < 1.6 regardless that up to CUPS 1.5.4
 # the CUPS Browsing functionality is provided by the cupsd
 # because it can be disabled for the cupsd up to CUPS 1.5.4.
@@ -278,9 +277,10 @@
 
 %prep
 %setup -q
-%if 0%{?suse_version} > 1320
-%patch0 -p0
-%endif
+# Patch1 FirstPage_LastPage_only_if_needed.patch lets foomatic-rip add 
-dFirstPage=N [and -dLastPage=M]
+# to the Ghostscript command line only if needed (i.e. if FirstPage > 1 [and 
when LastPage >= FirstPage])
+# cf. http://bugs.ghostscript.com/show_bug.cgi?id=696246 and 
https://bugs.linuxfoundation.org/show_bug.cgi?id=1324
+%patch1
 
 %build
 # Just do what is described in the upstream INSTALL file
@@ -416,6 +416,7 @@
 %config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
 %dir /usr/lib/cups
 %dir /usr/lib/cups/backend
+%attr(0755,root,root) /usr/lib/cups/backend/implicitclass
 %attr(0755,root,root) /usr/lib/cups/backend/parallel
 # Serial backend needs to run as root
 # see https://bugzilla.redhat.com/show_bug.cgi?id=212577#c4

++++++ FirstPage_LastPage_only_if_needed.patch ++++++
--- filter/foomatic-rip/pdf.c.orig      2015-06-26 17:45:26.000000000 +0200
+++ filter/foomatic-rip/pdf.c   2015-10-07 10:24:29.000000000 +0200
@@ -121,11 +121,15 @@ static int pdf_extract_pages(char filena
     close (fd);
 
     snprintf(filename_arg, PATH_MAX, "-sOutputFile=%s", filename);
-    snprintf(first_arg, 50, "-dFirstPage=%d", first);
-    if (last > 0)
-        snprintf(last_arg, 50, "-dLastPage=%d", last);
-    else
-        first_arg[0] = '\0';
+
+    first_arg[0] = '\0';
+    last_arg[0] = '\0';
+    if (first > 1)
+    {
+        snprintf(first_arg, 50, "-dFirstPage=%d", first);
+        if (last >= first)
+            snprintf(last_arg, 50, "-dLastPage=%d", last);
+    }
 
     snprintf(gscommand, CMDLINE_MAX, "%s -q -dNOPAUSE -dBATCH -dPARANOIDSAFER 
-dNOINTERPOLATE"
             "-sDEVICE=pdfwrite %s %s %s %s",
@@ -188,13 +192,16 @@ static int render_pages_with_ghostscript
 
     dstrinsertf(cmd, end_gs_cmd, " %s ", filename);
 
-    if (lastpage > 0)
-        dstrinsertf(cmd, start_gs_cmd +2,
-                    " -dFirstPage=%d -dLastPage=%d ",
-                    firstpage, lastpage);
-    else
-        dstrinsertf(cmd, start_gs_cmd +2,
-                    " -dFirstPage=%d ", firstpage);
+    if (firstpage > 1)
+    {
+        if (lastpage >= firstpage)
+            dstrinsertf(cmd, start_gs_cmd +2,
+                        " -dFirstPage=%d -dLastPage=%d ",
+                        firstpage, lastpage);
+        else
+            dstrinsertf(cmd, start_gs_cmd +2,
+                        " -dFirstPage=%d ", firstpage);
+    }
 
     return start_renderer(cmd->data);
 }
++++++ cups-filters-1.0.71.tar.xz -> cups-filters-1.0.76.tar.xz ++++++
++++ 4560 lines of diff (skipped)


Reply via email to