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-2005 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 %dir /etc
/cups
/interfaces
145 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
146 # don't use Red Hat or Mandrake...
154 # OLD RedHat/Mandrake
171 %dir /usr
/lib
/cups
/backend
172 /usr
/lib
/cups
/backend
/*
173 %dir /usr
/lib
/cups
/cgi
-bin
174 /usr
/lib
/cups
/cgi
-bin
/*
175 %dir /usr
/lib
/cups
/daemon
176 /usr
/lib
/cups
/daemon
/cups
-deviced
177 /usr
/lib
/cups
/daemon
/cups
-driverd
178 /usr
/lib
/cups
/daemon
/cups
-polld
179 %dir /usr
/lib
/cups
/driver
180 %dir /usr
/lib
/cups
/filter
181 /usr
/lib
/cups
/filter
/*
182 %dir /usr
/lib
/cups
/notifier
183 /usr
/lib
/cups
/notifier
/*
188 %dir /usr
/share
/doc
/cups
189 /usr
/share
/doc
/cups
/*.
*
190 %dir /usr
/share
/doc
/cups
/help
191 /usr
/share
/doc
/cups
/help/*-reference.html
192 %dir /usr
/share
/doc
/cups
/images
193 /usr
/share
/doc
/cups
/images
/*
194 %dir /usr
/share
/locale
197 %dir /usr
/share
/man
/man1
198 /usr
/share
/man
/man1
/cancel
.1.gz
199 /usr
/share
/man
/man1
/cupstestppd
.1.gz
200 /usr
/share
/man
/man1
/lp
.1.gz
201 /usr
/share
/man
/man1
/lpoptions
.1.gz
202 /usr
/share
/man
/man1
/lppasswd
.1.gz
203 /usr
/share
/man
/man1
/lpq
.1.gz
204 /usr
/share
/man
/man1
/lpr
.1.gz
205 /usr
/share
/man
/man1
/lprm
.1.gz
206 /usr
/share
/man
/man1
/lpstat
.1.gz
207 %dir /usr
/share
/man
/man5
208 /usr
/share
/man
/man5
/*
209 %dir /usr
/share
/man
/man8
210 /usr
/share
/man
/man8
/accept
.8.gz
211 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
212 /usr
/share
/man
/man8
/cupsd
.8.gz
213 /usr
/share
/man
/man8
/cupsdisable
.8.gz
214 /usr
/share
/man
/man8
/cupsenable
.8.gz
215 /usr
/share
/man
/man8
/cups
-polld
.8.gz
216 /usr
/share
/man
/man8
/lpadmin
.8.gz
217 /usr
/share
/man
/man8
/lpc
.8.gz
218 /usr
/share
/man
/man8
/lpinfo
.8.gz
219 /usr
/share
/man
/man8
/lpmove
.8.gz
220 /usr
/share
/man
/man8
/reject
.8.gz
223 %dir /var
/cache
/cups
/ppd
226 %attr(0711,lp
,root
) %dir /var
/run
/cups
/certs
227 %attr(0700,lp
,root
) %dir /var
/spool
/cups
228 %attr(1700,lp
,root
) %dir /var
/spool
/cups
/tmp
231 %defattr(-,root
,root
)
232 %dir /usr
/share
/man
/man1
233 /usr
/share
/man
/man1
/backend
.1.gz
234 /usr
/share
/man
/man1
/cups
-config
.1.gz
235 /usr
/share
/man
/man1
/filter
.1.gz
238 %dir /usr
/include
/cups
243 %dir /usr
/share
/doc
/cups
/help
244 /usr
/share
/doc
/cups
/help/api
*.html
247 %defattr(-,root
,root
)
251 %defattr(-,root
,root
)
252 #/etc/xinetd.d/cups-lpd
254 %dir /usr
/lib
/cups
/daemon
255 /usr
/lib
/cups
/daemon
/cups
-lpd
256 %dir /usr
/share
/man
/man8
257 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
260 # End of "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $".