commit splix for openSUSE:Factory
Hello community, here is the log from the commit of package splix for openSUSE:Factory checked in at 2014-06-25 10:49:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/splix (Old) and /work/SRC/openSUSE:Factory/.splix.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "splix" Changes: -------- --- /work/SRC/openSUSE:Factory/splix/splix.changes 2014-03-13 20:44:14.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.splix.new/splix.changes 2014-06-25 10:49:15.000000000 +0200 @@ -1,0 +2,15 @@ +Tue Jun 24 14:19:14 CEST 2014 - jsmeix@suse.de + +- Make Splix working also for Ghostscript version >= 9.02: + In /usr/lib/cups/filter/pstoqpdl there is a hardcoded + call for /usr/lib/cups/filter/pstoraster. + Since Ghostscript 9.02 /usr/lib/cups/filter/pstoraster + is replaced by /usr/lib/cups/filter/gstoraster. + Accordingly when no /usr/lib/cups/filter/pstoraster exists, + an appropriate symlink is created (bnc#803005). +- Require ghostscript because all Splix driver PPDs either + call /usr/lib/cups/filter/pstoqpdl that calls Ghostscript + or /usr/lib/cups/filter/rastertoqpdl that needs raster data + from the Ghostscript cups device. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ splix.spec ++++++ --- /var/tmp/diff_new_pack.DwDVVn/_old 2014-06-25 10:49:16.000000000 +0200 +++ /var/tmp/diff_new_pack.DwDVVn/_new 2014-06-25 10:49:16.000000000 +0200 @@ -44,6 +44,18 @@ BuildRequires: jbigkit-devel %endif Requires: cups +# The Splix driver PPDs contain either +# *cupsFilter: "application/vnd.cups-postscript 0 pstoqpdl" +# or +# *cupsFilter: "application/vnd.cups-raster 0 rastertoqpdl" +# which means both require Ghostscript because +# either /usr/lib/cups/filter/pstoqpdl calls Ghostscript via +# /usr/lib/cups/filter/pstoraster or /usr/lib/cups/filter/gstoraster +# (see the post install scriptlet below) +# or /usr/lib/cups/filter/rastertoqpdl needs CUPS raster data as input +# that is produced by the cups device in Ghostscript +# (even the old ghostscript-library RPM e.g. in SLE11 provides ghostscript): +Requires: ghostscript # Provide and obsolete its old RPM package name "cups-drivers-splix" # see https://bugzilla.novell.com/show_bug.cgi?id=659579 Provides: cups-drivers-splix >= %version @@ -85,6 +97,26 @@ %clean rm -fr %buildroot +%post +# Use a real bash script with an explicit "exit 0" at the end to be by default fail safe +# an explicit "exit 1" must be use to enforce package install/upgrade/erase failure where needed +# see the "Shared_libraries" section in http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets +# Make Splix working also for Ghostscript version >= 9.02: +# In /usr/lib/cups/filter/pstoqpdl there is a hardcoded call for /usr/lib/cups/filter/pstoraster. +# Since Ghostscript version 9.02 /usr/lib/cups/filter/pstoraster is replaced by /usr/lib/cups/filter/gstoraster. +# Accordingly when no /usr/lib/cups/filter/pstoraster exists, create an appropriate symlink +# so that /usr/lib/cups/filter/pstoqpdl works (see https://bugzilla.novell.com/show_bug.cgi?id=803005). +# Intentionally there is no test that /usr/lib/cups/filter/gstoraster exists because +# the required (but not pre-required) ghostscript RPM could be installed after splix. +# Note that only "test -e /usr/lib/cups/filter/pstoraster" (or "test -f") is insufficient because +# test follows symlinks which means when /usr/lib/cups/filter/pstoraster is already a (possibly broken) +# symbolic link to /usr/lib/cups/filter/gstoraster then test results false so that +# additionally it must be tested if /usr/lib/cups/filter/pstoraster is a symlink: +if ! test -e /usr/lib/cups/filter/pstoraster -o -L /usr/lib/cups/filter/pstoraster +then ln -s /usr/lib/cups/filter/gstoraster /usr/lib/cups/filter/pstoraster +fi +exit 0 + %files %defattr(-,root,root) %doc COPYING README.SUSE -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de