From cb1a52951f2ce4187c0b23a2339182940428c8d52a3841a8d4ed5cfeffe22644 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Fri, 20 Mar 2015 09:54:15 +0000 Subject: [PATCH] - 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. OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=48 --- ghostscript-mini.spec | 2 +- ghostscript.changes | 6 ++++++ ghostscript.spec | 16 +++++++++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index cd4b4fc..7b8bb17 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -1,7 +1,7 @@ # # spec file for package ghostscript-mini # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/ghostscript.changes b/ghostscript.changes index 848a0b3..c6f6176 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 20 10:52:47 CET 2015 - jsmeix@suse.de + +- 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. + ------------------------------------------------------------------- Sun Sep 28 18:00:37 CEST 2014 - ro@suse.de diff --git a/ghostscript.spec b/ghostscript.spec index 8c99a8e..a6e01a6 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -1,7 +1,7 @@ # # spec file for package ghostscript # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,21 @@ Name: ghostscript +# 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 # dbus-1-devel is needed for "configure --enable-dbus" (see below): BuildRequires: dbus-1-devel BuildRequires: freetype2-devel