Rebase for cups 2.2.1 82/93082/1
authorAnas Nashif <anas.nashif@intel.com>
Sun, 25 Nov 2012 03:37:58 +0000 (19:37 -0800)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 20 Oct 2016 06:55:42 +0000 (15:55 +0900)
Change-Id: I07ce144806e8b90b4e407e912c56c799edbf2670
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
15 files changed:
conf/pam.tizen [new file with mode: 0644]
config-scripts/cups-directories.m4
configure.ac
packaging/PSLEVEL1.PPD.bz2 [new file with mode: 0644]
packaging/PSLEVEL2.PPD.bz2 [new file with mode: 0644]
packaging/baselibs.conf [new file with mode: 0644]
packaging/cups-client.conf [new file with mode: 0644]
packaging/cups-rpmlintrc [new file with mode: 0644]
packaging/cups.changes [new file with mode: 0644]
packaging/cups.list.in [deleted file]
packaging/cups.manifest [new file with mode: 0644]
packaging/cups.spec
packaging/cups.spec.in [deleted file]
packaging/cups.sysconfig [new file with mode: 0644]
packaging/postscript.ppd.bz2 [new file with mode: 0644]

diff --git a/conf/pam.tizen b/conf/pam.tizen
new file mode 100644 (file)
index 0000000..4d0d7fb
--- /dev/null
@@ -0,0 +1,2 @@
+auth   include system-auth
+account        include system-auth
index 30e45d9..2d63736 100644 (file)
@@ -184,7 +184,8 @@ AC_SUBST(CUPS_DATADIR)
 # Icon directory
 AC_ARG_WITH(icondir, [  --with-icondir          set path for application icons],icondir="$withval",icondir="")
 
-if test "x$icondir" = x -a -d /usr/share/icons; then
+# if test "x$icondir" = x -a -d /usr/share/icons; then
+if test "x$icondir" = x ; then
        ICONDIR="/usr/share/icons"
 else
        ICONDIR="$icondir"
index b00ed4b..a36713f 100644 (file)
@@ -87,7 +87,6 @@ AC_OUTPUT(Makedefs
          scheduler/org.cups.cupsd.service
          scheduler/org.cups.cupsd.socket
          templates/header.tmpl
-          packaging/cups.list
          $LANGFILES)
 
 chmod +x cups-config
