Accepting request 291386 from home:jsmeix:branches:Printing

make it build for SLE12

OBS-URL: https://build.opensuse.org/request/show/291386
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=113
This commit is contained in:
Johannes Meixner 2015-03-19 08:21:51 +00:00 committed by Git OBS Bridge
parent 6df7276a61
commit b027fc415a
2 changed files with 21 additions and 2 deletions

View File

@ -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

View File

@ -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