diff --git a/hplip.changes b/hplip.changes index 8d53eda..70d09a1 100644 --- a/hplip.changes +++ b/hplip.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Mar 18 16:51:06 CET 2015 - jsmeix@suse.de + +- Make it build for SLE12 with traditional CUPS 1.5.4 to ensure + it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4 because + for SLE12 by default CUPS 1.7.5 is provided and alternatively + CUPS 1.5.4 is provided in the "legacy" module, cf. + https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/ + ------------------------------------------------------------------- Fri Feb 27 11:45:02 CET 2015 - jsmeix@suse.de diff --git a/hplip.spec b/hplip.spec index 245bddf..eb87c4b 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ # # spec file for package hplip # -# Copyright (c) 2015 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 @@ -100,10 +100,20 @@ Patch107: hplip-udev-rules-in-usr.patch # for a CUPS version to ensure it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4. # For suse_version values see https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto %if 0%{?suse_version} > 1320 +# For openSUSE after 13.2 (i.e. for current openSUSE Factory) CUPS > 1.5 is provided and required: BuildRequires: cups > 1.5 BuildRequires: cups-devel > 1.5 Requires: cups > 1.5 -%else +%endif +%if 0%{?suse_version} == 1315 +# 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. +# Only in the Printing project for SLE12 use cups154 and cups154-devel (from the cups154-SLE12 source package): +BuildRequires: cups154 +BuildRequires: cups154-devel +Requires: cups +%endif +%if 0%{?suse_version} == 1320 || 0%{?suse_version} < 1315 +# For openSUSE 13.2 and for openSUSE 13.1 and older openSUSE and SLE11 versions CUPS < 1.6 is provided: BuildRequires: cups < 1.6 BuildRequires: cups-devel < 1.6 Requires: cups