diff --git a/packaging/PSLEVEL1.PPD.bz2 b/packaging/PSLEVEL1.PPD.bz2
new file mode 100644 (file)
index 0000000..1b005ea
Binary files /dev/null and b/packaging/PSLEVEL1.PPD.bz2 differ
diff --git a/packaging/PSLEVEL2.PPD.bz2 b/packaging/PSLEVEL2.PPD.bz2
new file mode 100644 (file)
index 0000000..5241236
Binary files /dev/null and b/packaging/PSLEVEL2.PPD.bz2 differ
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..dd97a16
--- /dev/null
@@ -0,0 +1 @@
+cups-libs
diff --git a/packaging/cups-client.conf b/packaging/cups-client.conf
new file mode 100644 (file)
index 0000000..0945734
--- /dev/null
@@ -0,0 +1,77 @@
+#   Sample client configuration file for the Common UNIX Printing System
+#   (CUPS).
+#
+#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
+#   Klaus Singvogel <kssingvo@suse.de> modified it for SUSE distribution.
+#
+#   These coded instructions, statements, and computer programs are the
+#   property of Easy Software Products and are protected by Federal
+#   copyright law.  Distribution and use rights are outlined in the file
+#   "LICENSE.txt" which should have been included with this file.  If this
+#   file is missing or damaged please contact Easy Software Products
+#   at:
+#
+#       Attn: CUPS Licensing Information
+#       Easy Software Products
+#       44141 Airport View Drive, Suite 204
+#       Hollywood, Maryland 20636 USA
+#
+#       Voice: (301) 373-9600
+#       EMail: cups-info@cups.org
+#         WWW: http://www.cups.org
+#
+
+########################################################################
+#                                                                      #
+# This is the CUPS client configuration file.  This file is used to    #
+# define client-specific parameters, such as the default server or     #
+# default encryption settings.                                         #
+#                                                                      #
+# Put this file on /etc/cups/client.conf (system use) or               #
+# ~/.cups/client.conf (personal use).                                  #
+#                                                                      #
+# more information in the manual page client.conf(5)
+########################################################################
+
+#
+# Encryption: directive specifies the default encryption settings for
+# the client.
+#
+# Possible values:
+#
+#     IfRequested
+#     Never
+#     Required
+#     Always
+#
+# The default value is "IfRequested".
+# This parameter can also be set # using the CUPS_ENCRYPTION environment
+# variable.
+#
+
+#Encryption IfRequested
+#Encryption Never
+#Encryption Required
+#Encryption Always
+
+#
+# ServerName: directive specifies sets the remote server that is to be
+# used for all client operations. That is, it redirects all client
+# requests to the remote server.
+#
+# By default CUPS will use the domain socket /var/run/cups/cups.sock or
+# local server ("localhost"), if so configured. The value can be
+# overwritten by the CUPS_SERVER environment variable.
+#
+# The default port number is 631 but can be overridden by adding a colon
+# followed by the desired port number to the value.
+#
+# ONLY ONE SERVER NAME MAY BE SPECIFIED AT A TIME.  To use more than one
+# server you must use a local scheduler with browsing and possibly
+# polling.
+#
+
+#ServerName /domain/socket
+#ServerName foo.bar.com
+#ServerName 11.22.33.444
+#ServerName foo.bar.com:8631
diff --git a/packaging/cups-rpmlintrc b/packaging/cups-rpmlintrc
new file mode 100644 (file)
index 0000000..3ba4d11
--- /dev/null
@@ -0,0 +1,9 @@
+addFilter("cups.*dir-or-file-in-var-run.*")
+addFilter("cups.*no-changelogname-tag.*")
+addFilter("cups.*no-signature.*")
+addFilter("cups.*non-readable.*")
+addFilter("cups.*non-standard-dir-perm.*")
+addFilter("cups.*non-standard-executable-perm.*")
+addFilter("cups.*standard-dir-owned-by-package.*")
+addFilter("cups.*zero-length.*")
+addFilter("cups.*non-ghost-in-var-run.*")
diff --git a/packaging/cups.changes b/packaging/cups.changes
new file mode 100644 (file)
index 0000000..875ebe3
--- /dev/null
@@ -0,0 +1,19 @@
+* Wed Oct 09 2013 Łukasz Stelmach <l.stelmach@samsung.com> upstream/1.6.4@fe0f7d7
+- Adapt packaging/cups.spec for 1.6.4
+
+* Tue Jul 16 2013 Michael I Doherty <michael.i.doherty@intel.com> accepted/tizen/20130710.220945@d56b191
+- Only use systemd socket activation, do not enable service itself
+
+* Wed Jun 19 2013 Corentin Lecouvey <corentin.lecouvey@eurogiciel.fr> accepted/tizen/20130520.095212@efba874
+- packaging: add scriptlets to handle systemd cups service
+- packaging: set pdftops filter as recommended dependency
+- remove packaging file
+- Fixed -devel dependencies
+- fixed pam setup in spec
+- fixed pam setup in spec
+- fixed pam setup in spec
+- add systemd support
+- add pam
+- fixed packaging
+- Imported Upstream version 1.5.3
+
diff --git a/packaging/cups.list.in b/packaging/cups.list.in
deleted file mode 100644 (file)
index 91c57b4..0000000
+++ /dev/null
@@ -1,734 +0,0 @@
-#
-# ESP Package Manager (EPM) file list for CUPS.
-#
-# Copyright 2007-2016 by Apple Inc.
-# Copyright 1997-2007 by Easy Software Products, all rights reserved.
-#
-# These coded instructions, statements, and computer programs are the
-# property of Apple Inc. and are protected by Federal copyright
-# law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-# which should have been included with this file.  If this file is
-# file is missing or damaged, see the license at "http://www.cups.org/".
-#
-
-# Product information
-%product CUPS
-%copyright 2007-2016 by Apple Inc.
-%vendor Apple Inc.
-#%license LICENSE.txt
-%readme LICENSE.txt
-%format rpm
-# Red Hat and their epochs...
-%version 1:@CUPS_VERSION@
-%format !rpm
-%version @CUPS_VERSION@
-%format all
-%description CUPS is the standards-based, open source printing system developed by
-%description Apple Inc. for macOS® and other UNIX®-like operating systems.
-
-%format rpm
-%provides lpd
-%provides lpr
-%provides LPRng
-%replaces lpd
-%replaces lpr
-%replaces LPRng
-%requires cups-libs 1:@CUPS_VERSION@
-
-# Replace all of the old localization subpackages from CUPS 1.2/1.3
-%replaces cups-da
-%replaces cups-de
-%replaces cups-es
-%replaces cups-et
-%replaces cups-fi
-%replaces cups-fr
-%replaces cups-he
-%replaces cups-id
-%replaces cups-it
-%replaces cups-ja
-%replaces cups-ko
-%replaces cups-nl
-%replaces cups-no
-%replaces cups-pl
-%replaces cups-pt
-%replaces cups-ru
-%replaces cups-sv
-%replaces cups-zh
-
-
-%format deb
-%provides cupsys
-%provides cupsys-client
-%provides cupsys-bsd
-%requires cups-libs
-
-# Replace all of the old localization subpackages from CUPS 1.2/1.3
-%replaces cups-da
-%replaces cups-de
-%replaces cups-es
-%replaces cups-et
-%replaces cups-fi
-%replaces cups-fr
-%replaces cups-he
-%replaces cups-id
-%replaces cups-it
-%replaces cups-ja
-%replaces cups-ko
-%replaces cups-nl
-%replaces cups-no
-%replaces cups-pl
-%replaces cups-pt
-%replaces cups-ru
-%replaces cups-sv
-%replaces cups-zh
-
-
-%format pkg
-%replaces SUNWlpmsg LP Alerts
-%replaces SUNWlpr LP Print Service, (Root)
-%replaces SUNWlps LP Print Service - Server, (Usr)
-%replaces SUNWlpu LP Print Service - Client, (Usr)
-%replaces SUNWpsu LP Print Server, (Usr)
-%replaces SUNWpsr LP Print Server, (Root)
-%replaces SUNWpcu LP Print Client, (Usr)
-%replaces SUNWpcr LP Print Client, (Root)
-%replaces SUNWppm
-%replaces SUNWmp
-%replaces SUNWscplp SunOS Print Compatibility
-
-%format inst
-%replaces patch*.print_*.* 0 0 1289999999 1289999999
-%replaces maint*.print_*.* 0 0 1289999999 1289999999
-%replaces print 0 0 1289999999 1289999999
-%replaces fw_cups 0 0 1289999999 1289999999
-%incompat patch*.print_*.* 0 0 1289999999 1289999999
-%incompat maint*.print_*.* 0 0 1289999999 1289999999
-%incompat print 0 0 1289999999 1289999999
-%incompat fw_cups 0 0 1289999999 1289999999
-%requires cups.sw.libs
-
-# Replace all of the old localization subpackages from CUPS 1.2/1.3
-%replaces cups.sw.da
-%replaces cups.sw.de
-%replaces cups.sw.es
-%replaces cups.sw.et
-%replaces cups.sw.fi
-%replaces cups.sw.fr
-%replaces cups.sw.he
-%replaces cups.sw.id
-%replaces cups.sw.it
-%replaces cups.sw.ja
-%replaces cups.sw.ko
-%replaces cups.sw.nl
-%replaces cups.sw.no
-%replaces cups.sw.pl
-%replaces cups.sw.pt
-%replaces cups.sw.ru
-%replaces cups.sw.sv
-%replaces cups.sw.zh
-
-%format portable
-%requires cups-libs
-
-# Replace all of the old localization subpackages from CUPS 1.2/1.3
-%replaces cups-da
-%replaces cups-de
-%replaces cups-es
-%replaces cups-et
-%replaces cups-fi
-%replaces cups-fr
-%replaces cups-he
-%replaces cups-id
-%replaces cups-it
-%replaces cups-ja
-%replaces cups-ko
-%replaces cups-nl
-%replaces cups-no
-%replaces cups-pl
-%replaces cups-pt
-%replaces cups-ru
-%replaces cups-sv
-%replaces cups-zh
-
-%format all
-
-%subpackage libs
-%description Shared libraries
-%format deb
-%provides libcups1
-%provides libcupsys2
-%provides libcupsys2-gnutls10
-%provides libcupsimage2
-%format all
-
-%subpackage devel
-%description Development environment
-%format deb
-%provides libcupsys2-dev
-%provides libcupsimage2-dev
-%format all
-
-%subpackage lpd
-%description LPD support
-
-%subpackage
-
-
-#
-# GNU variables...
-#
-
-$prefix=@prefix@
-$exec_prefix=@exec_prefix@
-$bindir=@bindir@
-$datarootdir=@datarootdir@
-$datadir=@datadir@
-$includedir=@includedir@
-$infodir=@infodir@
-$libdir=@libdir@
-$libexecdir=@libexecdir@
-$localstatedir=@localstatedir@
-$mandir=@mandir@
-$oldincludedir=@oldincludedir@
-$sbindir=@sbindir@
-$sharedstatedir=@sharedstatedir@
-$srcdir=@srcdir@
-$sysconfdir=@sysconfdir@
-$top_srcdir=@top_srcdir@
-
-#
-# ESP variables...
-#
-
-$AMANDIR=@AMANDIR@
-$BINDIR=@bindir@
-$CACHEDIR=@CUPS_CACHEDIR@
-$DATADIR=@CUPS_DATADIR@
-$DOCDIR=@CUPS_DOCROOT@
-$INCLUDEDIR=${includedir}
-$INITDIR=@INITDIR@
-$INITDDIR=@INITDDIR@
-$LIBDIR=${libdir}
-$LOCALEDIR=@CUPS_LOCALEDIR@
-$LOGDIR=@CUPS_LOGDIR@
-$MANDIR=@mandir@
-$PAMDIR=@PAMDIR@
-$PMANDIR=@PMANDIR@
-$REQUESTS=@CUPS_REQUESTS@
-$SBINDIR=@sbindir@
-$SERVERBIN=@CUPS_SERVERBIN@
-$SERVERROOT=@CUPS_SERVERROOT@
-$STATEDIR=@CUPS_STATEDIR@
-$XINETD=@XINETD@
-$LIB32DIR=@LIB32DIR@
-$LIB64DIR=@LIB64DIR@
-
-$MDNS=@MDNS@
-
-$CUPS_USER=@CUPS_USER@
-$CUPS_GROUP=@CUPS_GROUP@
-$CUPS_PRIMARY_SYSTEM_GROUP=@CUPS_PRIMARY_SYSTEM_GROUP@
-$CUPS_PERM=0@CUPS_CONFIG_FILE_PERM@
-
-$INSTALLSTATIC=@INSTALLSTATIC@
-
-$MAN1EXT=@MAN1EXT@
-$MAN3EXT=@MAN3EXT@
-$MAN5EXT=@MAN5EXT@
-$MAN7EXT=@MAN7EXT@
-$MAN8EXT=@MAN8EXT@
-$MAN8DIR=@MAN8DIR@
-
-$LIBZ=@LIBZ@
-$DSOLIBS=@DSOLIBS@
-
-# Make sure the MD5 password file is now owned by CUPS_USER...
-%postinstall if test -f $SERVERROOT/passwd.md5; then
-%postinstall chown $CUPS_USER $SERVERROOT/passwd.md5
-%postinstall fi
-
-# Make sure the shared libraries are refreshed...
-%subpackage libs
-%system linux
-%postinstall ldconfig
-%system all
-%subpackage
-
-# Server programs
-%system all
-# Server files
-f 0555 root sys $SBINDIR/cupsd scheduler/cupsd
-
-d 0755 root sys $SERVERBIN -
-%system darwin
-d 0755 root sys $SERVERBIN/apple -
-f 0555 root sys $SERVERBIN/apple/ipp backend/ipp
-l 0755 root sys $SERVERBIN/apple/http ipp
-l 0755 root sys $SERVERBIN/apple/https ipp
-l 0755 root sys $SERVERBIN/apple/ipps ipp
-%system all
-d 0755 root sys $SERVERBIN/backend -
-f 0500 root sys $SERVERBIN/backend/ipp backend/ipp
-l 0700 root sys $SERVERBIN/backend/http ipp
-l 0700 root sys $SERVERBIN/backend/https ipp
-l 0700 root sys $SERVERBIN/backend/ipps ipp
-f 0500 root sys $SERVERBIN/backend/lpd backend/lpd
-%if DNSSD_BACKEND
-f 0500 root sys $SERVERBIN/backend/dnssd backend/dnssd
-%system darwin
-l 0700 root sys $SERVERBIN/backend/mdns dnssd
-%system all
-%endif
-f 0555 root sys $SERVERBIN/backend/snmp backend/snmp
-f 0555 root sys $SERVERBIN/backend/socket backend/socket
-f 0555 root sys $SERVERBIN/backend/usb backend/usb
-d 0755 root sys $SERVERBIN/cgi-bin -
-f 0555 root sys $SERVERBIN/cgi-bin/admin.cgi cgi-bin/admin.cgi
-f 0555 root sys $SERVERBIN/cgi-bin/classes.cgi cgi-bin/classes.cgi
-f 0555 root sys $SERVERBIN/cgi-bin/help.cgi cgi-bin/help.cgi
-f 0555 root sys $SERVERBIN/cgi-bin/jobs.cgi cgi-bin/jobs.cgi
-f 0555 root sys $SERVERBIN/cgi-bin/printers.cgi cgi-bin/printers.cgi
-d 0755 root sys $SERVERBIN/daemon -
-f 0555 root sys $SERVERBIN/daemon/cups-deviced scheduler/cups-deviced
-f 0555 root sys $SERVERBIN/daemon/cups-driverd scheduler/cups-driverd
-d 0755 root sys $SERVERBIN/driver -
-d 0755 root sys $SERVERBIN/filter -
-f 0555 root sys $SERVERBIN/filter/commandtops filter/commandtops
-f 0555 root sys $SERVERBIN/filter/gziptoany filter/gziptoany
-f 0555 root sys $SERVERBIN/filter/pstops filter/pstops
-f 0555 root sys $SERVERBIN/filter/rastertolabel filter/rastertolabel
-l 0755 root sys $SERVERBIN/filter/rastertodymo rastertolabel
-f 0555 root sys $SERVERBIN/filter/rastertoepson filter/rastertoepson
-f 0555 root sys $SERVERBIN/filter/rastertohp filter/rastertohp
-f 0555 root sys $SERVERBIN/filter/rastertopwg filter/rastertopwg
-d 0755 root sys $SERVERBIN/notifier -
-f 0555 root sys $SERVERBIN/notifier/mailto notifier/mailto
-
-%subpackage lpd
-d 0755 root sys $SERVERBIN/daemon -
-f 0555 root sys $SERVERBIN/daemon/cups-lpd scheduler/cups-lpd
-%subpackage
-
-# Admin commands
-d 0755 root sys $BINDIR -
-l 0755 root sys $BINDIR/enable $SBINDIR/cupsaccept
-l 0755 root sys $BINDIR/disable $SBINDIR/cupsaccept
-d 0755 root sys $LIBDIR -
-l 0755 root sys $LIBDIR/accept $SBINDIR/cupsaccept
-l 0755 root sys $LIBDIR/lpadmin $SBINDIR/lpadmin
-l 0755 root sys $LIBDIR/reject $SBINDIR/cupsaccept
-d 0755 root sys $SBINDIR -
-l 0755 root sys $SBINDIR/accept cupsaccept
-f 0555 root sys $SBINDIR/cupsaccept systemv/cupsaccept
-f 0555 root sys $SBINDIR/cupsaddsmb systemv/cupsaddsmb
-f 0555 root sys $SBINDIR/cupsctl systemv/cupsctl
-l 0755 root sys $SBINDIR/cupsdisable accept
-l 0755 root sys $SBINDIR/cupsenable accept
-l 0755 root sys $SBINDIR/cupsreject accept
-f 0555 root sys $SBINDIR/lpadmin systemv/lpadmin
-f 0555 root sys $SBINDIR/lpc berkeley/lpc
-f 0555 root sys $SBINDIR/lpinfo systemv/lpinfo
-f 0555 root sys $SBINDIR/lpmove systemv/lpmove
-l 0755 root sys $SBINDIR/reject cupsaccept
-
-%system irix
-l 0755 root sys /usr/etc/lpc $SBINDIR/lpc
-%system all
-
-# User commands
-d 0755 root sys $BINDIR -
-f 0555 root sys $BINDIR/cancel systemv/cancel
-f 0555 root sys $BINDIR/cupstestdsc systemv/cupstestdsc
-f 0555 root sys $BINDIR/cupstestppd systemv/cupstestppd
-f 0555 root sys $BINDIR/ipptool test/ipptool
-f 0555 root sys $BINDIR/lp systemv/lp
-f 0555 root sys $BINDIR/lpoptions systemv/lpoptions
-f 0555 root sys $BINDIR/lpq berkeley/lpq
-f 0555 root sys $BINDIR/lpr berkeley/lpr
-f 0555 root sys $BINDIR/lprm berkeley/lprm
-f 0555 root sys $BINDIR/lpstat systemv/lpstat
-
-%system irix
-l 0755 root sys /usr/bsd/lpq $BINDIR/lpq
-l 0755 root sys /usr/bsd/lpr $BINDIR/lpr
-l 0755 root sys /usr/bsd/lprm $BINDIR/lprm
-%system all
-
-# DSOs
-%if DSOLIBS
-%subpackage libs
-%system hpux
-f 0555 root sys $LIBDIR/libcups.sl.2 cups/libcups.sl.2 nostrip()
-l 0755 root sys $LIBDIR/libcups.sl libcups.sl.2
-f 0555 root sys $LIBDIR/libcupscgi.sl.1 cgi-bin/libcupscgi.sl.1 nostrip()
-l 0755 root sys $LIBDIR/libcupscgi.sl libcupscgi.sl.1
-f 0555 root sys $LIBDIR/libcupsimage.sl.2 filter/libcupsimage.sl.2 nostrip()
-l 0755 root sys $LIBDIR/libcupsimage.sl libcupsimage.sl.2
-f 0555 root sys $LIBDIR/libcupsmime.sl.1 scheduler/libcupsmime.sl.1 nostrip()
-l 0755 root sys $LIBDIR/libcupsmime.sl libcupsmime.sl.1
-f 0555 root sys $LIBDIR/libcupsppdc.sl.1 ppdc/libcupsppdc.sl.1 nostrip()
-l 0755 root sys $LIBDIR/libcupsppdc.sl libcupsppdc.sl.1
-%system aix
-f 0555 root sys $LIBDIR/libcups_s.a cups/libcups_s.a nostrip()
-f 0555 root sys $LIBDIR/libcupscgi_s.a cgi-bin/libcupscgi_s.a nostrip()
-f 0555 root sys $LIBDIR/libcupsimage_s.a filter/libcupsimage_s.a nostrip()
-f 0555 root sys $LIBDIR/libcupsmime_s.a scheduler/libcupsmime_s.a nostrip()
-f 0555 root sys $LIBDIR/libcupsppdc_s.a ppdc/libcupsppdc_s.a nostrip()
-%system darwin
-f 0555 root sys $LIBDIR/libcups.2.dylib cups/libcups.2.dylib nostrip()
-l 0755 root sys $LIBDIR/libcups.dylib libcups.2.dylib
-f 0555 root sys $LIBDIR/libcupscgi.1.dylib cgi-bin/libcupscgi.1.dylib nostrip()
-l 0755 root sys $LIBDIR/libcupscgi.dylib libcupscgi.1.dylib
-f 0555 root sys $LIBDIR/libcupsimage.2.dylib filter/libcupsimage.2.dylib nostrip()
-l 0755 root sys $LIBDIR/libcupsimage.dylib libcupsimage.2.dylib
-f 0555 root sys $LIBDIR/libcupsmime.1.dylib scheduler/libcupsmime.1.dylib nostrip()
-l 0755 root sys $LIBDIR/libcupsmime.dylib libcupsmime.1.dylib
-f 0555 root sys $LIBDIR/libcupsppdc.1.dylib ppdc/libcupsppdc.1.dylib nostrip()
-l 0755 root sys $LIBDIR/libcupsppdc.dylib libcupsppdc.1.dylib
-%system !hpux !aix !darwin
-f 0555 root sys $LIBDIR/libcups.so.2 cups/libcups.so.2 nostrip()
-l 0755 root sys $LIBDIR/libcups.so libcups.so.2
-f 0555 root sys $LIBDIR/libcupscgi.so.1 cgi-bin/libcupscgi.so.1 nostrip()
-l 0755 root sys $LIBDIR/libcupscgi.so libcupscgi.so.1
-f 0555 root sys $LIBDIR/libcupsimage.so.2 filter/libcupsimage.so.2 nostrip()
-l 0755 root sys $LIBDIR/libcupsimage.so libcupsimage.so.2
-f 0555 root sys $LIBDIR/libcupsmime.so.1 scheduler/libcupsmime.so.1 nostrip()
-l 0755 root sys $LIBDIR/libcupsmime.so libcupsmime.so.1
-f 0555 root sys $LIBDIR/libcupsppdc.so.1 ppdc/libcupsppdc.so.1 nostrip()
-l 0755 root sys $LIBDIR/libcupsppdc.so libcupsppdc.so.1
-%system all
-%subpackage
-%endif
-
-# Directories
-d 0755 root sys $LOGDIR -
-d 0710 root $CUPS_GROUP $REQUESTS -
-d 1770 root $CUPS_GROUP $REQUESTS/tmp -
-d 0775 root $CUPS_GROUP $CACHEDIR -
-d 0775 root $CUPS_GROUP $CACHEDIR/rss -
-#d 0755 root $CUPS_GROUP $CACHEDIR/ppd -
-%system !darwin
-d 0755 root $CUPS_GROUP $STATEDIR -
-%system all
-d 0511 root $CUPS_PRIMARY_SYSTEM_GROUP $STATEDIR/certs -
-
-# Data files
-#f 0444 root sys $LOCALEDIR/da/cups_da.po locale/cups_da.po
-#f 0444 root sys $LOCALEDIR/de/cups_de.po locale/cups_de.po
-#f 0444 root sys $LOCALEDIR/es/cups_es.po locale/cups_es.po
-#f 0444 root sys $LOCALEDIR/et/cups_et.po locale/cups_et.po
-#f 0444 root sys $LOCALEDIR/eu/cups_eu.po locale/cups_eu.po
-#f 0444 root sys $LOCALEDIR/fi/cups_fi.po locale/cups_fi.po
-#f 0444 root sys $LOCALEDIR/fr/cups_fr.po locale/cups_fr.po
-#f 0444 root sys $LOCALEDIR/he/cups_he.po locale/cups_he.po
-#f 0444 root sys $LOCALEDIR/id/cups_id.po locale/cups_id.po
-#f 0444 root sys $LOCALEDIR/it/cups_it.po locale/cups_it.po
-#f 0444 root sys $LOCALEDIR/ja/cups_ja.po locale/cups_ja.po
-#f 0444 root sys $LOCALEDIR/ko/cups_ko.po locale/cups_ko.po
-#f 0444 root sys $LOCALEDIR/nl/cups_nl.po locale/cups_nl.po
-#f 0444 root sys $LOCALEDIR/no/cups_no.po locale/cups_no.po
-#f 0444 root sys $LOCALEDIR/pl/cups_pl.po locale/cups_pl.po
-#f 0444 root sys $LOCALEDIR/pt/cups_pt.po locale/cups_pt.po
-#f 0444 root sys $LOCALEDIR/pt_BR/cups_pt_BR.po locale/cups_pt_BR.po
-#f 0444 root sys $LOCALEDIR/ru/cups_ru.po locale/cups_ru.po
-#f 0444 root sys $LOCALEDIR/sv/cups_sv.po locale/cups_sv.po
-#f 0444 root sys $LOCALEDIR/zh/cups_zh.po locale/cups_zh.po
-#f 0444 root sys $LOCALEDIR/zh_TW/cups_zh_TW.po locale/cups_zh_TW.po
-
-d 0755 root sys $DATADIR -
-
-d 0755 root sys $DATADIR/banners -
-
-d 0755 root sys $DATADIR/data -
-
-d 0755 root sys $DATADIR/drv -
-f 0444 root sys $DATADIR/drv/sample.drv ppdc/sample.drv
-
-d 0755 root sys $DATADIR/examples -
-f 0444 root sys $DATADIR/examples examples/*.drv
-
-d 0755 root sys $DATADIR/ipptool -
-f 0444 root sys $DATADIR/ipptool/create-printer-subscription.test test/create-printer-subscription.test
-f 0444 root sys $DATADIR/ipptool/get-completed-jobs.test test/get-completed-jobs.test
-f 0444 root sys $DATADIR/ipptool/get-jobs.test test/get-jobs.test
-f 0444 root sys $DATADIR/ipptool/get-printer-attributes.test test/get-printer-attributes.test
-f 0444 root sys $DATADIR/ipptool/print-job.test test/print-job.test
-f 0444 root sys $DATADIR/ipptool test/document-*.p*
-f 0444 root sys $DATADIR/ipptool test/ipp-*.test
-f 0444 root sys $DATADIR/ipptool test/onepage-*.p*
-f 0444 root sys $DATADIR/ipptool test/testfile.*
-f 0444 root sys $DATADIR/ipptool/color.jpg test/color.jpg
-f 0444 root sys $DATADIR/ipptool/gray.jpg test/gray.jpg
-
-d 0755 root sys $DATADIR/mime -
-f 0444 root sys $DATADIR/mime/mime.convs conf/mime.convs
-f 0444 root sys $DATADIR/mime/mime.types conf/mime.types
-
-d 0755 root sys $DATADIR/model -
-
-d 0755 root sys $DATADIR/ppdc -
-f 0444 root sys $DATADIR/ppdc data/*.defs
-f 0444 root sys $DATADIR/ppdc data/*.h
-
-d 0755 root sys $DATADIR/templates -
-f 0444 root sys $DATADIR/templates templates/*.tmpl
-
-## Template files
-#d 0755 root sys $DATADIR/templates/de
-#f 0444 root sys $DATADIR/templates/de templates/de/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/es
-#f 0444 root sys $DATADIR/templates/es templates/es/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/et
-#f 0444 root sys $DATADIR/templates/et templates/et/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/eu
-#f 0444 root sys $DATADIR/templates/eu templates/eu/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/fr
-#f 0444 root sys $DATADIR/templates/fr templates/fr/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/he
-#f 0444 root sys $DATADIR/templates/he templates/he/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/id
-#f 0444 root sys $DATADIR/templates/id templates/id/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/it
-#f 0444 root sys $DATADIR/templates/it templates/it/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/ja
-#f 0444 root sys $DATADIR/templates/ja templates/ja/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/pl
-#f 0444 root sys $DATADIR/templates/pl templates/pl/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/ru
-#f 0444 root sys $DATADIR/templates/ru templates/ru/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/sv
-#f 0444 root sys $DATADIR/templates/sv templates/sv/*.tmpl
-
-#d 0755 root sys $DATADIR/templates/zh_TW
-#f 0444 root sys $DATADIR/templates/zh_TW templates/zh_TW/*.tmpl
-
-# Config files
-d 0755 root $CUPS_GROUP $SERVERROOT -
-d 0755 root $CUPS_GROUP $SERVERROOT/ppd -
-d 0700 root $CUPS_GROUP $SERVERROOT/ssl -
-c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cups-files.conf conf/cups-files.conf
-f $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cups-files.conf.default conf/cups-files.conf
-c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cupsd.conf conf/cupsd.conf
-f $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cupsd.conf.default conf/cupsd.conf
-c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/snmp.conf conf/snmp.conf
-
-%if PAMDIR
-d 0755 root sys $PAMDIR -
-c 0644 root sys $PAMDIR/cups conf/@PAMFILE@
-%endif
-
-%subpackage devel
-# Developer files
-f 0555 root sys $BINDIR/cups-config cups-config
-d 0755 root sys $INCLUDEDIR/cups -
-f 0444 root sys $INCLUDEDIR/cups/adminutil.h cups/adminutil.h
-f 0444 root sys $INCLUDEDIR/cups/array.h cups/array.h
-f 0444 root sys $INCLUDEDIR/cups/backend.h cups/backend.h
-f 0444 root sys $INCLUDEDIR/cups/cups.h cups/cups.h
-f 0444 root sys $INCLUDEDIR/cups/dir.h cups/dir.h
-f 0444 root sys $INCLUDEDIR/cups/file.h cups/file.h
-f 0444 root sys $INCLUDEDIR/cups/http.h cups/http.h
-f 0444 root sys $INCLUDEDIR/cups/ipp.h cups/ipp.h
-f 0444 root sys $INCLUDEDIR/cups/language.h cups/language.h
-f 0444 root sys $INCLUDEDIR/cups/ppd.h cups/ppd.h
-f 0444 root sys $INCLUDEDIR/cups/pwg.h cups/pwg.h
-f 0444 root sys $INCLUDEDIR/cups/raster.h cups/raster.h
-f 0444 root sys $INCLUDEDIR/cups/sidechannel.h cups/sidechannel.h
-f 0444 root sys $INCLUDEDIR/cups/transcode.h cups/transcode.h
-f 0444 root sys $INCLUDEDIR/cups/versioning.h cups/versioning.h
-
-%if INSTALLSTATIC
-f 0444 root sys $LIBDIR/libcups.a cups/libcups.a
-f 0444 root sys $LIBDIR/libcupsimage.a filter/libcupsimage.a
-%endif
-
-d 0755 root sys $DOCDIR/help -
-f 0444 root sys $DOCDIR/help doc/help/api*.html
-f 0444 root sys $DOCDIR/help/postscript-driver.html doc/help/postscript-driver.html
-f 0444 root sys $DOCDIR/help/ppd-compiler.html doc/help/ppd-compiler.html
-f 0444 root sys $DOCDIR/help/raster-driver.html doc/help/raster-driver.html
-f 0444 root sys $DOCDIR/help doc/help/spec*.html
-%subpackage
-
-# Documentation files
-d 0755 root sys $DOCDIR -
-f 0444 root sys $DOCDIR doc/*.css
-f 0444 root sys $DOCDIR doc/*.html
-f 0444 root sys $DOCDIR/apple-touch-icon.png doc/apple-touch-icon.png
-d 0755 root sys $DOCDIR/help -
-f 0444 root sys $DOCDIR/help/accounting.html doc/help/accounting.html
-f 0444 root sys $DOCDIR/help/cgi.html doc/help/cgi.html
-f 0444 root sys $DOCDIR/help/encryption.html doc/help/encryption.html
-f 0444 root sys $DOCDIR/help/glossary.html doc/help/glossary.html
-f 0444 root sys $DOCDIR/help/kerberos.html doc/help/kerberos.html
-f 0444 root sys $DOCDIR/help/license.html doc/help/license.html
-f 0444 root sys $DOCDIR/help/network.html doc/help/network.html
-f 0444 root sys $DOCDIR/help/options.html doc/help/options.html
-f 0444 root sys $DOCDIR/help/overview.html doc/help/overview.html
-f 0444 root sys $DOCDIR/help/policies.html doc/help/policies.html
-f 0444 root sys $DOCDIR/help/security.html doc/help/security.html
-f 0444 root sys $DOCDIR/help/sharing.html doc/help/sharing.html
-f 0444 root sys $DOCDIR/help/translation.html doc/help/translation.html
-f 0444 root sys $DOCDIR/help doc/help/man-*.html
-f 0444 root sys $DOCDIR/help doc/help/ref-*.html
-d 0755 root sys $DOCDIR/images -
-f 0444 root sys $DOCDIR/images doc/images/*.gif
-f 0444 root sys $DOCDIR/images doc/images/*.jpg
-f 0444 root sys $DOCDIR/images doc/images/*.png
-f 0444 root sys $DOCDIR/robots.txt doc/robots.txt
-
-# Localized documentation files
-d 0755 root sys $DOCDIR/de
-f 0444 root sys $DOCDIR/de doc/de/*.html
-
-d 0755 root sys $DOCDIR/es
-f 0444 root sys $DOCDIR/es doc/es/*.html
-
-#d 0755 root sys $DOCDIR/et
-#f 0444 root sys $DOCDIR/et doc/et/*.html
-
-#d 0755 root sys $DOCDIR/eu
-#f 0444 root sys $DOCDIR/eu doc/eu/*.html
-
-#d 0755 root sys $DOCDIR/fr
-#f 0444 root sys $DOCDIR/fr doc/fr/*.html
-
-#d 0755 root sys $DOCDIR/he
-#f 0444 root sys $DOCDIR/he doc/he/*.html
-#f 0444 root sys $DOCDIR/he/cups.css doc/he/cups.css
-
-#d 0755 root sys $DOCDIR/id
-#f 0444 root sys $DOCDIR/id doc/id/*.html
-
-#d 0755 root sys $DOCDIR/it
-#f 0444 root sys $DOCDIR/it doc/it/*.html
-
-d 0755 root sys $DOCDIR/ja
-f 0444 root sys $DOCDIR/ja doc/ja/*.html
-
-#d 0755 root sys $DOCDIR/pl
-#f 0444 root sys $DOCDIR/pl doc/pl/*.html
-
-d 0755 root sys $DOCDIR/pt_BR
-f 0444 root sys $DOCDIR/pt_BR doc/pt_BR/*.html
-
-d 0755 root sys $DOCDIR/ru
-f 0444 root sys $DOCDIR/ru doc/ru/*.html
-
-#d 0755 root sys $DOCDIR/sv
-#f 0444 root sys $DOCDIR/sv doc/sv/*.html
-
-#d 0755 root sys $DOCDIR/zh_TW
-#f 0444 root sys $DOCDIR/zh_TW doc/zh_TW/*.html
-
-# Man pages
-d 0755 root sys $AMANDIR -
-d 0755 root sys $AMANDIR/man$MAN8DIR -
-d 0755 root sys $MANDIR -
-d 0755 root sys $MANDIR/man1 -
-d 0755 root sys $MANDIR/man5 -
-d 0755 root sys $MANDIR/man7 -
-
-f 0444 root sys $MANDIR/man1/cancel.$MAN1EXT man/cancel.$MAN1EXT
-f 0444 root sys $MANDIR/man1/cups.$MAN1EXT man/cups.$MAN1EXT
-f 0444 root sys $MANDIR/man1/cupstestdsc.$MAN1EXT man/cupstestdsc.$MAN1EXT
-f 0444 root sys $MANDIR/man1/cupstestppd.$MAN1EXT man/cupstestppd.$MAN1EXT
-f 0444 root sys $MANDIR/man1/ippfind.$MAN1EXT man/ippfind.$MAN1EXT
-f 0444 root sys $MANDIR/man1/ipptool.$MAN1EXT man/ipptool.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lp.$MAN1EXT man/lp.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lpoptions.$MAN1EXT man/lpoptions.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lpq.$MAN1EXT man/lpq.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lpr.$MAN1EXT man/lpr.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lprm.$MAN1EXT man/lprm.$MAN1EXT
-f 0444 root sys $MANDIR/man1/lpstat.$MAN1EXT man/lpstat.$MAN1EXT
-
-f 0444 root sys $MANDIR/man5/classes.conf.$MAN5EXT man/classes.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/client.conf.$MAN5EXT man/client.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/cups-files.conf.$MAN5EXT man/cups-files.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/cups-snmp.conf.$MAN5EXT man/cups-snmp.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/cupsd.conf.$MAN5EXT man/cupsd.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/cupsd-logs.$MAN5EXT man/cupsd-logs.$MAN5EXT
-f 0444 root sys $MANDIR/man5/ipptoolfile.$MAN5EXT man/ipptoolfile.$MAN5EXT
-f 0444 root sys $MANDIR/man5/mailto.conf.$MAN5EXT man/mailto.conf.$MAN5EXT
-f 0444 root sys $MANDIR/man5/mime.convs.$MAN5EXT man/mime.convs.$MAN5EXT
-f 0444 root sys $MANDIR/man5/mime.types.$MAN5EXT man/mime.types.$MAN5EXT
-f 0444 root sys $MANDIR/man5/printers.conf.$MAN5EXT man/printers.conf.$MAN5EXT
-
-l 0644 root sys $AMANDIR/man$MAN8DIR/accept.$MAN8EXT cupsaccept.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsaccept.$MAN8EXT man/cupsaccept.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsaddsmb.$MAN8EXT man/cupsaddsmb.$MAN8EXT
-l 0644 root sys $AMANDIR/man$MAN8DIR/cupsreject.$MAN8EXT cupsaccept.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsctl.$MAN8EXT man/cupsctl.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsfilter.$MAN8EXT man/cupsfilter.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cups-snmp.$MAN8EXT man/cups-snmp.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsd.$MAN8EXT man/cupsd.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsd-helper.$MAN8EXT man/cupsd-helper.$MAN8EXT
-l 0644 root sys $AMANDIR/man$MAN8DIR/cupsdisable.$MAN8EXT cupsenable.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/cupsenable.$MAN8EXT man/cupsenable.$MAN8EXT
-l 0644 root sys $AMANDIR/man$MAN8DIR/disable.$MAN8EXT cupsenable.$MAN8EXT
-l 0644 root sys $AMANDIR/man$MAN8DIR/enable.$MAN8EXT cupsenable.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/lpadmin.$MAN8EXT man/lpadmin.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/lpc.$MAN8EXT man/lpc.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/lpinfo.$MAN8EXT man/lpinfo.$MAN8EXT
-f 0444 root sys $AMANDIR/man$MAN8DIR/lpmove.$MAN8EXT man/lpmove.$MAN8EXT
-l 0644 root sys $AMANDIR/man$MAN8DIR/reject.$MAN8EXT cupsaccept.$MAN8EXT
-
-%subpackage devel
-f 0444 root sys $MANDIR/man1/cups-config.$MAN1EXT man/cups-config.$MAN1EXT
-f 0444 root sys $MANDIR/man1/ man/ppd*.$MAN1EXT
-f 0444 root sys $MANDIR/man5/ppdcfile.$MAN5EXT man/ppdcfile.$MAN5EXT
-f 0444 root sys $MANDIR/man7/backend.$MAN7EXT man/backend.$MAN7EXT
-f 0444 root sys $MANDIR/man7/filter.$MAN7EXT man/filter.$MAN7EXT
-f 0444 root sys $MANDIR/man7/notifier.$MAN7EXT man/notifier.$MAN7EXT
-
-%subpackage lpd
-d 0755 root sys $AMANDIR/man$MAN8DIR -
-f 0444 root sys $AMANDIR/man$MAN8DIR/cups-lpd.$MAN8EXT man/cups-lpd.$MAN8EXT
-%subpackage
-
-# Startup scripts
-%system darwin
-f 0444 root sys /System/Library/LaunchDaemons/org.cups.cupsd.plist scheduler/org.cups.cupsd.plist
-%preremove <<EOF
-launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist || exit 0
-killall cupsd || exit 0
-EOF
-%preinstall <<EOF
-launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist || exit 0
-killall cupsd || exit 0
-EOF
-%postinstall <<EOF
-launchctl load -D system /System/Library/LaunchDaemons/org.cups.cupsd.plist
-EOF
-%subpackage lpd
-f 0444 root sys /System/Library/LaunchDaemons/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpd.plist
-%preremove <<EOF
-launchctl unload /System/Library/LaunchDaemons/org.cups.cups-lpd.plist || exit 0
-EOF
-%preinstall <<EOF
-launchctl unload /System/Library/LaunchDaemons/org.cups.cups-lpd.plist || exit 0
-EOF
-%postinstall <<EOF
-rm -f /etc/xinetd.d/cups-lpd
-launchctl load -D system /System/Library/LaunchDaemons/org.cups.cupsd-lpd.plist
-EOF
-%subpackage
-
-%system !darwin
-i 0755 root sys cups scheduler/cups.sh start(@RCSTART@) stop(@RCSTOP) runlevels(@RCLEVELS@)
-%subpackage lpd
-%if XINETD
-f 0444 root sys $XINETD/cups-lpd scheduler/cups-lpd.xinetd
-%endif
-%subpackage
diff --git a/packaging/cups.manifest b/packaging/cups.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
index 9dc64bb..ede9670 100644 (file)
@@ -1,11 +1,11 @@
 #
-# "$Id$"
+# "$Id: cups.spec.in 12857 2015-08-31 15:00:45Z msweet $"
 #
 # RPM "spec" file for CUPS.
 #
 # Original version by Jason McMullan <jmcc@ontv.com>.
 #
-# Copyright 2007-2016 by Apple Inc.
+# Copyright 2007-2015 by Apple Inc.
 # Copyright 1999-2007 by Easy Software Products, all rights reserved.
 #
 # These coded instructions, statements, and computer programs are the
@@ -18,7 +18,7 @@
 # Conditional build options (--with name/--without name):
 #
 #   dbus     - Enable/disable DBUS support (default = enable)
-#   dnssd    - Enable/disable DNS-SD support (default = enable)
+#   dnssd    - Enable/disable DNS-SD support (default = disable)
 #   libusb1  - Enable/disable LIBUSB 1.0 support (default = enable)
 #   static   - Enable/disable static libraries (default = enable)
 #   systemd  - Enable/disable systemd support (default = enable)
@@ -27,6 +27,7 @@
 %{?_with_dbus: %define _dbus --enable-dbus}
 %{!?_with_dbus: %define _dbus --disable-dbus}
 
+%define _without_dnssd 1
 %{!?_with_dnssd: %{!?_without_dnssd: %define _with_dnssd --with-dnssd}}
 %{?_with_dnssd: %define _dnssd --enable-dnssd}
 %{!?_with_dnssd: %define _dnssd --disable-dnssd}
 %{?_with_systemd: %define _systemd --enable-systemd}
 %{!?_with_systemd: %define _systemd --disable-systemd}
 
-Summary: CUPS
-Name: cups
-Version: 2.2.1
-Release: 0
-Epoch: 1
-License: GPL
-Group: System Environment/Daemons
-Source: https://github.com/apple/cups/releases/download/release-2.2.1/cups-2.2.1-source.tar.gz
-Url: http://www.cups.org
+Summary:  CUPS
+Name:     cups
+Version:  2.1.2
+Release:  1
+Epoch:    1
+License:  GPL-2.0+ and LGPL-2.1+
+Group:    System/Utilities
+Source:   http://www.cups.org/software/2.1.2/cups-2.1.2-source.tar.bz2
+Url:      http://www.cups.org
 Packager: Anonymous <anonymous@foo.com>
-Vendor: Apple Inc.
+Vendor:   Apple Inc.
+
+Source101:  cups.manifest
+Source1001: %{name}-rpmlintrc
 
 # Package names are as defined for Red Hat (and clone) distributions
 BuildRequires: gnutls-devel, pam-devel
@@ -62,20 +66,22 @@ BuildRequires: gnutls-devel, pam-devel
 BuildRequires: dbus-devel
 %endif
 
-%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
-BuildRequires: avahi-devel
-%endif
+%description
+The Common UNIX Printing System (CUPS) is the
+standards-based, open source printing system.
 
-%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
-BuildRequires: libusb-devel >= 1.0
-%endif
+See http://www.cups.org
 
-%if %{?_with_systemd:1}%{!?_with_systemd:0}
-BuildRequires: systemd-devel
-%endif
 
-# Use buildroot so as not to disturb the version already installed
-BuildRoot: /tmp/%{name}-root
+%package libs
+Summary:        Libraries for CUPS
+License:        GPL-2.0+ ; LGPL-2.1+
+Group:          Hardware/Printing
+
+%description libs
+The Common UNIX Printing System (CUPS) is the
+standards-based, open source printing system.
+
 
 # Dependencies...
 Requires: %{name}-libs = %{epoch}:%{version}
@@ -87,38 +93,85 @@ Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh
 
 %package devel
 Summary: CUPS - development environment
-Group: Development/Libraries
 Requires: %{name}-libs = %{epoch}:%{version}
 
 %package libs
 Summary: CUPS - shared libraries
-Group: System Environment/Libraries
 Provides: libcups1
 
 %package lpd
 Summary: CUPS - LPD support
-Group: System Environment/Daemons
 Requires: %{name} = %{epoch}:%{version} xinetd
 
-%description
-CUPS is the standards-based, open source printing system developed by
-Apple Inc. for macOS® and other UNIX®-like operating systems.
+%description client
+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
+Summary:        Development Environment for CUPS
+License:        GPL-2.0+
+Group:          Development/Libraries/C and C++
+# Do not require the exact matching version-release of cups-libs
+# but only a cups-libs package with matching version because
+# for building third-party software which uses only the CUPS public API
+# there are no CUPS-internal dependencies via CUPS private API calls
+# (the latter would require the exact matching cups-libs version-release):
+Requires:       cups-libs = %{version}
+Requires:       libjpeg-devel
+Requires:       libpng-devel
+Requires:       libtiff-devel
+Requires:       libopenssl-devel
+Requires:       pam-devel
+Requires:       zlib-devel
+Requires:       systemd-devel
+Requires:       glibc-devel
 
 %description devel
-This package provides the CUPS headers and development environment.
+The Common UNIX Printing System (CUPS) is the
+standards-based, open source printing system.
 
-%description libs
-This package provides the CUPS shared libraries.
+See http://www.cups.org
+
+This is the development package.
+
+
+%package ddk
+Summary:        CUPS Driver Development Kit
+License:        GPL-2.0+
+Group:          Hardware/Printing
+Requires:       cups = %{version}
+Requires:       cups-devel = %{version}
+# Since CUPS 1.4 the CUPS Driver Development Kit (DDK) is bundled with CUPS.
+# For CUPS 1.2.x and 1.3.x, the DDK was separated software
+# which we provided (up to openSUSE 11.1 / SLE11) in our cupsddk package:
+Provides:       cupsddk = %{version}
+Obsoletes:      cupsddk < %{version}
+
+%description ddk
+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.
 
-%description lpd
-This package provides LPD client support.
 
 %prep
 %setup
+cp %{SOURCE101} .
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \
-    ./configure %{_dbus} %{_dnssd} %{_libusb1} %{_static}
+    ./configure %{_dbus} %{_dnssd} %{_libusb1} %{_static} --with-icondir="/usr/share/icons"
 # If we got this far, all prerequisite libraries must be here.
 make
 
@@ -126,48 +179,35 @@ make
 # Make sure the RPM_BUILD_ROOT directory exists.
 rm -rf $RPM_BUILD_ROOT
 
-make BUILDROOT=$RPM_BUILD_ROOT install
+make DSTROOT=$RPM_BUILD_ROOT install
 rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/data
 
-%post
-/sbin/chkconfig --add cups
-/sbin/chkconfig cups on
-
-# Restart cupsd if we are upgrading...
-if test $1 -gt 1; then
-       /sbin/service cups stop
-       /sbin/service cups start
-fi
+%remove_docs
 
-%post libs
-/sbin/ldconfig
+%post
+%systemd_post cups.socket cups.path
 
 %preun
-if test $1 = 0; then
-       /sbin/service cups stop
-       /sbin/chkconfig --del cups
-fi
+%systemd_preun cups.socket cups.path
 
 %postun
-if test $1 -ge 1; then
-       /sbin/service cups stop
-       /sbin/service cups start
-fi
+%systemd_postun cups.socket cups.path
 
-%postun libs
-/sbin/ldconfig
+%post libs -p /sbin/ldconfig
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun libs -p /sbin/ldconfig
 
 %files
-%docdir /usr/share/doc/cups
+#%docdir /usr/share/doc/cups
 %defattr(-,root,root)
+%license LICENSE.txt
+%manifest %{name}.manifest
 %dir /etc/cups
 %config(noreplace) /etc/cups/*.conf
 /etc/cups/cups-files.conf.default
 /etc/cups/cupsd.conf.default
 /etc/cups/snmp.conf.default
+%dir /etc/cups/interfaces
 %dir /etc/cups/ppd
 %attr(0700,root,root) %dir /etc/cups/ssl
 
@@ -196,91 +236,115 @@ rm -rf $RPM_BUILD_ROOT
 /usr/bin/cancel
 /usr/bin/cupstestdsc
 /usr/bin/cupstestppd
-/usr/bin/ippfind
+#/usr/bin/ippfind
 /usr/bin/ipptool
 /usr/bin/lp*
 %dir /usr/lib/cups
 %dir /usr/lib/cups/backend
-%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
-# DNS-SD
-/usr/lib/cups/backend/dnssd
-%endif
 /usr/lib/cups/backend/http
 /usr/lib/cups/backend/https
-%attr(0700,root,root) /usr/lib/cups/backend/ipp
+/usr/lib/cups/backend/ipp
 /usr/lib/cups/backend/ipps
-%attr(0700,root,root) /usr/lib/cups/backend/lpd
+/usr/lib/cups/backend/lpd
 /usr/lib/cups/backend/snmp
 /usr/lib/cups/backend/socket
 /usr/lib/cups/backend/usb
 %dir /usr/lib/cups/cgi-bin
-/usr/lib/cups/cgi-bin/*
+/usr/lib/cups/cgi-bin/admin.cgi
+/usr/lib/cups/cgi-bin/classes.cgi
+/usr/lib/cups/cgi-bin/help.cgi
+/usr/lib/cups/cgi-bin/jobs.cgi
+/usr/lib/cups/cgi-bin/printers.cgi
 %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
 %dir /usr/lib/cups/driver
 %dir /usr/lib/cups/filter
-/usr/lib/cups/filter/*
+/usr/lib/cups/filter/commandtops
+/usr/lib/cups/filter/gziptoany
+/usr/lib/cups/filter/pstops
+/usr/lib/cups/filter/rastertodymo
+/usr/lib/cups/filter/rastertoepson
+/usr/lib/cups/filter/rastertohp
+/usr/lib/cups/filter/rastertolabel
+/usr/lib/cups/filter/rastertopwg
 %dir /usr/lib/cups/monitor
-/usr/lib/cups/monitor/*
+/usr/lib/cups/monitor/bcp
+/usr/lib/cups/monitor/tbcp
 %dir /usr/lib/cups/notifier
-/usr/lib/cups/notifier/*
-
-/usr/sbin/*
-%dir /usr/share/cups
-%dir /usr/share/cups/drv
-/usr/share/cups/drv/*
-%dir /usr/share/cups/ipptool
-/usr/share/cups/ipptool/*
-%dir /usr/share/cups/mime
-/usr/share/cups/mime/*
-%dir /usr/share/cups/model
-%dir /usr/share/cups/ppdc
-/usr/share/cups/ppdc/*
-%dir /usr/share/cups/templates
-/usr/share/cups/templates/*
-%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
-# LIBUSB quirks files
-%dir /usr/share/cups/usb
-/usr/share/cups/usb/*
+/usr/lib/cups/notifier/dbus
+/usr/lib/cups/notifier/mailto
+/usr/lib/cups/notifier/rss
+%dir %attr(0775,root,ntadmin) %{_datadir}/cups/drivers
+%{_datadir}/applications/cups.desktop
+%{_datadir}/pixmaps/cups.png
+%doc %{_defaultdocdir}/cups
+%doc %{_mandir}/man1/cupstestppd.1.gz
+%doc %{_mandir}/man5/classes.conf.5.gz
+%doc %{_mandir}/man5/client.conf.5.gz
+%doc %{_mandir}/man5/cups-files.conf.5.gz
+%doc %{_mandir}/man5/cups-snmp.conf.5.gz
+%doc %{_mandir}/man5/cupsd.conf.5.gz
+%doc %{_mandir}/man5/mailto.conf.5.gz
+%doc %{_mandir}/man5/mime.convs.5.gz
+%doc %{_mandir}/man5/mime.types.5.gz
+%doc %{_mandir}/man5/printers.conf.5.gz
+%doc %{_mandir}/man5/subscriptions.conf.5.gz
+%doc %{_mandir}/man7/backend.7.gz
+%doc %{_mandir}/man7/filter.7.gz
+%doc %{_mandir}/man7/notifier.7.gz
+%doc %{_mandir}/man8/cups-deviced.8.gz
+%doc %{_mandir}/man8/cups-driverd.8.gz
+%doc %{_mandir}/man8/cups-lpd.8.gz
+%doc %{_mandir}/man8/cups-snmp.8.gz
+%doc %{_mandir}/man8/cupsaddsmb.8.gz
+%doc %{_mandir}/man8/cupsctl.8.gz
+%doc %{_mandir}/man8/cupsd.8.gz
+%doc %{_mandir}/man8/cupsfilter.8.gz
+%{_datadir}/cups/
+%exclude %{_datadir}/cups/ppdc/
+%if 0%{?have_systemd}
+%{_unitdir}/cups.path
+%{_unitdir}/cups.service
+%{_unitdir}/cups.socket
 %endif
 
-%dir /usr/share/doc/cups
-/usr/share/doc/cups/*.*
-%dir /usr/share/doc/cups/help
-/usr/share/doc/cups/help/accounting.html
-/usr/share/doc/cups/help/cgi.html
-/usr/share/doc/cups/help/encryption.html
-/usr/share/doc/cups/help/glossary.html
-/usr/share/doc/cups/help/kerberos.html
-/usr/share/doc/cups/help/license.html
-/usr/share/doc/cups/help/man-*.html
-/usr/share/doc/cups/help/network.html
-/usr/share/doc/cups/help/options.html
-/usr/share/doc/cups/help/overview.html
-/usr/share/doc/cups/help/policies.html
-/usr/share/doc/cups/help/ref-*.html
-/usr/share/doc/cups/help/security.html
-/usr/share/doc/cups/help/sharing.html
-/usr/share/doc/cups/help/translation.html
-%dir /usr/share/doc/cups/images
-/usr/share/doc/cups/images/*
+#%dir /usr/share/doc/cups
+#/usr/share/doc/cups/*.*
+#%dir /usr/share/doc/cups/help
+#/usr/share/doc/cups/help/accounting.html
+#/usr/share/doc/cups/help/cgi.html
+#/usr/share/doc/cups/help/glossary.html
+#/usr/share/doc/cups/help/kerberos.html
+#/usr/share/doc/cups/help/license.html
+#/usr/share/doc/cups/help/man-*.html
+#/usr/share/doc/cups/help/network.html
+#/usr/share/doc/cups/help/options.html
+#/usr/share/doc/cups/help/overview.html
+#/usr/share/doc/cups/help/policies.html
+#/usr/share/doc/cups/help/ref-*.html
+#/usr/share/doc/cups/help/security.html
+#/usr/share/doc/cups/help/sharing.html
+#/usr/share/doc/cups/help/translation.html
+#%dir /usr/share/doc/cups/images
+#/usr/share/doc/cups/images/*
 
 #%dir /usr/share/doc/cups/ca
 #/usr/share/doc/cups/ca/*
 #%dir /usr/share/doc/cups/cs
 #/usr/share/doc/cups/cs/*
-%dir /usr/share/doc/cups/de
-/usr/share/doc/cups/de/*
-%dir /usr/share/doc/cups/es
-/usr/share/doc/cups/es/*
+#%dir /usr/share/doc/cups/de
+#/usr/share/doc/cups/de/*
+#%dir /usr/share/doc/cups/es
+#/usr/share/doc/cups/es/*
 #%dir /usr/share/doc/cups/fr
 #/usr/share/doc/cups/fr/*
-%dir /usr/share/doc/cups/ja
-/usr/share/doc/cups/ja/*
-%dir /usr/share/doc/cups/ru
-/usr/share/doc/cups/ru/*
+#%dir /usr/share/doc/cups/ja
+#/usr/share/doc/cups/ja/*
+#%dir /usr/share/doc/cups/ru
+#/usr/share/doc/cups/ru/*
 
 %dir /usr/share/locale/ca
 /usr/share/locale/ca/cups_ca.po
@@ -299,44 +363,44 @@ rm -rf $RPM_BUILD_ROOT
 %dir /usr/share/locale/ru
 /usr/share/locale/ru/cups_ru.po
 
-%dir /usr/share/man/man1
-/usr/share/man/man1/cancel.1.gz
-/usr/share/man/man1/cups.1.gz
-/usr/share/man/man1/cupstestdsc.1.gz
-/usr/share/man/man1/cupstestppd.1.gz
-/usr/share/man/man1/ippfind.1.gz
-/usr/share/man/man1/ipptool.1.gz
-/usr/share/man/man1/lp.1.gz
-/usr/share/man/man1/lpoptions.1.gz
-/usr/share/man/man1/lpq.1.gz
-/usr/share/man/man1/lpr.1.gz
-/usr/share/man/man1/lprm.1.gz
-/usr/share/man/man1/lpstat.1.gz
-%dir /usr/share/man/man5
-/usr/share/man/man5/*.conf.5.gz
-/usr/share/man/man5/cupsd-logs.5.gz
-/usr/share/man/man5/ipptoolfile.5.gz
-/usr/share/man/man5/mime.*.5.gz
-%dir /usr/share/man/man8
-/usr/share/man/man8/accept.8.gz
-/usr/share/man/man8/cups-deviced.8.gz
-/usr/share/man/man8/cups-driverd.8.gz
-/usr/share/man/man8/cups-exec.8.gz
-/usr/share/man/man8/cups-snmp.8.gz
-/usr/share/man/man8/cupsaddsmb.8.gz
-/usr/share/man/man8/cupsaccept.8.gz
-/usr/share/man/man8/cupsctl.8.gz
-/usr/share/man/man8/cupsfilter.8.gz
-/usr/share/man/man8/cupsd.8.gz
-/usr/share/man/man8/cupsd-helper.8.gz
-/usr/share/man/man8/cupsdisable.8.gz
-/usr/share/man/man8/cupsenable.8.gz
-/usr/share/man/man8/cupsreject.8.gz
-/usr/share/man/man8/lpadmin.8.gz
-/usr/share/man/man8/lpc.8.gz
-/usr/share/man/man8/lpinfo.8.gz
-/usr/share/man/man8/lpmove.8.gz
-/usr/share/man/man8/reject.8.gz
+#%dir /usr/share/man/man1
+#/usr/share/man/man1/cancel.1.gz
+#/usr/share/man/man1/cups.1.gz
+#/usr/share/man/man1/cupstestdsc.1.gz
+#/usr/share/man/man1/cupstestppd.1.gz
+#/usr/share/man/man1/ippfind.1.gz
+#/usr/share/man/man1/ipptool.1.gz
+#/usr/share/man/man1/lp.1.gz
+#/usr/share/man/man1/lpoptions.1.gz
+#/usr/share/man/man1/lpq.1.gz
+#/usr/share/man/man1/lpr.1.gz
+#/usr/share/man/man1/lprm.1.gz
+#/usr/share/man/man1/lpstat.1.gz
+#%dir /usr/share/man/man5
+#/usr/share/man/man5/*.conf.5.gz
+#/usr/share/man/man5/cupsd-logs.5.gz
+#/usr/share/man/man5/ipptoolfile.5.gz
+#/usr/share/man/man5/mime.*.5.gz
+#%dir /usr/share/man/man8
+#/usr/share/man/man8/accept.8.gz
+#/usr/share/man/man8/cups-deviced.8.gz
+#/usr/share/man/man8/cups-driverd.8.gz
+#/usr/share/man/man8/cups-exec.8.gz
+#/usr/share/man/man8/cups-snmp.8.gz
+#/usr/share/man/man8/cupsaddsmb.8.gz
+#/usr/share/man/man8/cupsaccept.8.gz
+#/usr/share/man/man8/cupsctl.8.gz
+#/usr/share/man/man8/cupsfilter.8.gz
+#/usr/share/man/man8/cupsd.8.gz
+#/usr/share/man/man8/cupsd-helper.8.gz
+#/usr/share/man/man8/cupsdisable.8.gz
+#/usr/share/man/man8/cupsenable.8.gz
+#/usr/share/man/man8/cupsreject.8.gz
+#/usr/share/man/man8/lpadmin.8.gz
+#/usr/share/man/man8/lpc.8.gz
+#/usr/share/man/man8/lpinfo.8.gz
+#/usr/share/man/man8/lpmove.8.gz
+#/usr/share/man/man8/reject.8.gz
 
 %dir /var/cache/cups
 %attr(0775,root,sys) %dir /var/cache/cups/rss
@@ -351,17 +415,19 @@ rm -rf $RPM_BUILD_ROOT
 /usr/share/icons/*
 
 %files devel
+%manifest %{name}.manifest
 %defattr(-,root,root)
+%manifest %{name}.manifest
 %dir /usr/share/cups/examples
 /usr/share/cups/examples/*
-%dir /usr/share/man/man1
-/usr/share/man/man1/cups-config.1.gz
-/usr/share/man/man1/ppd*.1.gz
-%dir /usr/share/man/man5
-/usr/share/man/man5/ppdcfile.5.gz
-/usr/share/man/man7/backend.7.gz
-/usr/share/man/man7/filter.7.gz
-/usr/share/man/man7/notifier.7.gz
+#%dir /usr/share/man/man1
+#/usr/share/man/man1/cups-config.1.gz
+#/usr/share/man/man1/ppd*.1.gz
+#%dir /usr/share/man/man5
+#/usr/share/man/man5/ppdcfile.5.gz
+#/usr/share/man/man7/backend.7.gz
+#/usr/share/man/man7/filter.7.gz
+#/usr/share/man/man7/notifier.7.gz
 
 /usr/bin/cups-config
 /usr/bin/ppd*
@@ -373,19 +439,22 @@ rm -rf $RPM_BUILD_ROOT
 /usr/lib*/*.a
 %endif
 
