2 # "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $"
4 # RPM "spec" file for the Common UNIX Printing System (CUPS).
6 # Original version by Jason McMullan <jmcc@ontv.com>.
8 # Copyright 1999-2006 by Easy Software Products, all rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Easy Software Products and are protected by Federal
12 # copyright law. Distribution and use rights are outlined in the file
13 # "LICENSE.txt" which should have been included with this file. If this
14 # file is missing or damaged please contact Easy Software Products
17 # Attn: CUPS Licensing Information
18 # Easy Software Products
19 # 44141 Airport View Drive, Suite 204
20 # Hollywood, Maryland 20636 USA
22 # Voice: (301) 373-9600
23 # EMail: cups-info@cups.org
24 # WWW: http://www.cups.org
27 Summary: Common Unix Printing System
29 Version: @CUPS_VERSION@
33 Group: System Environment
/Daemons
34 Source: ftp
://ftp.easysw.com
/pub
/cups
/%{version}/cups-%{version}-source.tar.gz
35 Url
: http
://www.cups.org
36 Packager: Anonymous
<anonymous@foo.com
>
37 Vendor: Easy Software Products
39 # Use buildroot so as not to disturb the version already installed
40 BuildRoot: /tmp
/%{name}-root
43 Requires: %{name}-libs = %{epoch}:%{version}
44 Obsoletes
: lpd
, lpr
, LPRng
45 Provides: lpd
, lpr
, LPRng
48 Summary: Common Unix Printing System
- development environment
49 Group: Development
/Libraries
50 Requires: %{name}-libs = %{epoch}:%{version}
53 Summary: Common Unix Printing System
- shared libraries
54 Group: System Environment
/Libraries
58 Summary: Common Unix Printing System
- LPD support
59 Group: System Environment
/Daemons
60 Requires: %{name} = %{epoch}:%{version} xinetd
63 The Common UNIX Printing System provides a portable printing layer
for
64 UNIX® operating systems. It has been developed by Easy Software Products
65 to promote a standard printing solution
for all UNIX vendors and users.
66 CUPS provides the System V and Berkeley
command-line interfaces.
69 The Common UNIX Printing System provides a portable printing layer
for
70 UNIX® operating systems. This is the development package
for creating
71 additional printer drivers and other CUPS services.
74 The Common UNIX Printing System provides a portable printing layer
for
75 UNIX® operating systems. This package contains the CUPS shared libraries.
78 The Common UNIX Printing System provides a portable printing layer
for
79 UNIX® operating systems. This package provides LPD client support.
85 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" .
/configure
87 # If we got this far, all prerequisite libraries must be here.
91 # Make sure the RPM_BUILD_ROOT directory exists.
92 rm -rf $RPM_BUILD_ROOT
94 make BUILDROOT
=$RPM_BUILD_ROOT
install
99 if test -x
/sbin
/chkconfig
; then
100 /sbin
/chkconfig
--add cups
101 /sbin
/chkconfig cups on
104 # these lines automatically start cupsd after installation; commented out
106 #if test -f /sbin/init.d/cups; then
107 # /sbin/init.d/cups start
109 #if test -f /etc/rc.d/init.d/cups; then
110 # /etc/rc.d/init.d/cups start
112 #if test -f /etc/init.d/cups; then
113 # /etc/init.d/cups start
117 if test -f
/sbin
/init.d
/cups
; then
118 /sbin
/init.d
/cups stop
120 if test -f
/etc
/rc.d
/init.d
/cups
; then
121 /etc
/rc.d
/init.d
/cups stop
123 if test -f
/etc
/init.d
/cups
; then
124 /etc
/init.d
/cups stop
127 if test -x
/sbin
/chkconfig
; then
128 /sbin
/chkconfig
--del cups
132 rm -rf $RPM_BUILD_ROOT
135 %defattr(-,root
,root
)
137 %config(noreplace
) /etc
/cups
/*.conf
138 /etc
/cups
/cupsd.conf.default
139 %dir /etc
/cups
/interfaces
146 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
147 # don't use Red Hat or Mandrake...
155 # OLD RedHat/Mandrake
172 %dir /usr
/lib
/cups
/backend
173 /usr
/lib
/cups
/backend
/http
174 /usr
/lib
/cups
/backend
/ipp
175 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
176 /usr
/lib
/cups
/backend
/parallel
177 /usr
/lib
/cups
/backend
/scsi
178 /usr
/lib
/cups
/backend
/serial
179 /usr
/lib
/cups
/backend
/socket
180 /usr
/lib
/cups
/backend
/usb
181 %dir /usr
/lib
/cups
/cgi
-bin
182 /usr
/lib
/cups
/cgi
-bin
/*
183 %dir /usr
/lib
/cups
/daemon
184 /usr
/lib
/cups
/daemon
/cups
-deviced
185 /usr
/lib
/cups
/daemon
/cups
-driverd
186 /usr
/lib
/cups
/daemon
/cups
-polld
187 %dir /usr
/lib
/cups
/driver
188 %dir /usr
/lib
/cups
/filter
189 /usr
/lib
/cups
/filter
/*
190 %dir /usr
/lib
/cups
/notifier
191 /usr
/lib
/cups
/notifier
/*
196 %dir /usr
/share
/doc
/cups
197 /usr
/share
/doc
/cups
/*.
*
198 %dir /usr
/share
/doc
/cups
/help
199 /usr
/share
/doc
/cups
/help/*-reference.html
200 /usr
/share
/doc
/cups
/help/man
-*.html
201 /usr
/share
/doc
/cups
/help/network.html
202 /usr
/share
/doc
/cups
/help/overview.html
203 /usr
/share
/doc
/cups
/help/standard.html
204 /usr
/share
/doc
/cups
/help/whatsnew.html
205 %dir /usr
/share
/doc
/cups
/images
206 /usr
/share
/doc
/cups
/images
/*
207 %dir /usr
/share
/locale
210 %dir /usr
/share
/man
/man1
211 /usr
/share
/man
/man1
/cancel
.1.gz
212 /usr
/share
/man
/man1
/cupstestppd
.1.gz
213 /usr
/share
/man
/man1
/lp
.1.gz
214 /usr
/share
/man
/man1
/lpoptions
.1.gz
215 /usr
/share
/man
/man1
/lppasswd
.1.gz
216 /usr
/share
/man
/man1
/lpq
.1.gz
217 /usr
/share
/man
/man1
/lpr
.1.gz
218 /usr
/share
/man
/man1
/lprm
.1.gz
219 /usr
/share
/man
/man1
/lpstat
.1.gz
220 %dir /usr
/share
/man
/man5
221 /usr
/share
/man
/man5
/*
222 %dir /usr
/share
/man
/man8
223 /usr
/share
/man
/man8
/accept
.8.gz
224 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
225 /usr
/share
/man
/man8
/cupsd
.8.gz
226 /usr
/share
/man
/man8
/cupsdisable
.8.gz
227 /usr
/share
/man
/man8
/cupsenable
.8.gz
228 /usr
/share
/man
/man8
/cups
-polld
.8.gz
229 /usr
/share
/man
/man8
/lpadmin
.8.gz
230 /usr
/share
/man
/man8
/lpc
.8.gz
231 /usr
/share
/man
/man8
/lpinfo
.8.gz
232 /usr
/share
/man
/man8
/lpmove
.8.gz
233 /usr
/share
/man
/man8
/reject
.8.gz
238 %attr(0711,lp
,root
) %dir /var
/run
/cups
/certs
239 %attr(0710,lp
,root
) %dir /var
/spool
/cups
240 %attr(1770,lp
,root
) %dir /var
/spool
/cups
/tmp
243 %defattr(-,root
,root
)
244 %dir /usr
/share
/man
/man1
245 /usr
/share
/man
/man1
/backend
.1.gz
246 /usr
/share
/man
/man1
/cups
-config
.1.gz
247 /usr
/share
/man
/man1
/filter
.1.gz
250 %dir /usr
/include
/cups
255 %dir /usr
/share
/doc
/cups
/help
256 /usr
/share
/doc
/cups
/help/api
*.html
257 /usr
/share
/doc
/cups
/help/spec
*.html
260 %defattr(-,root
,root
)
264 %defattr(-,root
,root
)
265 #/etc/xinetd.d/cups-lpd
267 %dir /usr
/lib
/cups
/daemon
268 /usr
/lib
/cups
/daemon
/cups
-lpd
269 %dir /usr
/share
/man
/man8
270 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
273 # End of "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $".