2 # "$Id: cups.spec.in 6649 2007-07-11 21:46:42Z mike $"
4 # RPM "spec" file for the Common UNIX Printing System (CUPS).
6 # Original version by Jason McMullan <jmcc@ontv.com>.
8 # Copyright 2007 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
71 Summary: Common UNIX Printing System
- German support
72 Group: System Environment
/Daemons
73 Requires: %{name} = %{epoch}:%{version}
76 Summary: Common UNIX Printing System
- Spanish support
77 Group: System Environment
/Daemons
78 Requires: %{name} = %{epoch}:%{version}
81 Summary: Common UNIX Printing System
- Estonian support
82 Group: System Environment
/Daemons
83 Requires: %{name} = %{epoch}:%{version}
86 Summary: Common UNIX Printing System
- French support
87 Group: System Environment
/Daemons
88 Requires: %{name} = %{epoch}:%{version}
91 Summary: Common UNIX Printing System
- Hebrew support
92 Group: System Environment
/Daemons
93 Requires: %{name} = %{epoch}:%{version}
96 Summary: Common UNIX Printing System
- Italian support
97 Group: System Environment
/Daemons
98 Requires: %{name} = %{epoch}:%{version}
101 Summary: Common UNIX Printing System
- Japanese support
102 Group: System Environment
/Daemons
103 Requires: %{name} = %{epoch}:%{version}
106 Summary: Common UNIX Printing System
- Polish support
107 Group: System Environment
/Daemons
108 Requires: %{name} = %{epoch}:%{version}
111 Summary: Common UNIX Printing System
- Swedish support
112 Group: System Environment
/Daemons
113 Requires: %{name} = %{epoch}:%{version}
116 Summary: Common UNIX Printing System
- Chinese support
117 Group: System Environment
/Daemons
118 Requires: %{name} = %{epoch}:%{version}
120 %if %{?_with_php:1}%{!?_with_php:0}
122 Summary: Common UNIX Printing System
- PHP support
123 Group: Development
/Languages
124 Requires: %{name}-libs = %{epoch}:%{version}
128 The Common UNIX Printing System provides a portable printing layer
for
129 UNIX® operating systems. It was developed by Easy Software Products
130 to promote a standard printing solution
for all UNIX vendors and users
131 and is now owned by Apple Inc. CUPS provides the System V and Berkeley
132 command-line interfaces.
135 The Common UNIX Printing System provides a portable printing layer
for
136 UNIX® operating systems. This is the development package
for creating
137 additional printer drivers and other CUPS services.
140 The Common UNIX Printing System provides a portable printing layer
for
141 UNIX® operating systems. This package contains the CUPS shared libraries.
144 The Common UNIX Printing System provides a portable printing layer
for
145 UNIX® operating systems. This package provides LPD client support.
148 The Common UNIX Printing System provides a portable printing layer
for
149 UNIX® operating systems. This package provides German support.
152 The Common UNIX Printing System provides a portable printing layer
for
153 UNIX® operating systems. This package provides Spanish support.
156 The Common UNIX Printing System provides a portable printing layer
for
157 UNIX® operating systems. This package provides Estonian support.
160 The Common UNIX Printing System provides a portable printing layer
for
161 UNIX® operating systems. This package provides French support.
164 The Common UNIX Printing System provides a portable printing layer
for
165 UNIX® operating systems. This package provides Hebrew support.
168 The Common UNIX Printing System provides a portable printing layer
for
169 UNIX® operating systems. This package provides Italian support.
172 The Common UNIX Printing System provides a portable printing layer
for
173 UNIX® operating systems. This package provides Japanese support.
176 The Common UNIX Printing System provides a portable printing layer
for
177 UNIX® operating systems. This package provides Polish support.
180 The Common UNIX Printing System provides a portable printing layer
for
181 UNIX® operating systems. This package provides Swedish support.
184 The Common UNIX Printing System provides a portable printing layer
for
185 UNIX® operating systems. This package provides Chinese support.
187 %if %{?_with_php:1}%{!?_with_php:0}
189 The Common UNIX Printing System provides a portable printing layer
for
190 UNIX® operating systems. This package provides PHP support.
198 .
/configure
--enable-32bit
%{_dbus} %{_php} %{_static}
200 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
201 .
/configure
%{_dbus} %{_php} %{_static}
203 # If we got this far, all prerequisite libraries must be here.
207 # Make sure the RPM_BUILD_ROOT directory exists.
208 rm -rf $RPM_BUILD_ROOT
210 make BUILDROOT
=$RPM_BUILD_ROOT
install
213 /sbin
/chkconfig
--add cups
214 /sbin
/chkconfig cups on
216 # Restart cupsd if we are upgrading...
217 if test $
1 -gt
1; then
218 /sbin
/service cups stop
219 /sbin
/service cups start
227 /sbin
/service cups stop
228 /sbin
/chkconfig
--del cups
232 if test $
1 -ge
1; then
233 /sbin
/service cups stop
234 /sbin
/service cups start
241 rm -rf $RPM_BUILD_ROOT
244 %docdir /usr
/share
/doc
/cups
245 %defattr(-,root
,root
)
247 %config(noreplace
) /etc
/cups
/*.conf
248 /etc
/cups
/cupsd.conf.default
249 %dir /etc
/cups
/interfaces
253 %attr(0700,root
,root
) %dir /etc
/cups
/ssl
255 %if %{?_with_dbus:1}%{!?_with_dbus:0}
257 /etc
/dbus
-1/system.d
/*
264 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
265 # don't use Red Hat or Mandrake...
273 # OLD RedHat/Mandrake
291 %dir /usr
/lib
/cups
/backend
292 /usr
/lib
/cups
/backend
/http
293 /usr
/lib
/cups
/backend
/ipp
294 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
295 /usr
/lib
/cups
/backend
/parallel
296 /usr
/lib
/cups
/backend
/scsi
297 /usr
/lib
/cups
/backend
/serial
298 /usr
/lib
/cups
/backend
/snmp
299 /usr
/lib
/cups
/backend
/socket
300 /usr
/lib
/cups
/backend
/usb
301 %dir /usr
/lib
/cups
/cgi
-bin
302 /usr
/lib
/cups
/cgi
-bin
/*
303 %dir /usr
/lib
/cups
/daemon
304 /usr
/lib
/cups
/daemon
/cups
-deviced
305 /usr
/lib
/cups
/daemon
/cups
-driverd
306 /usr
/lib
/cups
/daemon
/cups
-polld
307 %dir /usr
/lib
/cups
/driver
308 %dir /usr
/lib
/cups
/filter
309 /usr
/lib
/cups
/filter
/*
310 %dir /usr
/lib
/cups
/monitor
311 /usr
/lib
/cups
/monitor
/*
312 %dir /usr
/lib
/cups
/notifier
313 /usr
/lib
/cups
/notifier
/*
317 %dir /usr
/share
/cups
/banners
318 /usr
/share
/cups
/banners
/*
319 %dir /usr
/share
/cups
/charmaps
320 /usr
/share
/cups
/charmaps
/*
321 %dir /usr
/share
/cups
/charsets
322 /usr
/share
/cups
/charsets
/*
323 %dir /usr
/share
/cups
/data
324 /usr
/share
/cups
/data
/*
325 %dir /usr
/share
/cups
/fonts
326 /usr
/share
/cups
/fonts
/*
327 %dir /usr
/share
/cups
/model
328 /usr
/share
/cups
/model
/*
329 %dir /usr
/share
/cups
/templates
330 /usr
/share
/cups
/templates
/*.tmpl
331 %dir /usr
/share
/doc
/cups
332 /usr
/share
/doc
/cups
/*.
*
333 %dir /usr
/share
/doc
/cups
/help
334 /usr
/share
/doc
/cups
/help/accounting.html
335 /usr
/share
/doc
/cups
/help/cgi.html
336 /usr
/share
/doc
/cups
/help/glossary.html
337 /usr
/share
/doc
/cups
/help/license.html
338 /usr
/share
/doc
/cups
/help/man
-*.html
339 /usr
/share
/doc
/cups
/help/network.html
340 /usr
/share
/doc
/cups
/help/options.html
341 /usr
/share
/doc
/cups
/help/overview.html
342 /usr
/share
/doc
/cups
/help/policies.html
343 /usr
/share
/doc
/cups
/help/ref
-*.html
344 /usr
/share
/doc
/cups
/help/security.html
345 /usr
/share
/doc
/cups
/help/standard.html
346 /usr
/share
/doc
/cups
/help/translation.html
347 /usr
/share
/doc
/cups
/help/whatsnew.html
348 %dir /usr
/share
/doc
/cups
/images
349 /usr
/share
/doc
/cups
/images
/*
351 %dir /usr
/share
/man
/man1
352 /usr
/share
/man
/man1
/cancel
.1.gz
353 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
354 /usr
/share
/man
/man1
/cupstestppd
.1.gz
355 /usr
/share
/man
/man1
/lp
.1.gz
356 /usr
/share
/man
/man1
/lpoptions
.1.gz
357 /usr
/share
/man
/man1
/lppasswd
.1.gz
358 /usr
/share
/man
/man1
/lpq
.1.gz
359 /usr
/share
/man
/man1
/lpr
.1.gz
360 /usr
/share
/man
/man1
/lprm
.1.gz
361 /usr
/share
/man
/man1
/lpstat
.1.gz
362 %dir /usr
/share
/man
/man5
363 /usr
/share
/man
/man5
/*
364 %dir /usr
/share
/man
/man8
365 /usr
/share
/man
/man8
/accept
.8.gz
366 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
367 /usr
/share
/man
/man8
/cupsctl
.8.gz
368 /usr
/share
/man
/man8
/cupsd
.8.gz
369 /usr
/share
/man
/man8
/cupsdisable
.8.gz
370 /usr
/share
/man
/man8
/cupsenable
.8.gz
371 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
372 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
373 /usr
/share
/man
/man8
/cups
-polld
.8.gz
374 /usr
/share
/man
/man8
/lpadmin
.8.gz
375 /usr
/share
/man
/man8
/lpc
.8.gz
376 /usr
/share
/man
/man8
/lpinfo
.8.gz
377 /usr
/share
/man
/man8
/lpmove
.8.gz
378 /usr
/share
/man
/man8
/reject
.8.gz
381 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
384 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
385 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
386 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
389 /usr
/share
/applications
/*
393 %defattr(-,root
,root
)
394 %dir /usr
/share
/man
/man1
395 /usr
/share
/man
/man1
/cups
-config
.1.gz
396 %dir /usr
/share
/man
/man7
397 /usr
/share
/man
/man7
/*
400 %dir /usr
/include
/cups
404 %if %{?_with_static:1}%{!?_with_static:0}
408 %dir /usr
/share
/doc
/cups
/help
409 /usr
/share
/doc
/cups
/help/api
*.html
410 /usr
/share
/doc
/cups
/help/spec
*.html
413 %defattr(-,root
,root
)
417 %defattr(-,root
,root
)
418 /etc
/xinetd.d
/cups
-lpd
420 %dir /usr
/lib
/cups
/daemon
421 /usr
/lib
/cups
/daemon
/cups
-lpd
422 %dir /usr
/share
/man
/man8
423 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
426 %defattr(-,root
,root
)
427 %dir /usr
/share
/doc
/cups
/de
428 /usr
/share
/doc
/cups
/de
/index.html
429 %dir /usr
/share
/doc
/cups
/de
/images
430 /usr
/share
/doc
/cups
/de
/images
/*
431 %dir /usr
/share
/cups
/templates
/de
432 /usr
/share
/cups
/templates
/de
/*
433 /usr
/share
/locale
/de
/cups_de.po
436 %defattr(-,root
,root
)
437 %dir /usr
/share
/doc
/cups
/es
438 /usr
/share
/doc
/cups
/es
/index.html
439 %dir /usr
/share
/doc
/cups
/es
/images
440 /usr
/share
/doc
/cups
/es
/images
/*
441 %dir /usr
/share
/cups
/templates
/es
442 /usr
/share
/cups
/templates
/es
/*
443 /usr
/share
/locale
/es
/cups_es.po
446 %defattr(-,root
,root
)
447 %dir /usr
/share
/doc
/cups
/et
448 /usr
/share
/doc
/cups
/et
/index.html
449 %dir /usr
/share
/doc
/cups
/et
/images
450 /usr
/share
/doc
/cups
/et
/images
/*
451 %dir /usr
/share
/cups
/templates
/et
452 /usr
/share
/cups
/templates
/et
/*
453 /usr
/share
/locale
/et
/cups_et.po
456 %defattr(-,root
,root
)
457 %dir /usr
/share
/doc
/cups
/fr
458 /usr
/share
/doc
/cups
/fr
/index.html
459 %dir /usr
/share
/doc
/cups
/fr
/images
460 /usr
/share
/doc
/cups
/fr
/images
/*
461 %dir /usr
/share
/cups
/templates
/fr
462 /usr
/share
/cups
/templates
/fr
/*
463 /usr
/share
/locale
/fr
/cups_fr.po
466 %defattr(-,root
,root
)
467 %dir /usr
/share
/doc
/cups
/he
468 /usr
/share
/doc
/cups
/he
/index.html
469 /usr
/share
/doc
/cups
/he
/cups.css
470 %dir /usr
/share
/doc
/cups
/he
/images
471 /usr
/share
/doc
/cups
/he
/images
/*
472 %dir /usr
/share
/cups
/templates
/he
473 /usr
/share
/cups
/templates
/he
/*
474 /usr
/share
/locale
/he
/cups_he.po
477 %defattr(-,root
,root
)
478 %dir /usr
/share
/doc
/cups
/it
479 /usr
/share
/doc
/cups
/it
/index.html
480 %dir /usr
/share
/doc
/cups
/it
/images
481 /usr
/share
/doc
/cups
/it
/images
/*
482 %dir /usr
/share
/cups
/templates
/it
483 /usr
/share
/cups
/templates
/it
/*
484 /usr
/share
/locale
/it
/cups_it.po
487 %defattr(-,root
,root
)
488 %dir /usr
/share
/doc
/cups
/ja
489 /usr
/share
/doc
/cups
/ja
/index.html
490 %dir /usr
/share
/doc
/cups
/ja
/images
491 /usr
/share
/doc
/cups
/ja
/images
/*
492 %dir /usr
/share
/cups
/templates
/ja
493 /usr
/share
/cups
/templates
/ja
/*
494 /usr
/share
/locale
/ja
/cups_ja.po
497 %defattr(-,root
,root
)
498 %dir /usr
/share
/doc
/cups
/pl
499 /usr
/share
/doc
/cups
/pl
/index.html
500 %dir /usr
/share
/doc
/cups
/pl
/images
501 /usr
/share
/doc
/cups
/pl
/images
/*
502 %dir /usr
/share
/cups
/templates
/pl
503 /usr
/share
/cups
/templates
/pl
/*
504 /usr
/share
/locale
/pl
/cups_pl.po
507 %defattr(-,root
,root
)
508 %dir /usr
/share
/doc
/cups
/sv
509 /usr
/share
/doc
/cups
/sv
/index.html
510 %dir /usr
/share
/doc
/cups
/sv
/images
511 /usr
/share
/doc
/cups
/sv
/images
/*
512 %dir /usr
/share
/cups
/templates
/sv
513 /usr
/share
/cups
/templates
/sv
/*
514 /usr
/share
/locale
/sv
/cups_sv.po
517 %defattr(-,root
,root
)
518 %dir /usr
/share
/doc
/cups
/zh_TW
519 /usr
/share
/doc
/cups
/zh_TW
/index.html
520 %dir /usr
/share
/doc
/cups
/zh_TW
/images
521 /usr
/share
/doc
/cups
/zh_TW
/images
/*
522 %dir /usr
/share
/cups
/templates
/zh_TW
523 /usr
/share
/cups
/templates
/zh_TW
/*
524 /usr
/share
/locale
/zh_TW
/cups_zh_TW.po
526 %if %{?_with_php:1}%{!?_with_php:0}
534 # End of "$Id: cups.spec.in 6649 2007-07-11 21:46:42Z mike $".