2 # "$Id: cups.spec.in 5224 2006-03-04 02:00:43Z 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 # Conditional build options (--with name/--without name):
29 # dbus - Enable/disable DBUS support (default = enable)
30 # php - Enable/disable PHP support (default = enable)
32 %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
33 %{?_with_dbus: %define _dbus --enable-dbus}
34 %{!?_with_dbus: %define _dbus --disable-dbus}
36 %{!?_with_php: %{!?_without_php: %define _with_php --with-php}}
38 Summary: Common UNIX Printing System
40 Version: @CUPS_VERSION@
44 Group: System Environment
/Daemons
45 Source: ftp
://ftp.easysw.com
/pub
/cups
/%{version}/cups-%{version}-source.tar.gz
46 Url
: http
://www.cups.org
47 Packager: Anonymous
<anonymous@foo.com
>
48 Vendor: Easy Software Products
50 # Use buildroot so as not to disturb the version already installed
51 BuildRoot: /tmp
/%{name}-root
54 Requires: %{name}-libs = %{epoch}:%{version}
55 Obsoletes
: lpd
, lpr
, LPRng
56 Provides: lpd
, lpr
, LPRng
59 Summary: Common UNIX Printing System
- development environment
60 Group: Development
/Libraries
61 Requires: %{name}-libs = %{epoch}:%{version}
64 Summary: Common UNIX Printing System
- shared libraries
65 Group: System Environment
/Libraries
69 Summary: Common UNIX Printing System
- LPD support
70 Group: System Environment
/Daemons
71 Requires: %{name} = %{epoch}:%{version} xinetd
74 Summary: Common UNIX Printing System
- Japanese support
75 Group: System Environment
/Daemons
76 Requires: %{name} = %{epoch}:%{version}
78 %if %{?_with_php:1}%{!?_with_php:0}
80 Summary: Common UNIX Printing System
- PHP support
81 Group: Development
/Languages
82 Requires: %{name}-libs = %{epoch}:%{version}
86 The Common UNIX Printing System provides a portable printing layer
for
87 UNIX® operating systems. It has been developed by Easy Software Products
88 to promote a standard printing solution
for all UNIX vendors and users.
89 CUPS provides the System V and Berkeley
command-line interfaces.
92 The Common UNIX Printing System provides a portable printing layer
for
93 UNIX® operating systems. This is the development package
for creating
94 additional printer drivers and other CUPS services.
97 The Common UNIX Printing System provides a portable printing layer
for
98 UNIX® operating systems. This package contains the CUPS shared libraries.
101 The Common UNIX Printing System provides a portable printing layer
for
102 UNIX® operating systems. This package provides LPD client support.
105 The Common UNIX Printing System provides a portable printing layer
for
106 UNIX® operating systems. This package provides Japanese support.
108 %if %{?_with_php:1}%{!?_with_php:0}
110 The Common UNIX Printing System provides a portable printing layer
for
111 UNIX® operating systems. This package provides PHP support.
118 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" .
/configure
%{_dbus} %{_without_php}
120 # If we got this far, all prerequisite libraries must be here.
124 # Make sure the RPM_BUILD_ROOT directory exists.
125 rm -rf $RPM_BUILD_ROOT
127 make BUILDROOT
=$RPM_BUILD_ROOT
install
130 /sbin
/chkconfig
--add cups
131 /sbin
/chkconfig cups on
133 # Restart cupsd if we are upgrading...
134 if test $
1 -gt
1; then
135 /sbin
/service cups stop
136 /sbin
/service cups start
144 /sbin
/service cups stop
145 /sbin
/chkconfig
--del cups
149 if test $
1 -ge
1; then
150 /sbin
/service cups stop
151 /sbin
/service cups start
158 rm -rf $RPM_BUILD_ROOT
161 %docdir /usr
/share
/doc
/cups
162 %defattr(-,root
,root
)
164 %config(noreplace
) /etc
/cups
/*.conf
165 /etc
/cups
/cupsd.conf.default
166 %dir /etc
/cups
/interfaces
171 %if %{?_with_dbus:1}%{!?_with_dbus:0}
173 /etc
/dbus
-1/system.d
/*
180 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
181 # don't use Red Hat or Mandrake...
189 # OLD RedHat/Mandrake
206 %dir /usr
/lib
/cups
/backend
207 /usr
/lib
/cups
/backend
/http
208 /usr
/lib
/cups
/backend
/ipp
209 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
210 /usr
/lib
/cups
/backend
/parallel
211 /usr
/lib
/cups
/backend
/scsi
212 /usr
/lib
/cups
/backend
/serial
213 /usr
/lib
/cups
/backend
/socket
214 /usr
/lib
/cups
/backend
/usb
215 %dir /usr
/lib
/cups
/cgi
-bin
216 /usr
/lib
/cups
/cgi
-bin
/*
217 %dir /usr
/lib
/cups
/daemon
218 /usr
/lib
/cups
/daemon
/cups
-deviced
219 /usr
/lib
/cups
/daemon
/cups
-driverd
220 /usr
/lib
/cups
/daemon
/cups
-polld
221 %dir /usr
/lib
/cups
/driver
222 %dir /usr
/lib
/cups
/filter
223 /usr
/lib
/cups
/filter
/*
224 %dir /usr
/lib
/cups
/monitor
225 /usr
/lib
/cups
/monitor
/*
226 %dir /usr
/lib
/cups
/notifier
227 /usr
/lib
/cups
/notifier
/*
232 %dir /usr
/share
/doc
/cups
233 /usr
/share
/doc
/cups
/*.
*
234 %dir /usr
/share
/doc
/cups
/help
235 /usr
/share
/doc
/cups
/help/cgi.html
236 /usr
/share
/doc
/cups
/help/glossary.html
237 /usr
/share
/doc
/cups
/help/license.html
238 /usr
/share
/doc
/cups
/help/man
-*.html
239 /usr
/share
/doc
/cups
/help/network.html
240 /usr
/share
/doc
/cups
/help/options.html
241 /usr
/share
/doc
/cups
/help/overview.html
242 /usr
/share
/doc
/cups
/help/ref
-*.html
243 /usr
/share
/doc
/cups
/help/security.html
244 /usr
/share
/doc
/cups
/help/standard.html
245 /usr
/share
/doc
/cups
/help/translation.html
246 /usr
/share
/doc
/cups
/help/whatsnew.html
247 %dir /usr
/share
/doc
/cups
/images
248 /usr
/share
/doc
/cups
/images
/*
250 %dir /usr
/share
/man
/man1
251 /usr
/share
/man
/man1
/cancel
.1.gz
252 /usr
/share
/man
/man1
/cupstestppd
.1.gz
253 /usr
/share
/man
/man1
/lp
.1.gz
254 /usr
/share
/man
/man1
/lpoptions
.1.gz
255 /usr
/share
/man
/man1
/lppasswd
.1.gz
256 /usr
/share
/man
/man1
/lpq
.1.gz
257 /usr
/share
/man
/man1
/lpr
.1.gz
258 /usr
/share
/man
/man1
/lprm
.1.gz
259 /usr
/share
/man
/man1
/lpstat
.1.gz
260 %dir /usr
/share
/man
/man5
261 /usr
/share
/man
/man5
/*
262 %dir /usr
/share
/man
/man8
263 /usr
/share
/man
/man8
/accept
.8.gz
264 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
265 /usr
/share
/man
/man8
/cupsd
.8.gz
266 /usr
/share
/man
/man8
/cupsdisable
.8.gz
267 /usr
/share
/man
/man8
/cupsenable
.8.gz
268 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
269 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
270 /usr
/share
/man
/man8
/cups
-polld
.8.gz
271 /usr
/share
/man
/man8
/lpadmin
.8.gz
272 /usr
/share
/man
/man8
/lpc
.8.gz
273 /usr
/share
/man
/man8
/lpinfo
.8.gz
274 /usr
/share
/man
/man8
/lpmove
.8.gz
275 /usr
/share
/man
/man8
/reject
.8.gz
280 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
281 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
282 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
285 %defattr(-,root
,root
)
286 %dir /usr
/share
/man
/man1
287 /usr
/share
/man
/man1
/cups
-config
.1.gz
288 %dir /usr
/share
/man
/man7
289 /usr
/share
/man
/man7
/*
292 %dir /usr
/include
/cups
297 %dir /usr
/share
/doc
/cups
/help
298 /usr
/share
/doc
/cups
/help/api
*.html
299 /usr
/share
/doc
/cups
/help/spec
*.html
302 %defattr(-,root
,root
)
306 %defattr(-,root
,root
)
307 #/etc/xinetd.d/cups-lpd
309 %dir /usr
/lib
/cups
/daemon
310 /usr
/lib
/cups
/daemon
/cups
-lpd
311 %dir /usr
/share
/man
/man8
312 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
315 %defattr(-,root
,root
)
316 %dir /usr
/share
/doc
/cups
/ja
317 /usr
/share
/doc
/cups
/ja
/index.html
318 %dir /usr
/share
/doc
/cups
/ja
/images
319 /usr
/share
/doc
/cups
/ja
/images
/*
320 %dir /usr
/share
/cups
/templates
/ja
321 /usr
/share
/cups
/templates
/ja
/*
322 /usr
/share
/locale
/ja
/cups_ja.po
324 %if %{?_with_php:1}%{!?_with_php:0}
332 # End of "$Id: cups.spec.in 5224 2006-03-04 02:00:43Z mike $".