2 # "$Id: cups.spec.in 6960 2007-09-14 21:15:04Z 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
- Danish support
72 Group: System Environment
/Daemons
73 Requires: %{name} = %{epoch}:%{version}
76 Summary: Common UNIX Printing System
- German support
77 Group: System Environment
/Daemons
78 Requires: %{name} = %{epoch}:%{version}
81 Summary: Common UNIX Printing System
- Spanish support
82 Group: System Environment
/Daemons
83 Requires: %{name} = %{epoch}:%{version}
86 Summary: Common UNIX Printing System
- Estonian support
87 Group: System Environment
/Daemons
88 Requires: %{name} = %{epoch}:%{version}
91 Summary: Common UNIX Printing System
- Finnish support
92 Group: System Environment
/Daemons
93 Requires: %{name} = %{epoch}:%{version}
96 Summary: Common UNIX Printing System
- French support
97 Group: System Environment
/Daemons
98 Requires: %{name} = %{epoch}:%{version}
101 Summary: Common UNIX Printing System
- Hebrew support
102 Group: System Environment
/Daemons
103 Requires: %{name} = %{epoch}:%{version}
106 Summary: Common UNIX Printing System
- Italian support
107 Group: System Environment
/Daemons
108 Requires: %{name} = %{epoch}:%{version}
111 Summary: Common UNIX Printing System
- Japanese support
112 Group: System Environment
/Daemons
113 Requires: %{name} = %{epoch}:%{version}
116 Summary: Common UNIX Printing System
- Korean support
117 Group: System Environment
/Daemons
118 Requires: %{name} = %{epoch}:%{version}
121 Summary: Common UNIX Printing System
- Dutch support
122 Group: System Environment
/Daemons
123 Requires: %{name} = %{epoch}:%{version}
126 Summary: Common UNIX Printing System
- Nowegian support
127 Group: System Environment
/Daemons
128 Requires: %{name} = %{epoch}:%{version}
131 Summary: Common UNIX Printing System
- Polish support
132 Group: System Environment
/Daemons
133 Requires: %{name} = %{epoch}:%{version}
136 Summary: Common UNIX Printing System
- Portuguese support
137 Group: System Environment
/Daemons
138 Requires: %{name} = %{epoch}:%{version}
141 Summary: Common UNIX Printing System
- Russian support
142 Group: System Environment
/Daemons
143 Requires: %{name} = %{epoch}:%{version}
146 Summary: Common UNIX Printing System
- Swedish support
147 Group: System Environment
/Daemons
148 Requires: %{name} = %{epoch}:%{version}
151 Summary: Common UNIX Printing System
- Chinese support
152 Group: System Environment
/Daemons
153 Requires: %{name} = %{epoch}:%{version}
155 %if %{?_with_php:1}%{!?_with_php:0}
157 Summary: Common UNIX Printing System
- PHP support
158 Group: Development
/Languages
159 Requires: %{name}-libs = %{epoch}:%{version}
163 The Common UNIX Printing System provides a portable printing layer
for
164 UNIX® operating systems. It was developed by Easy Software Products
165 to promote a standard printing solution
for all UNIX vendors and users
166 and is now owned by Apple Inc. CUPS provides the System V and Berkeley
167 command-line interfaces.
170 The Common UNIX Printing System provides a portable printing layer
for
171 UNIX® operating systems. This is the development package
for creating
172 additional printer drivers and other CUPS services.
175 The Common UNIX Printing System provides a portable printing layer
for
176 UNIX® operating systems. This package contains the CUPS shared libraries.
179 The Common UNIX Printing System provides a portable printing layer
for
180 UNIX® operating systems. This package provides LPD client support.
183 The Common UNIX Printing System provides a portable printing layer
for
184 UNIX® operating systems. This package provides Danish support.
187 The Common UNIX Printing System provides a portable printing layer
for
188 UNIX® operating systems. This package provides German support.
191 The Common UNIX Printing System provides a portable printing layer
for
192 UNIX® operating systems. This package provides Spanish support.
195 The Common UNIX Printing System provides a portable printing layer
for
196 UNIX® operating systems. This package provides Estonian support.
199 The Common UNIX Printing System provides a portable printing layer
for
200 UNIX® operating systems. This package provides Finnish support.
203 The Common UNIX Printing System provides a portable printing layer
for
204 UNIX® operating systems. This package provides French support.
207 The Common UNIX Printing System provides a portable printing layer
for
208 UNIX® operating systems. This package provides Hebrew support.
211 The Common UNIX Printing System provides a portable printing layer
for
212 UNIX® operating systems. This package provides Italian support.
215 The Common UNIX Printing System provides a portable printing layer
for
216 UNIX® operating systems. This package provides Japanese support.
219 The Common UNIX Printing System provides a portable printing layer
for
220 UNIX® operating systems. This package provides Korean support.
223 The Common UNIX Printing System provides a portable printing layer
for
224 UNIX® operating systems. This package provides Dutch support.
227 The Common UNIX Printing System provides a portable printing layer
for
228 UNIX® operating systems. This package provides Norwegian support.
231 The Common UNIX Printing System provides a portable printing layer
for
232 UNIX® operating systems. This package provides Polish support.
235 The Common UNIX Printing System provides a portable printing layer
for
236 UNIX® operating systems. This package provides Portuguese support.
239 The Common UNIX Printing System provides a portable printing layer
for
240 UNIX® operating systems. This package provides Russian support.
243 The Common UNIX Printing System provides a portable printing layer
for
244 UNIX® operating systems. This package provides Swedish support.
247 The Common UNIX Printing System provides a portable printing layer
for
248 UNIX® operating systems. This package provides Chinese support.
250 %if %{?_with_php:1}%{!?_with_php:0}
252 The Common UNIX Printing System provides a portable printing layer
for
253 UNIX® operating systems. This package provides PHP support.
261 .
/configure
--enable-32bit
%{_dbus} %{_php} %{_static}
263 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
264 .
/configure
%{_dbus} %{_php} %{_static}
266 # If we got this far, all prerequisite libraries must be here.
270 # Make sure the RPM_BUILD_ROOT directory exists.
271 rm -rf $RPM_BUILD_ROOT
273 make BUILDROOT
=$RPM_BUILD_ROOT
install
276 /sbin
/chkconfig
--add cups
277 /sbin
/chkconfig cups on
279 # Restart cupsd if we are upgrading...
280 if test $
1 -gt
1; then
281 /sbin
/service cups stop
282 /sbin
/service cups start
290 /sbin
/service cups stop
291 /sbin
/chkconfig
--del cups
295 if test $
1 -ge
1; then
296 /sbin
/service cups stop
297 /sbin
/service cups start
304 rm -rf $RPM_BUILD_ROOT
307 %docdir /usr
/share
/doc
/cups
308 %defattr(-,root
,root
)
310 %config(noreplace
) /etc
/cups
/*.conf
311 /etc
/cups
/cupsd.conf.default
312 %dir /etc
/cups
/interfaces
316 %attr(0700,root
,root
) %dir /etc
/cups
/ssl
318 %if %{?_with_dbus:1}%{!?_with_dbus:0}
320 /etc
/dbus
-1/system.d
/*
327 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
328 # don't use Red Hat or Mandrake...
336 # OLD RedHat/Mandrake
354 %dir /usr
/lib
/cups
/backend
355 /usr
/lib
/cups
/backend
/http
356 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/ipp
357 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
358 /usr
/lib
/cups
/backend
/parallel
359 /usr
/lib
/cups
/backend
/scsi
360 /usr
/lib
/cups
/backend
/serial
361 /usr
/lib
/cups
/backend
/snmp
362 /usr
/lib
/cups
/backend
/socket
363 /usr
/lib
/cups
/backend
/usb
364 %dir /usr
/lib
/cups
/cgi
-bin
365 /usr
/lib
/cups
/cgi
-bin
/*
366 %dir /usr
/lib
/cups
/daemon
367 /usr
/lib
/cups
/daemon
/cups
-deviced
368 /usr
/lib
/cups
/daemon
/cups
-driverd
369 /usr
/lib
/cups
/daemon
/cups
-polld
370 %dir /usr
/lib
/cups
/driver
371 %dir /usr
/lib
/cups
/filter
372 /usr
/lib
/cups
/filter
/*
373 %dir /usr
/lib
/cups
/monitor
374 /usr
/lib
/cups
/monitor
/*
375 %dir /usr
/lib
/cups
/notifier
376 /usr
/lib
/cups
/notifier
/*
380 %dir /usr
/share
/cups
/banners
381 /usr
/share
/cups
/banners
/*
382 %dir /usr
/share
/cups
/charmaps
383 /usr
/share
/cups
/charmaps
/*
384 %dir /usr
/share
/cups
/charsets
385 /usr
/share
/cups
/charsets
/*
386 %dir /usr
/share
/cups
/data
387 /usr
/share
/cups
/data
/*
388 %dir /usr
/share
/cups
/fonts
389 /usr
/share
/cups
/fonts
/*
390 %dir /usr
/share
/cups
/model
391 /usr
/share
/cups
/model
/*
392 %dir /usr
/share
/cups
/templates
393 /usr
/share
/cups
/templates
/*.tmpl
394 %dir /usr
/share
/doc
/cups
395 /usr
/share
/doc
/cups
/*.
*
396 %dir /usr
/share
/doc
/cups
/help
397 /usr
/share
/doc
/cups
/help/accounting.html
398 /usr
/share
/doc
/cups
/help/cgi.html
399 /usr
/share
/doc
/cups
/help/glossary.html
400 /usr
/share
/doc
/cups
/help/kerberos.html
401 /usr
/share
/doc
/cups
/help/license.html
402 /usr
/share
/doc
/cups
/help/man
-*.html
403 /usr
/share
/doc
/cups
/help/network.html
404 /usr
/share
/doc
/cups
/help/options.html
405 /usr
/share
/doc
/cups
/help/overview.html
406 /usr
/share
/doc
/cups
/help/policies.html
407 /usr
/share
/doc
/cups
/help/ref
-*.html
408 /usr
/share
/doc
/cups
/help/security.html
409 /usr
/share
/doc
/cups
/help/standard.html
410 /usr
/share
/doc
/cups
/help/translation.html
411 /usr
/share
/doc
/cups
/help/whatsnew.html
412 %dir /usr
/share
/doc
/cups
/images
413 /usr
/share
/doc
/cups
/images
/*
415 %dir /usr
/share
/man
/man1
416 /usr
/share
/man
/man1
/cancel
.1.gz
417 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
418 /usr
/share
/man
/man1
/cupstestppd
.1.gz
419 /usr
/share
/man
/man1
/lp
.1.gz
420 /usr
/share
/man
/man1
/lpoptions
.1.gz
421 /usr
/share
/man
/man1
/lppasswd
.1.gz
422 /usr
/share
/man
/man1
/lpq
.1.gz
423 /usr
/share
/man
/man1
/lpr
.1.gz
424 /usr
/share
/man
/man1
/lprm
.1.gz
425 /usr
/share
/man
/man1
/lpstat
.1.gz
426 %dir /usr
/share
/man
/man5
427 /usr
/share
/man
/man5
/*
428 %dir /usr
/share
/man
/man8
429 /usr
/share
/man
/man8
/accept
.8.gz
430 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
431 /usr
/share
/man
/man8
/cupsctl
.8.gz
432 /usr
/share
/man
/man8
/cupsfilter
.8.gz
433 /usr
/share
/man
/man8
/cupsd
.8.gz
434 /usr
/share
/man
/man8
/cupsdisable
.8.gz
435 /usr
/share
/man
/man8
/cupsenable
.8.gz
436 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
437 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
438 /usr
/share
/man
/man8
/cups
-polld
.8.gz
439 /usr
/share
/man
/man8
/lpadmin
.8.gz
440 /usr
/share
/man
/man8
/lpc
.8.gz
441 /usr
/share
/man
/man8
/lpinfo
.8.gz
442 /usr
/share
/man
/man8
/lpmove
.8.gz
443 /usr
/share
/man
/man8
/reject
.8.gz
446 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
449 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
450 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
451 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
454 /usr
/share
/applications
/*
458 %defattr(-,root
,root
)
459 %dir /usr
/share
/man
/man1
460 /usr
/share
/man
/man1
/cups
-config
.1.gz
461 %dir /usr
/share
/man
/man7
462 /usr
/share
/man
/man7
/*
465 %dir /usr
/include
/cups
469 %if %{?_with_static:1}%{!?_with_static:0}
473 %dir /usr
/share
/doc
/cups
/help
474 /usr
/share
/doc
/cups
/help/api
*.html
475 /usr
/share
/doc
/cups
/help/spec
*.html
478 %defattr(-,root
,root
)
482 %defattr(-,root
,root
)
483 /etc
/xinetd.d
/cups
-lpd
485 %dir /usr
/lib
/cups
/daemon
486 /usr
/lib
/cups
/daemon
/cups
-lpd
487 %dir /usr
/share
/man
/man8
488 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
491 %defattr(-,root
,root
)
492 /usr
/share
/locale
/da
/cups_da.po
495 %defattr(-,root
,root
)
496 %dir /usr
/share
/doc
/cups
/de
497 /usr
/share
/doc
/cups
/de
/index.html
498 %dir /usr
/share
/doc
/cups
/de
/images
499 /usr
/share
/doc
/cups
/de
/images
/*
500 %dir /usr
/share
/cups
/templates
/de
501 /usr
/share
/cups
/templates
/de
/*
502 /usr
/share
/locale
/de
/cups_de.po
505 %defattr(-,root
,root
)
506 %dir /usr
/share
/doc
/cups
/es
507 /usr
/share
/doc
/cups
/es
/index.html
508 %dir /usr
/share
/doc
/cups
/es
/images
509 /usr
/share
/doc
/cups
/es
/images
/*
510 %dir /usr
/share
/cups
/templates
/es
511 /usr
/share
/cups
/templates
/es
/*
512 /usr
/share
/locale
/es
/cups_es.po
515 %defattr(-,root
,root
)
516 %dir /usr
/share
/doc
/cups
/et
517 /usr
/share
/doc
/cups
/et
/index.html
518 %dir /usr
/share
/doc
/cups
/et
/images
519 /usr
/share
/doc
/cups
/et
/images
/*
520 %dir /usr
/share
/cups
/templates
/et
521 /usr
/share
/cups
/templates
/et
/*
522 /usr
/share
/locale
/et
/cups_et.po
525 %defattr(-,root
,root
)
526 /usr
/share
/locale
/fi/cups_fi.po
529 %defattr(-,root
,root
)
530 %dir /usr
/share
/doc
/cups
/fr
531 /usr
/share
/doc
/cups
/fr
/index.html
532 %dir /usr
/share
/doc
/cups
/fr
/images
533 /usr
/share
/doc
/cups
/fr
/images
/*
534 %dir /usr
/share
/cups
/templates
/fr
535 /usr
/share
/cups
/templates
/fr
/*
536 /usr
/share
/locale
/fr
/cups_fr.po
539 %defattr(-,root
,root
)
540 %dir /usr
/share
/doc
/cups
/he
541 /usr
/share
/doc
/cups
/he
/index.html
542 /usr
/share
/doc
/cups
/he
/cups.css
543 %dir /usr
/share
/doc
/cups
/he
/images
544 /usr
/share
/doc
/cups
/he
/images
/*
545 %dir /usr
/share
/cups
/templates
/he
546 /usr
/share
/cups
/templates
/he
/*
547 /usr
/share
/locale
/he
/cups_he.po
550 %defattr(-,root
,root
)
551 %dir /usr
/share
/doc
/cups
/it
552 /usr
/share
/doc
/cups
/it
/index.html
553 %dir /usr
/share
/doc
/cups
/it
/images
554 /usr
/share
/doc
/cups
/it
/images
/*
555 %dir /usr
/share
/cups
/templates
/it
556 /usr
/share
/cups
/templates
/it
/*
557 /usr
/share
/locale
/it
/cups_it.po
560 %defattr(-,root
,root
)
561 %dir /usr
/share
/doc
/cups
/ja
562 /usr
/share
/doc
/cups
/ja
/index.html
563 %dir /usr
/share
/doc
/cups
/ja
/images
564 /usr
/share
/doc
/cups
/ja
/images
/*
565 %dir /usr
/share
/cups
/templates
/ja
566 /usr
/share
/cups
/templates
/ja
/*
567 /usr
/share
/locale
/ja
/cups_ja.po
570 %defattr(-,root
,root
)
571 /usr
/share
/locale
/ko
/cups_ko.po
574 %defattr(-,root
,root
)
575 /usr
/share
/locale
/nl
/cups_nl.po
578 %defattr(-,root
,root
)
579 /usr
/share
/locale
/no
/cups_no.po
582 %defattr(-,root
,root
)
583 %dir /usr
/share
/doc
/cups
/pl
584 /usr
/share
/doc
/cups
/pl
/index.html
585 %dir /usr
/share
/doc
/cups
/pl
/images
586 /usr
/share
/doc
/cups
/pl
/images
/*
587 %dir /usr
/share
/cups
/templates
/pl
588 /usr
/share
/cups
/templates
/pl
/*
589 /usr
/share
/locale
/pl
/cups_pl.po
592 %defattr(-,root
,root
)
593 /usr
/share
/locale
/pt
/cups_pt.po
594 /usr
/share
/locale
/pt_BR
/cups_pt_BR.po
597 %defattr(-,root
,root
)
598 /usr
/share
/locale
/ru
/cups_ru.po
601 %defattr(-,root
,root
)
602 %dir /usr
/share
/doc
/cups
/sv
603 /usr
/share
/doc
/cups
/sv
/index.html
604 %dir /usr
/share
/doc
/cups
/sv
/images
605 /usr
/share
/doc
/cups
/sv
/images
/*
606 %dir /usr
/share
/cups
/templates
/sv
607 /usr
/share
/cups
/templates
/sv
/*
608 /usr
/share
/locale
/sv
/cups_sv.po
611 %defattr(-,root
,root
)
612 %dir /usr
/share
/doc
/cups
/zh_TW
613 /usr
/share
/doc
/cups
/zh_TW
/index.html
614 %dir /usr
/share
/doc
/cups
/zh_TW
/images
615 /usr
/share
/doc
/cups
/zh_TW
/images
/*
616 %dir /usr
/share
/cups
/templates
/zh_TW
617 /usr
/share
/cups
/templates
/zh_TW
/*
618 /usr
/share
/locale
/zh
/cups_zh.po
619 /usr
/share
/locale
/zh_TW
/cups_zh_TW.po
621 %if %{?_with_php:1}%{!?_with_php:0}
629 # End of "$Id: cups.spec.in 6960 2007-09-14 21:15:04Z mike $".