2 # "$Id: cups.spec.in 6889 2007-08-29 22:23:35Z mike $"
4 # RPM "spec" file for the Common UNIX Printing System (CUPS).
6 # Original version by Jason McMullan <jmcc@ontv.com>.
8 # Copyright 2007-2008 by Apple Inc.
9 # Copyright 1999-2007 by Easy Software Products, all rights reserved.
11 # These coded instructions, statements, and computer programs are the
12 # property of Apple Inc. and are protected by Federal copyright
13 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
14 # which should have been included with this file. If this file is
15 # file is missing or damaged, see the license at "http://www.cups.org/".
18 # Conditional build options (--with name/--without name):
20 # dbus - Enable/disable DBUS support (default = enable)
21 # php - Enable/disable PHP support (default = enable)
23 %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
24 %{?_with_dbus: %define _dbus --enable-dbus}
25 %{!?_with_dbus: %define _dbus --disable-dbus}
27 %{!?_with_php: %{!?_without_php: %define _with_php --with-php}}
28 %{?_with_php: %define _php --with-php}
29 %{!?_with_php: %define _php --without-php}
31 %{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
32 %{?_with_static: %define _static --enable-static}
33 %{!?_with_static: %define _static --disable-static}
35 Summary: Common UNIX Printing System
37 Version: @CUPS_VERSION@
41 Group: System Environment
/Daemons
42 Source: ftp
://ftp.easysw.com
/pub
/cups
/%{version}/cups-%{version}-source.tar.gz
43 Url
: http
://www.cups.org
44 Packager: Anonymous
<anonymous@foo.com
>
47 # Use buildroot so as not to disturb the version already installed
48 BuildRoot: /tmp
/%{name}-root
51 Requires: %{name}-libs = %{epoch}:%{version}
52 Obsoletes
: lpd
, lpr
, LPRng
53 Provides: lpd
, lpr
, LPRng
56 Summary: Common UNIX Printing System
- development environment
57 Group: Development
/Libraries
58 Requires: %{name}-libs = %{epoch}:%{version}
61 Summary: Common UNIX Printing System
- shared libraries
62 Group: System Environment
/Libraries
66 Summary: Common UNIX Printing System
- LPD support
67 Group: System Environment
/Daemons
68 Requires: %{name} = %{epoch}:%{version} xinetd
70 %if %{?_with_php:1}%{!?_with_php:0}
72 Summary: Common UNIX Printing System
- PHP support
73 Group: Development
/Languages
74 Requires: %{name}-libs = %{epoch}:%{version}
78 The Common UNIX Printing System provides a portable printing layer
for
79 UNIX® operating systems. It was developed by Easy Software Products
80 to promote a standard printing solution
for all UNIX vendors and users
81 and is now owned by Apple Inc. CUPS provides the System V and Berkeley
82 command-line interfaces.
85 The Common UNIX Printing System provides a portable printing layer
for
86 UNIX® operating systems. This is the development package
for creating
87 additional printer drivers and other CUPS services.
90 The Common UNIX Printing System provides a portable printing layer
for
91 UNIX® operating systems. This package contains the CUPS shared libraries.
94 The Common UNIX Printing System provides a portable printing layer
for
95 UNIX® operating systems. This package provides LPD client support.
98 The Common UNIX Printing System provides a portable printing layer
for
99 UNIX® operating systems. This package provides Danish support.
102 The Common UNIX Printing System provides a portable printing layer
for
103 UNIX® operating systems. This package provides German support.
106 The Common UNIX Printing System provides a portable printing layer
for
107 UNIX® operating systems. This package provides Spanish support.
110 The Common UNIX Printing System provides a portable printing layer
for
111 UNIX® operating systems. This package provides Estonian support.
114 The Common UNIX Printing System provides a portable printing layer
for
115 UNIX® operating systems. This package provides Finnish support.
118 The Common UNIX Printing System provides a portable printing layer
for
119 UNIX® operating systems. This package provides French support.
122 The Common UNIX Printing System provides a portable printing layer
for
123 UNIX® operating systems. This package provides Hebrew support.
126 The Common UNIX Printing System provides a portable printing layer
for
127 UNIX® operating systems. This package provides Italian support.
130 The Common UNIX Printing System provides a portable printing layer
for
131 UNIX® operating systems. This package provides Japanese support.
134 The Common UNIX Printing System provides a portable printing layer
for
135 UNIX® operating systems. This package provides Korean support.
138 The Common UNIX Printing System provides a portable printing layer
for
139 UNIX® operating systems. This package provides Dutch support.
142 The Common UNIX Printing System provides a portable printing layer
for
143 UNIX® operating systems. This package provides Norwegian support.
146 The Common UNIX Printing System provides a portable printing layer
for
147 UNIX® operating systems. This package provides Polish support.
150 The Common UNIX Printing System provides a portable printing layer
for
151 UNIX® operating systems. This package provides Portuguese support.
154 The Common UNIX Printing System provides a portable printing layer
for
155 UNIX® operating systems. This package provides Russian support.
158 The Common UNIX Printing System provides a portable printing layer
for
159 UNIX® operating systems. This package provides Swedish support.
162 The Common UNIX Printing System provides a portable printing layer
for
163 UNIX® operating systems. This package provides Chinese support.
165 %if %{?_with_php:1}%{!?_with_php:0}
167 The Common UNIX Printing System provides a portable printing layer
for
168 UNIX® operating systems. This package provides PHP support.
176 .
/configure
--enable-32bit
%{_dbus} %{_php} %{_static}
178 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
179 .
/configure
%{_dbus} %{_php} %{_static}
181 # If we got this far, all prerequisite libraries must be here.
185 # Make sure the RPM_BUILD_ROOT directory exists.
186 rm -rf $RPM_BUILD_ROOT
188 make BUILDROOT
=$RPM_BUILD_ROOT
install
191 /sbin
/chkconfig
--add cups
192 /sbin
/chkconfig cups on
194 # Restart cupsd if we are upgrading...
195 if test $
1 -gt
1; then
196 /sbin
/service cups stop
197 /sbin
/service cups start
205 /sbin
/service cups stop
206 /sbin
/chkconfig
--del cups
210 if test $
1 -ge
1; then
211 /sbin
/service cups stop
212 /sbin
/service cups start
219 rm -rf $RPM_BUILD_ROOT
222 %docdir /usr
/share
/doc
/cups
223 %defattr(-,root
,root
)
225 %config(noreplace
) /etc
/cups
/*.conf
226 /etc
/cups
/cupsd.conf.default
227 %dir /etc
/cups
/interfaces
231 %attr(0700,root
,root
) %dir /etc
/cups
/ssl
233 %if %{?_with_dbus:1}%{!?_with_dbus:0}
235 /etc
/dbus
-1/system.d
/*
242 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
243 # don't use Red Hat or Mandrake...
251 # OLD RedHat/Mandrake
269 %dir /usr
/lib
/cups
/backend
270 /usr
/lib
/cups
/backend
/http
271 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/ipp
272 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
273 /usr
/lib
/cups
/backend
/parallel
274 /usr
/lib
/cups
/backend
/scsi
275 /usr
/lib
/cups
/backend
/serial
276 /usr
/lib
/cups
/backend
/snmp
277 /usr
/lib
/cups
/backend
/socket
278 /usr
/lib
/cups
/backend
/usb
279 %dir /usr
/lib
/cups
/cgi
-bin
280 /usr
/lib
/cups
/cgi
-bin
/*
281 %dir /usr
/lib
/cups
/daemon
282 /usr
/lib
/cups
/daemon
/cups
-deviced
283 /usr
/lib
/cups
/daemon
/cups
-driverd
284 /usr
/lib
/cups
/daemon
/cups
-polld
285 %dir /usr
/lib
/cups
/driver
286 /usr
/lib
/cups
/driver
/drv
287 %dir /usr
/lib
/cups
/filter
288 /usr
/lib
/cups
/filter
/*
289 %dir /usr
/lib
/cups
/monitor
290 /usr
/lib
/cups
/monitor
/*
291 %dir /usr
/lib
/cups
/notifier
292 /usr
/lib
/cups
/notifier
/*
296 %dir /usr
/share
/cups
/banners
297 /usr
/share
/cups
/banners
/*
298 %dir /usr
/share
/cups
/charmaps
299 /usr
/share
/cups
/charmaps
/*
300 %dir /usr
/share
/cups
/charsets
301 /usr
/share
/cups
/charsets
/*
302 %dir /usr
/share
/cups
/data
303 /usr
/share
/cups
/data
/*
304 %dir /usr
/share
/cups
/drv
305 /usr
/share
/cups
/drv
/*
306 %dir /usr
/share
/cups
/fonts
307 /usr
/share
/cups
/fonts
/*
308 %dir /usr
/share
/cups
/model
309 %dir /usr
/share
/cups
/ppdc
310 /usr
/share
/cups
/ppdc
/*
311 %dir /usr
/share
/cups
/templates
312 /usr
/share
/cups
/templates
/*
313 %dir /usr
/share
/doc
/cups
314 /usr
/share
/doc
/cups
/*.
*
315 %dir /usr
/share
/doc
/cups
/help
316 /usr
/share
/doc
/cups
/help/accounting.html
317 /usr
/share
/doc
/cups
/help/cgi.html
318 /usr
/share
/doc
/cups
/help/glossary.html
319 /usr
/share
/doc
/cups
/help/kerberos.html
320 /usr
/share
/doc
/cups
/help/license.html
321 /usr
/share
/doc
/cups
/help/man
-*.html
322 /usr
/share
/doc
/cups
/help/network.html
323 /usr
/share
/doc
/cups
/help/options.html
324 /usr
/share
/doc
/cups
/help/overview.html
325 /usr
/share
/doc
/cups
/help/policies.html
326 /usr
/share
/doc
/cups
/help/ref
-*.html
327 /usr
/share
/doc
/cups
/help/security.html
328 /usr
/share
/doc
/cups
/help/standard.html
329 /usr
/share
/doc
/cups
/help/translation.html
330 /usr
/share
/doc
/cups
/help/whatsnew.html
331 %dir /usr
/share
/doc
/cups
/images
332 /usr
/share
/doc
/cups
/images
/*
335 %dir /usr
/share
/man
/man1
336 /usr
/share
/man
/man1
/cancel
.1.gz
337 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
338 /usr
/share
/man
/man1
/cupstestppd
.1.gz
339 /usr
/share
/man
/man1
/lp
.1.gz
340 /usr
/share
/man
/man1
/lpoptions
.1.gz
341 /usr
/share
/man
/man1
/lppasswd
.1.gz
342 /usr
/share
/man
/man1
/lpq
.1.gz
343 /usr
/share
/man
/man1
/lpr
.1.gz
344 /usr
/share
/man
/man1
/lprm
.1.gz
345 /usr
/share
/man
/man1
/lpstat
.1.gz
346 %dir /usr
/share
/man
/man5
347 /usr
/share
/man
/man5
/*.conf
.5.gz
348 /usr
/share
/man
/man5
/mime.
*.5.gz
349 %dir /usr
/share
/man
/man7
350 /usr
/share
/man
/man7
/commandto
*
351 /usr
/share
/man
/man7
/rasterto
*
352 %dir /usr
/share
/man
/man8
353 /usr
/share
/man
/man8
/accept
.8.gz
354 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
355 /usr
/share
/man
/man8
/cupsctl
.8.gz
356 /usr
/share
/man
/man8
/cupsfilter
.8.gz
357 /usr
/share
/man
/man8
/cupsd
.8.gz
358 /usr
/share
/man
/man8
/cupsdisable
.8.gz
359 /usr
/share
/man
/man8
/cupsenable
.8.gz
360 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
361 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
362 /usr
/share
/man
/man8
/cups
-polld
.8.gz
363 /usr
/share
/man
/man8
/lpadmin
.8.gz
364 /usr
/share
/man
/man8
/lpc
.8.gz
365 /usr
/share
/man
/man8
/lpinfo
.8.gz
366 /usr
/share
/man
/man8
/lpmove
.8.gz
367 /usr
/share
/man
/man8
/reject
.8.gz
370 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
373 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
374 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
375 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
378 /usr
/share
/applications
/*
382 %defattr(-,root
,root
)
383 %dir /usr
/share
/man
/man1
384 /usr
/share
/man
/man1
/cups
-config
.1.gz
385 /usr
/share
/man
/man1
/ppd
*.1.gz
386 %dir /usr
/share
/man
/man5
387 /usr
/share
/man
/man5
/ppdcfile
.5.gz
388 /usr
/share
/man
/man7
/backend
.7.gz
389 /usr
/share
/man
/man7
/filter
.7.gz
393 %dir /usr
/include
/cups
397 %if %{?_with_static:1}%{!?_with_static:0}
401 %dir /usr
/share
/doc
/cups
/help
402 /usr
/share
/doc
/cups
/help/api
*.html
403 /usr
/share
/doc
/cups
/help/spec
*.html
406 %defattr(-,root
,root
)
410 %defattr(-,root
,root
)
411 /etc
/xinetd.d
/cups
-lpd
413 %dir /usr
/lib
/cups
/daemon
414 /usr
/lib
/cups
/daemon
/cups
-lpd
415 %dir /usr
/share
/man
/man8
416 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
418 %if %{?_with_php:1}%{!?_with_php:0}
426 # End of "$Id: cups.spec.in 6889 2007-08-29 22:23:35Z mike $".