-%dir /usr/share/doc/cups/help
-/usr/share/doc/cups/help/api*.html
-/usr/share/doc/cups/help/postscript-driver.html
-/usr/share/doc/cups/help/ppd-compiler.html
-/usr/share/doc/cups/help/raster-driver.html
-/usr/share/doc/cups/help/spec*.html
+#%dir /usr/share/doc/cups/help
+#/usr/share/doc/cups/help/api*.html
+#/usr/share/doc/cups/help/postscript-driver.html
+#/usr/share/doc/cups/help/ppd-compiler.html
+#/usr/share/doc/cups/help/raster-driver.html
+#/usr/share/doc/cups/help/spec*.html
 
 %files libs
 %defattr(-,root,root)
+%manifest %{name}.manifest
 /usr/lib*/*.so.*
 
-%files lpd
+%files libs
+%manifest %{name}.manifest
 %defattr(-,root,root)
+%manifest %{name}.manifest
 %if %{?_with_systemd:1}%{!?_with_systemd:0}
 # SystemD
 /usr/lib/systemd/system/org.cups.cups-lpd*
@@ -397,10 +466,10 @@ rm -rf $RPM_BUILD_ROOT
 %dir /usr/lib/cups
 %dir /usr/lib/cups/daemon
 /usr/lib/cups/daemon/cups-lpd
-%dir /usr/share/man/man8
-/usr/share/man/man8/cups-lpd.8.gz
+#%dir /usr/share/man/man8
+#/usr/share/man/man8/cups-lpd.8.gz
 
 
 #
-# End of "$Id$".
+# End of "$Id: cups.spec.in 12857 2015-08-31 15:00:45Z msweet $".
 #
diff --git a/packaging/cups.spec.in b/packaging/cups.spec.in
deleted file mode 100644 (file)
index 0290833..0000000
+++ /dev/null
@@ -1,406 +0,0 @@
-#
-# "$Id$"
-#
-# RPM "spec" file for CUPS.
-#
-# Original version by Jason McMullan <jmcc@ontv.com>.
-#
-# Copyright 2007-2016 by Apple Inc.
-# Copyright 1999-2007 by Easy Software Products, all rights reserved.
-#
-# These coded instructions, statements, and computer programs are the
-# property of Apple Inc. and are protected by Federal copyright
-# law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-# which should have been included with this file.  If this file is
-# file is missing or damaged, see the license at "http://www.cups.org/".
-#
-
-# Conditional build options (--with name/--without name):
-#
-#   dbus     - Enable/disable DBUS support (default = enable)
-#   dnssd    - Enable/disable DNS-SD support (default = enable)
-#   libusb1  - Enable/disable LIBUSB 1.0 support (default = enable)
-#   static   - Enable/disable static libraries (default = enable)
-#   systemd  - Enable/disable systemd support (default = enable)
-
-%{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
-%{?_with_dbus: %define _dbus --enable-dbus}
-%{!?_with_dbus: %define _dbus --disable-dbus}
-
-%{!?_with_dnssd: %{!?_without_dnssd: %define _with_dnssd --with-dnssd}}
-%{?_with_dnssd: %define _dnssd --enable-dnssd}
-%{!?_with_dnssd: %define _dnssd --disable-dnssd}
-
-%{!?_with_libusb1: %{!?_without_libusb1: %define _with_libusb1 --with-libusb1}}
-%{?_with_libusb1: %define _libusb1 --enable-libusb}
-%{!?_with_libusb1: %define _libusb1 --disable-libusb}
-
-%{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
-%{?_with_static: %define _static --enable-static}
-%{!?_with_static: %define _static --disable-static}
-
-%{!?_with_systemd: %{!?_without_systemd: %define _with_systemd --with-systemd}}
-%{?_with_systemd: %define _systemd --enable-systemd}
-%{!?_with_systemd: %define _systemd --disable-systemd}
-
-Summary: CUPS
-Name: cups
-Version: @CUPS_VERSION@
-Release: 0
-Epoch: 1
-License: GPL
-Group: System Environment/Daemons
-Source: http://ftp.cups.org/pub/cups/%{version}/cups-%{version}-source.tar.bz2
-Url: http://www.cups.org
-Packager: Anonymous <anonymous@foo.com>
-Vendor: Apple Inc.
-
-# Package names are as defined for Red Hat (and clone) distributions
-BuildRequires: gnutls-devel, pam-devel
-
-%if %{?_with_dbus:1}%{!?_with_dbus:0}
-BuildRequires: dbus-devel
-%endif
-
-%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
-BuildRequires: avahi-devel
-%endif
-
-%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
-BuildRequires: libusb-devel >= 1.0
-%endif
-
-%if %{?_with_systemd:1}%{!?_with_systemd:0}
-BuildRequires: systemd-devel
-%endif
-
-# Use buildroot so as not to disturb the version already installed
-BuildRoot: /tmp/%{name}-root
-
-# Dependencies...
-Requires: %{name}-libs = %{epoch}:%{version}
-Obsoletes: lpd, lpr, LPRng
-Provides: lpd, lpr, LPRng
-Obsoletes: cups-da, cups-de, cups-es, cups-et, cups-fi, cups-fr, cups-he
-Obsoletes: cups-id, cups-it, cups-ja, cups-ko, cups-nl, cups-no, cups-pl
-Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh
-
-%package devel
-Summary: CUPS - development environment
-Group: Development/Libraries
-Requires: %{name}-libs = %{epoch}:%{version}
-
-%package libs
-Summary: CUPS - shared libraries
-Group: System Environment/Libraries
-Provides: libcups1
-
-%package lpd
-Summary: CUPS - LPD support
-Group: System Environment/Daemons
-Requires: %{name} = %{epoch}:%{version} xinetd
-
-%description
-CUPS is the standards-based, open source printing system developed by
-Apple Inc. for macOS® and other UNIX®-like operating systems.
-
-%description devel
-This package provides the CUPS headers and development environment.
-
-%description libs
-This package provides the CUPS shared libraries.
-
-%description lpd
-This package provides LPD client support.
-
-%prep
-%setup
-
-%build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \
-    ./configure %{_dbus} %{_dnssd} %{_libusb1} %{_static}
-# If we got this far, all prerequisite libraries must be here.
-make
-
-%install
-# Make sure the RPM_BUILD_ROOT directory exists.
-rm -rf $RPM_BUILD_ROOT
-
-make BUILDROOT=$RPM_BUILD_ROOT install
-rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/data
-
-%post
-/sbin/chkconfig --add cups
-/sbin/chkconfig cups on
-
-# Restart cupsd if we are upgrading...
-if test $1 -gt 1; then
-       /sbin/service cups stop
-       /sbin/service cups start
-fi
-
-%post libs
-/sbin/ldconfig
-
-%preun
-if test $1 = 0; then
-       /sbin/service cups stop
-       /sbin/chkconfig --del cups
-fi
-
-%postun
-if test $1 -ge 1; then
-       /sbin/service cups stop
-       /sbin/service cups start
-fi
-
-%postun libs
-/sbin/ldconfig
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%docdir /usr/share/doc/cups
-%defattr(-,root,root)
-%dir /etc/cups
-%config(noreplace) /etc/cups/*.conf
-/etc/cups/cups-files.conf.default
-/etc/cups/cupsd.conf.default
-/etc/cups/snmp.conf.default
-%dir /etc/cups/ppd
-%attr(0700,root,root) %dir /etc/cups/ssl
-
-%if %{?_with_dbus:1}%{!?_with_dbus:0}
-# DBUS
-/etc/dbus-1/system.d/*
-%endif
-
-# PAM
-%dir /etc/pam.d
-/etc/pam.d/*
-
-%if %{?_with_systemd:1}%{!?_with_systemd:0}
-# SystemD
-/usr/lib/systemd/system/org.cups.cupsd.*
-
-%else
-# Legacy init support on Linux
-/etc/init.d/*
-/etc/rc0.d/*
-/etc/rc2.d/*
-/etc/rc3.d/*
-/etc/rc5.d/*
-%endif
-
-/usr/bin/cancel
-/usr/bin/cupstestdsc
-/usr/bin/cupstestppd
-/usr/bin/ippfind
-/usr/bin/ipptool
-/usr/bin/lp*
-%dir /usr/lib/cups
-%dir /usr/lib/cups/backend
-%if %{?_with_dnssd:1}%{!?_with_dnssd:0}
-# DNS-SD
-/usr/lib/cups/backend/dnssd
-%endif
-/usr/lib/cups/backend/http
-/usr/lib/cups/backend/https
-%attr(0700,root,root) /usr/lib/cups/backend/ipp
-/usr/lib/cups/backend/ipps
-%attr(0700,root,root) /usr/lib/cups/backend/lpd
-/usr/lib/cups/backend/snmp
-/usr/lib/cups/backend/socket
-/usr/lib/cups/backend/usb
-%dir /usr/lib/cups/cgi-bin
-/usr/lib/cups/cgi-bin/*
-%dir /usr/lib/cups/daemon
-/usr/lib/cups/daemon/cups-deviced
-/usr/lib/cups/daemon/cups-driverd
-/usr/lib/cups/daemon/cups-exec
-%dir /usr/lib/cups/driver
-%dir /usr/lib/cups/filter
-/usr/lib/cups/filter/*
-%dir /usr/lib/cups/monitor
-/usr/lib/cups/monitor/*
-%dir /usr/lib/cups/notifier
-/usr/lib/cups/notifier/*
-
-/usr/sbin/*
-%dir /usr/share/cups
-%dir /usr/share/cups/drv
-/usr/share/cups/drv/*
-%dir /usr/share/cups/ipptool
-/usr/share/cups/ipptool/*
-%dir /usr/share/cups/mime
-/usr/share/cups/mime/*
-%dir /usr/share/cups/model
-%dir /usr/share/cups/ppdc
-/usr/share/cups/ppdc/*
-%dir /usr/share/cups/templates
-/usr/share/cups/templates/*
-%if %{?_with_libusb1:1}%{!?_with_libusb1:0}
-# LIBUSB quirks files
-%dir /usr/share/cups/usb
-/usr/share/cups/usb/*
-%endif
-
-%dir /usr/share/doc/cups
-/usr/share/doc/cups/*.*
-%dir /usr/share/doc/cups/help
-/usr/share/doc/cups/help/accounting.html
-/usr/share/doc/cups/help/cgi.html
-/usr/share/doc/cups/help/encryption.html
-/usr/share/doc/cups/help/glossary.html
-/usr/share/doc/cups/help/kerberos.html
-/usr/share/doc/cups/help/license.html
-/usr/share/doc/cups/help/man-*.html
-/usr/share/doc/cups/help/network.html
-/usr/share/doc/cups/help/options.html
-/usr/share/doc/cups/help/overview.html
-/usr/share/doc/cups/help/policies.html
-/usr/share/doc/cups/help/ref-*.html
-/usr/share/doc/cups/help/security.html
-/usr/share/doc/cups/help/sharing.html
-/usr/share/doc/cups/help/translation.html
-%dir /usr/share/doc/cups/images
-/usr/share/doc/cups/images/*
-
-#%dir /usr/share/doc/cups/ca
-#/usr/share/doc/cups/ca/*
-#%dir /usr/share/doc/cups/cs
-#/usr/share/doc/cups/cs/*
-%dir /usr/share/doc/cups/de
-/usr/share/doc/cups/de/*
-%dir /usr/share/doc/cups/es
-/usr/share/doc/cups/es/*
-#%dir /usr/share/doc/cups/fr
-#/usr/share/doc/cups/fr/*
-%dir /usr/share/doc/cups/ja
-/usr/share/doc/cups/ja/*
-%dir /usr/share/doc/cups/ru
-/usr/share/doc/cups/ru/*
-
-%dir /usr/share/locale/ca
-/usr/share/locale/ca/cups_ca.po
-%dir /usr/share/locale/cs
-/usr/share/locale/cs/cups_cs.po
-%dir /usr/share/locale/de
-/usr/share/locale/de/cups_de.po
-%dir /usr/share/locale/es
-/usr/share/locale/es/cups_es.po
-%dir /usr/share/locale/fr
-/usr/share/locale/fr/cups_fr.po
-%dir /usr/share/locale/it
-/usr/share/locale/it/cups_it.po
-%dir /usr/share/locale/ja
-/usr/share/locale/ja/cups_ja.po
-%dir /usr/share/locale/ru
-/usr/share/locale/ru/cups_ru.po
-
-%dir /usr/share/man/man1
-/usr/share/man/man1/cancel.1.gz
-/usr/share/man/man1/cups.1.gz
-/usr/share/man/man1/cupstestdsc.1.gz
-/usr/share/man/man1/cupstestppd.1.gz
-/usr/share/man/man1/ippfind.1.gz
-/usr/share/man/man1/ipptool.1.gz
-/usr/share/man/man1/lp.1.gz
-/usr/share/man/man1/lpoptions.1.gz
-/usr/share/man/man1/lpq.1.gz
-/usr/share/man/man1/lpr.1.gz
-/usr/share/man/man1/lprm.1.gz
-/usr/share/man/man1/lpstat.1.gz
-%dir /usr/share/man/man5
-/usr/share/man/man5/*.conf.5.gz
-/usr/share/man/man5/cupsd-logs.5.gz
-/usr/share/man/man5/ipptoolfile.5.gz
-/usr/share/man/man5/mime.*.5.gz
-%dir /usr/share/man/man8
-/usr/share/man/man8/accept.8.gz
-/usr/share/man/man8/cups-deviced.8.gz
-/usr/share/man/man8/cups-driverd.8.gz
-/usr/share/man/man8/cups-exec.8.gz
-/usr/share/man/man8/cups-snmp.8.gz
-/usr/share/man/man8/cupsaddsmb.8.gz
-/usr/share/man/man8/cupsaccept.8.gz
-/usr/share/man/man8/cupsctl.8.gz
-/usr/share/man/man8/cupsfilter.8.gz
-/usr/share/man/man8/cupsd.8.gz
-/usr/share/man/man8/cupsd-helper.8.gz
-/usr/share/man/man8/cupsdisable.8.gz
-/usr/share/man/man8/cupsenable.8.gz
-/usr/share/man/man8/cupsreject.8.gz
-/usr/share/man/man8/lpadmin.8.gz
-/usr/share/man/man8/lpc.8.gz
-/usr/share/man/man8/lpinfo.8.gz
-/usr/share/man/man8/lpmove.8.gz
-/usr/share/man/man8/reject.8.gz
-
-%dir /var/cache/cups
-%attr(0775,root,sys) %dir /var/cache/cups/rss
-%dir /var/log/cups
-%dir /var/run/cups
-%attr(0711,lp,sys) %dir /var/run/cups/certs
-%attr(0710,lp,sys) %dir /var/spool/cups
-%attr(1770,lp,sys) %dir /var/spool/cups/tmp
-
-# Desktop files
-/usr/share/applications/*
-/usr/share/icons/*
-
-%files devel
-%defattr(-,root,root)
-%dir /usr/share/cups/examples
-/usr/share/cups/examples/*
-%dir /usr/share/man/man1
-/usr/share/man/man1/cups-config.1.gz
-/usr/share/man/man1/ppd*.1.gz
-%dir /usr/share/man/man5
-/usr/share/man/man5/ppdcfile.5.gz
-/usr/share/man/man7/backend.7.gz
-/usr/share/man/man7/filter.7.gz
-/usr/share/man/man7/notifier.7.gz
-
-/usr/bin/cups-config
-/usr/bin/ppd*
-%dir /usr/include/cups
-/usr/include/cups/*
-/usr/lib*/*.so
-
-%if %{?_with_static:1}%{!?_with_static:0}
-/usr/lib*/*.a
-%endif
-
-%dir /usr/share/doc/cups/help
-/usr/share/doc/cups/help/api*.html
-/usr/share/doc/cups/help/postscript-driver.html
-/usr/share/doc/cups/help/ppd-compiler.html
-/usr/share/doc/cups/help/raster-driver.html
-/usr/share/doc/cups/help/spec*.html
-
-%files libs
-%defattr(-,root,root)
-/usr/lib*/*.so.*
-
-%files lpd
-%defattr(-,root,root)
-%if %{?_with_systemd:1}%{!?_with_systemd:0}
-# SystemD
-/usr/lib/systemd/system/org.cups.cups-lpd*
-%else
-# Legacy xinetd
-/etc/xinetd.d/cups-lpd
-%endif
-
-%dir /usr/lib/cups
-%dir /usr/lib/cups/daemon
-/usr/lib/cups/daemon/cups-lpd
-%dir /usr/share/man/man8
-/usr/share/man/man8/cups-lpd.8.gz
-
-
-#
-# End of "$Id$".
-#
diff --git a/packaging/cups.sysconfig b/packaging/cups.sysconfig
new file mode 100644 (file)
index 0000000..83cc0f7
--- /dev/null
@@ -0,0 +1,17 @@
+## Path:        System/Printing/CUPS
+## Description: Cups options
+## Type:        string
+## Default:     cups
+## ServiceReload: cups
+## ServiceRestart: cups
+#
+IDENT="cups"
+## Type:        string
+## Default:     "CUPS printer daemon"
+DESCRIPTIVE="CUPS printer daemon"
+## Type:        string
+## Default:     ""
+#
+# change CUPSD_OPTIONS for arguments of start of cupsd
+# e.g.  CUPSD_OPTIONS="-c /etc/cups/cupsd.conf"
+CUPSD_OPTIONS=""
diff --git a/packaging/postscript.ppd.bz2 b/packaging/postscript.ppd.bz2
new file mode 100644 (file)
index 0000000..a021230
Binary files /dev/null and b/packaging/postscript.ppd.bz2 differ