Accepting request 86885 from home:jsmeix:branches:Printing

cups: upgrade to version 1.5.0 (bnc#722057)

OBS-URL: https://build.opensuse.org/request/show/86885
OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=228
This commit is contained in:
2011-10-06 09:36:19 +00:00
committed by Git OBS Bridge
parent a4c0c8e305
commit 7896b9daf5
7 changed files with 116 additions and 357 deletions

104
cups.spec
View File

@@ -16,12 +16,13 @@
#
Name: cups
BuildRequires: avahi-compat-mDNSResponder-devel dbus-1-devel gcc-c++
BuildRequires: krb5-devel libpng-devel libtiff-devel openldap2-devel
BuildRequires: openslp-devel openssl-devel pam-devel pkg-config tcpd-devel
BuildRequires: fdupes update-desktop-files
# Have libtool as explicit buildrequirement to no longer depend
# on a "hidden" buildrequirement in the OBS project definition:
BuildRequires: libtool
PreReq: textutils, fileutils, sh-utils, /usr/sbin/groupadd
PreReq: %insserv_prereq
@@ -35,10 +36,10 @@ License: GPLv2+ ; LGPLv2.1+
Group: Hardware/Printing
Summary: The Common UNIX Printing System
# Source0...Source9 is for sources from upstream:
# URL for Source0: http://ftp.easysw.com/pub/cups/1.4.8/cups-1.4.8-source.tar.bz2
# MD5 sum for Source0 on http://www.cups.org/software.php 0ec52d3f3c69bc2ab5ed70c594edbce6
Version: 1.4.8
Release: 2
# URL for Source0: http://ftp.easysw.com/pub/cups/1.5.0/cups-1.5.0-source.tar.bz2
# MD5 sum for Source0 on http://www.cups.org/software.php e54ed09ede2340fc3014913333520fe4
Version: 1.5.0
Release: 1
Source0: cups-%{version}-source.tar.bz2
# Require the exact matching version-release of the cups-libs sub-package because
# non-matching CUPS libraries may let CUPS software crash (e.g. segfault)
@@ -105,23 +106,16 @@ Patch102: cups-1.3.9-desktop_file.patch
Patch103: cups-1.4-do_not_strip_recommended_from_PPDs.patch
# Patch104 adds the 'allowallforanybody' policy to cupsd.conf
# see https://fate.novell.com/303515
Patch104: cups-1.4-additional_policies.patch
# Patch105 reverts changes by CUPS STR #3461 as band-aid workaround
# to avoid https://bugzilla.novell.com/show_bug.cgi?id=617026 for now:
Patch105: cups-1.4.4-str3461-1.4.reverted.patch
# Patch106 enlarges the CUPS upstream default RIPCache from 8m to 128m
# to avoid various kind of printout failures
# see https://bugzilla.novell.com/show_bug.cgi?id=628233
Patch106: cups-1.4.4-set_default_RIPCache_128m.patch
Patch104: cups-1.5-additional_policies.patch
# Install into this non-root directory (required when norootforbuild is used):
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features.
The Common UNIX Printing System (CUPS) is the
standards-based, open source printing system.
See http://www.cups.org
http://www.cups.org
%package libs
License: GPLv2+ ; LGPLv2.1+
@@ -133,15 +127,20 @@ Obsoletes: cups-libs-64bit
%endif
%description libs
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features. This package contains libraries needed by CUPS and
some other packages.
The Common UNIX Printing System (CUPS) is the
standards-based, open source printing system.
See http://www.cups.org
This package contains libraries needed by CUPS
and other packages.
%package client
License: GPLv2+
Summary: CUPS Client Programs
Group: Hardware/Printing
# Conflicts with other print spoolers which provide same binaries like /usr/bin/lp and so on:
Conflicts: plp lprold lprng
# Require the exact matching version-release of the cups-libs sub-package because
# non-matching CUPS libraries may let CUPS software crash (e.g. segfault)
@@ -155,10 +154,14 @@ Conflicts: plp lprold lprng
Requires: cups-libs = %{version}-%{release}
%description client
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features. This package contains all programs needed for
running a CUPS client, not a server.
The Common UNIX Printing System (CUPS) is the
standards-based, open source printing system.
See http://www.cups.org
This package contains all programs needed
for running a CUPS client, not a server.
%package devel
License: GPLv2+
@@ -177,11 +180,13 @@ Obsoletes: cups-devel-64bit
%endif
%description devel
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features. This is the development package.
The Common UNIX Printing System (CUPS) is the
standards-based, open source printing system.
See http://www.cups.org
This is the development package.
http://www.cups.org
%package ddk
License: GPLv2+
@@ -196,17 +201,16 @@ Provides: cupsddk = %{version}
Obsoletes: cupsddk < %{version}
%description ddk
The CUPS Driver Development Kit (DDK) provides a suite of standard
drivers, a PPD file compiler, and other utilities that can be used to
develop printer drivers for CUPS and other printing environments. CUPS
provides a portable printing layer for UNIX(r)-based operating systems.
The CUPS DDK provides the means for mass-producing PPD files and
drivers or filters for CUPS-based printer drivers.
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features. This is the Driver Development Kit package.
The Common UNIX Printing System (CUPS) is the
standards-based, open source printing system.
See http://www.cups.org
The CUPS Driver Development Kit (DDK) provides
a suite of standard drivers, a PPD file compiler,
and other utilities that can be used to develop
printer drivers for CUPS.
http://www.cups.org
%prep
# Be quiet when unpacking:
@@ -231,11 +235,6 @@ http://www.cups.org
%patch103
# Patch104 adds the 'allowallforanybody' policy to cupsd.conf:
%patch104
# Patch105 reverts changes by CUPS STR #3461 as band-aid workaround
# to avoid https://bugzilla.novell.com/show_bug.cgi?id=617026 for now:
%patch105 -p1
# Patch106 enlarges the CUPS upstream default RIPCache from 8m to 128m:
%patch106
%build
# Disable SILENT run of make so that make runs verbose as usual:
@@ -297,8 +296,6 @@ ln -sf /usr/share/ghostscript/fonts $RPM_BUILD_ROOT/usr/share/cups/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl
# Add a client.conf as template (Source108: cups-client.conf):
install -m644 %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/cups/client.conf
# Add D-BUS Configuration:
install -m 644 -D packaging/cups-dbus.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/cups.conf
# Source104: cups.xinetd
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
install -m 644 -D %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/cups-lpd
@@ -378,6 +375,7 @@ exit 0
# exit successfully in any case:
exit 0
%files
# The files sections list all mandatory files explicitely one by one.
# In particular all executables are listed explicitely.
# This avoids that CUPS' configure magic might silently
@@ -393,8 +391,6 @@ exit 0
# the build fails intentionally if a mandatory file was not built
# which ensures that already existing correctly built binary RPMs
# are not overwritten by broken RPMs where mandatory files are missing.
%files
%defattr(-,root,root)
%config(noreplace) %attr(640,root,lp) %{_sysconfdir}/cups/cupsd.conf
%{_sysconfdir}/cups/cupsd.conf.default
@@ -416,10 +412,11 @@ exit 0
%dir /usr/lib/cups
%dir /usr/lib/cups/backend
/usr/lib/cups/backend/http
/usr/lib/cups/backend/https
/usr/lib/cups/backend/ipp
/usr/lib/cups/backend/ipps
/usr/lib/cups/backend/lpd
/usr/lib/cups/backend/parallel
/usr/lib/cups/backend/scsi
/usr/lib/cups/backend/serial
/usr/lib/cups/backend/snmp
/usr/lib/cups/backend/socket
@@ -433,6 +430,7 @@ exit 0
%dir /usr/lib/cups/daemon
/usr/lib/cups/daemon/cups-deviced
/usr/lib/cups/daemon/cups-driverd
/usr/lib/cups/daemon/cups-exec
/usr/lib/cups/daemon/cups-lpd
/usr/lib/cups/daemon/cups-polld
%dir /usr/lib/cups/driver
@@ -442,7 +440,6 @@ exit 0
/usr/lib/cups/filter/commandtopclx
/usr/lib/cups/filter/commandtops
/usr/lib/cups/filter/gziptoany
/usr/lib/cups/filter/hpgltops
/usr/lib/cups/filter/imagetops
/usr/lib/cups/filter/imagetoraster
/usr/lib/cups/filter/pdftops
@@ -453,6 +450,7 @@ exit 0
/usr/lib/cups/filter/rastertohp
/usr/lib/cups/filter/rastertolabel
/usr/lib/cups/filter/rastertopclx
/usr/lib/cups/filter/rastertopwg
/usr/lib/cups/filter/texttops
%dir /usr/lib/cups/monitor
/usr/lib/cups/monitor/bcp
@@ -489,6 +487,7 @@ exit 0
%{_datadir}/cups/
%exclude %{_datadir}/cups/ppdc/
%files client
# Set explicite owner, group, and permissions for lppasswd
# to enforce to have the upstream owner, group, and permissions in the RPM
# because otherwise our build magic /usr/sbin/Check sets them to lp:lp 2755
@@ -497,11 +496,10 @@ exit 0
# and subsequent comments up to comment #17 therein.
# Even if /etc/permissions.secure in the openSUSE:Factory build system might be
# already fixed, it must also work for build systems for released products.
%files client
%defattr(-,root,root)
%{_bindir}/cancel
%{_bindir}/cupstestdsc
%{_bindir}/ipptool
%{_bindir}/lp
%{_bindir}/lpoptions
%attr(0555,root,root) %{_bindir}/lppasswd
@@ -521,6 +519,7 @@ exit 0
%{_sbindir}/reject
%doc %{_mandir}/man1/cancel.1.gz
%doc %{_mandir}/man1/cupstestdsc.1.gz
%doc %{_mandir}/man1/ipptool.1.gz
%doc %{_mandir}/man1/lp.1.gz
%doc %{_mandir}/man1/lpoptions.1.gz
%doc %{_mandir}/man1/lppasswd.1.gz
@@ -528,6 +527,7 @@ exit 0
%doc %{_mandir}/man1/lpr.1.gz
%doc %{_mandir}/man1/lprm.1.gz
%doc %{_mandir}/man1/lpstat.1.gz
%doc %{_mandir}/man5/ipptoolfile.5.gz
%doc %{_mandir}/man8/accept.8.gz
%doc %{_mandir}/man8/cupsaccept.8.gz
%doc %{_mandir}/man8/cupsdisable.8.gz