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
/*
174 %dir /usr
/lib
/cups
/cgi
-bin
175 /usr
/lib
/cups
/cgi
-bin
/*
176 %dir /usr
/lib
/cups
/daemon
177 /usr
/lib
/cups
/daemon
/cups
-deviced
178 /usr
/lib
/cups
/daemon
/cups
-driverd
179 /usr
/lib
/cups
/daemon
/cups
-polld
180 %dir /usr
/lib
/cups
/driver
181 %dir /usr
/lib
/cups
/filter
182 /usr
/lib
/cups
/filter
/*
183 %dir /usr
/lib
/cups
/notifier
184 /usr
/lib
/cups
/notifier
/*
189 %dir /usr
/share
/doc
/cups
190 /usr
/share
/doc
/cups
/*.
*
191 %dir /usr
/share
/doc
/cups
/help
192 /usr
/share
/doc
/cups
/help/*-reference.html
193 /usr
/share
/doc
/cups
/help/man
-*.html
194 /usr
/share
/doc
/cups
/help/network.html
195 /usr
/share
/doc
/cups
/help/overview.html
196 /usr
/share
/doc
/cups
/help/standard.html
197 /usr
/share
/doc
/cups
/help/whatsnew.html
198 %dir /usr
/share
/doc
/cups
/images
199 /usr
/share
/doc
/cups
/images
/*
200 %dir /usr
/share
/locale
203 %dir /usr
/share
/man
/man1
204 /usr
/share
/man
/man1
/cancel
.1.gz
205 /usr
/share
/man
/man1
/cupstestppd
.1.gz
206 /usr
/share
/man
/man1
/lp
.1.gz
207 /usr
/share
/man
/man1
/lpoptions
.1.gz
208 /usr
/share
/man
/man1
/lppasswd
.1.gz
209 /usr
/share
/man
/man1
/lpq
.1.gz
210 /usr
/share
/man
/man1
/lpr
.1.gz
211 /usr
/share
/man
/man1
/lprm
.1.gz
212 /usr
/share
/man
/man1
/lpstat
.1.gz
213 %dir /usr
/share
/man
/man5
214 /usr
/share
/man
/man5
/*
215 %dir /usr
/share
/man
/man8
216 /usr
/share
/man
/man8
/accept
.8.gz
217 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
218 /usr
/share
/man
/man8
/cupsd
.8.gz
219 /usr
/share
/man
/man8
/cupsdisable
.8.gz
220 /usr
/share
/man
/man8
/cupsenable
.8.gz
221 /usr
/share
/man
/man8
/cups
-polld
.8.gz
222 /usr
/share
/man
/man8
/lpadmin
.8.gz
223 /usr
/share
/man
/man8
/lpc
.8.gz
224 /usr
/share
/man
/man8
/lpinfo
.8.gz
225 /usr
/share
/man
/man8
/lpmove
.8.gz
226 /usr
/share
/man
/man8
/reject
.8.gz
229 %dir /var
/cache
/cups
/ppd
232 %attr(0711,lp
,root
) %dir /var
/run
/cups
/certs
233 %attr(0700,lp
,root
) %dir /var
/spool
/cups
234 %attr(1700,lp
,root
) %dir /var
/spool
/cups
/tmp
237 %defattr(-,root
,root
)
238 %dir /usr
/share
/man
/man1
239 /usr
/share
/man
/man1
/backend
.1.gz
240 /usr
/share
/man
/man1
/cups
-config
.1.gz
241 /usr
/share
/man
/man1
/filter
.1.gz
244 %dir /usr
/include
/cups
249 %dir /usr
/share
/doc
/cups
/help
250 /usr
/share
/doc
/cups
/help/api
*.html
251 /usr
/share
/doc
/cups
/help/spec
*.html
254 %defattr(-,root
,root
)
258 %defattr(-,root
,root
)
259 #/etc/xinetd.d/cups-lpd
261 %dir /usr
/lib
/cups
/daemon
262 /usr
/lib
/cups
/daemon
/cups
-lpd
263 %dir /usr
/share
/man
/man8
264 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
267 # End of "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $".