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
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 /usr
/lib
/cups
/driver
/drv
372 %dir /usr
/lib
/cups
/filter
373 /usr
/lib
/cups
/filter
/*
374 %dir /usr
/lib
/cups
/monitor
375 /usr
/lib
/cups
/monitor
/*
376 %dir /usr
/lib
/cups
/notifier
377 /usr
/lib
/cups
/notifier
/*
381 %dir /usr
/share
/cups
/banners
382 /usr
/share
/cups
/banners
/*
383 %dir /usr
/share
/cups
/charmaps
384 /usr
/share
/cups
/charmaps
/*
385 %dir /usr
/share
/cups
/charsets
386 /usr
/share
/cups
/charsets
/*
387 %dir /usr
/share
/cups
/data
388 /usr
/share
/cups
/data
/*
389 %dir /usr
/share
/cups
/fonts
390 /usr
/share
/cups
/fonts
/*
391 %dir /usr
/share
/cups
/model
392 /usr
/share
/cups
/model
/*
393 %dir /usr
/share
/cups
/ppdc
394 /usr
/share
/cups
/ppdc
/*
395 %dir /usr
/share
/cups
/templates
396 /usr
/share
/cups
/templates
/*.tmpl
397 %dir /usr
/share
/doc
/cups
398 /usr
/share
/doc
/cups
/*.
*
399 %dir /usr
/share
/doc
/cups
/help
400 /usr
/share
/doc
/cups
/help/accounting.html
401 /usr
/share
/doc
/cups
/help/cgi.html
402 /usr
/share
/doc
/cups
/help/glossary.html
403 /usr
/share
/doc
/cups
/help/kerberos.html
404 /usr
/share
/doc
/cups
/help/license.html
405 /usr
/share
/doc
/cups
/help/man
-*.html
406 /usr
/share
/doc
/cups
/help/network.html
407 /usr
/share
/doc
/cups
/help/options.html
408 /usr
/share
/doc
/cups
/help/overview.html
409 /usr
/share
/doc
/cups
/help/policies.html
410 /usr
/share
/doc
/cups
/help/ref
-*.html
411 /usr
/share
/doc
/cups
/help/security.html
412 /usr
/share
/doc
/cups
/help/standard.html
413 /usr
/share
/doc
/cups
/help/translation.html
414 /usr
/share
/doc
/cups
/help/whatsnew.html
415 %dir /usr
/share
/doc
/cups
/images
416 /usr
/share
/doc
/cups
/images
/*
418 %dir /usr
/share
/man
/man1
419 /usr
/share
/man
/man1
/cancel
.1.gz
420 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
421 /usr
/share
/man
/man1
/cupstestppd
.1.gz
422 /usr
/share
/man
/man1
/lp
.1.gz
423 /usr
/share
/man
/man1
/lpoptions
.1.gz
424 /usr
/share
/man
/man1
/lppasswd
.1.gz
425 /usr
/share
/man
/man1
/lpq
.1.gz
426 /usr
/share
/man
/man1
/lpr
.1.gz
427 /usr
/share
/man
/man1
/lprm
.1.gz
428 /usr
/share
/man
/man1
/lpstat
.1.gz
429 %dir /usr
/share
/man
/man5
430 /usr
/share
/man
/man5
/*.conf
.5.gz
431 /usr
/share
/man
/man5
/mime.
*.5.gz
432 %dir /usr
/share
/man
/man7
433 /usr
/share
/man
/man7
/commandto
*
434 /usr
/share
/man
/man7
/rasterto
*
435 %dir /usr
/share
/man
/man8
436 /usr
/share
/man
/man8
/accept
.8.gz
437 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
438 /usr
/share
/man
/man8
/cupsctl
.8.gz
439 /usr
/share
/man
/man8
/cupsfilter
.8.gz
440 /usr
/share
/man
/man8
/cupsd
.8.gz
441 /usr
/share
/man
/man8
/cupsdisable
.8.gz
442 /usr
/share
/man
/man8
/cupsenable
.8.gz
443 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
444 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
445 /usr
/share
/man
/man8
/cups
-polld
.8.gz
446 /usr
/share
/man
/man8
/lpadmin
.8.gz
447 /usr
/share
/man
/man8
/lpc
.8.gz
448 /usr
/share
/man
/man8
/lpinfo
.8.gz
449 /usr
/share
/man
/man8
/lpmove
.8.gz
450 /usr
/share
/man
/man8
/reject
.8.gz
453 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
456 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
457 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
458 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
461 /usr
/share
/applications
/*
465 %defattr(-,root
,root
)
466 %dir /usr
/share
/man
/man1
467 /usr
/share
/man
/man1
/cups
-config
.1.gz
468 /usr
/share
/man
/man1
/ppd
*.1.gz
469 %dir /usr
/share
/man
/man5
470 /usr
/share
/man
/man5
/ppdcfile
.5.gz
471 /usr
/share
/man
/man7
/backend
.7.gz
472 /usr
/share
/man
/man7
/filter
.7.gz
476 %dir /usr
/include
/cups
480 %if %{?_with_static:1}%{!?_with_static:0}
484 %dir /usr
/share
/doc
/cups
/help
485 /usr
/share
/doc
/cups
/help/api
*.html
486 /usr
/share
/doc
/cups
/help/spec
*.html
489 %defattr(-,root
,root
)
493 %defattr(-,root
,root
)
494 /etc
/xinetd.d
/cups
-lpd
496 %dir /usr
/lib
/cups
/daemon
497 /usr
/lib
/cups
/daemon
/cups
-lpd
498 %dir /usr
/share
/man
/man8
499 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
502 %defattr(-,root
,root
)
503 /usr
/share
/locale
/da
/*
506 %defattr(-,root
,root
)
507 #%dir /usr/share/doc/cups/de
508 #/usr/share/doc/cups/de/index.html
509 #%dir /usr/share/cups/templates/de
510 #/usr/share/cups/templates/de/*
511 /usr
/share
/locale
/de
/*
514 %defattr(-,root
,root
)
515 #%dir /usr/share/doc/cups/es
516 #/usr/share/doc/cups/es/index.html
517 #%dir /usr/share/cups/templates/es
518 #/usr/share/cups/templates/es/*
519 /usr
/share
/locale
/es
/*
522 %defattr(-,root
,root
)
523 #%dir /usr/share/doc/cups/et
524 #/usr/share/doc/cups/et/index.html
525 #%dir /usr/share/cups/templates/et
526 #/usr/share/cups/templates/et/*
527 /usr
/share
/locale
/et
/*
530 %defattr(-,root
,root
)
531 /usr
/share
/locale
/fi/*
534 %defattr(-,root
,root
)
535 #%dir /usr/share/doc/cups/fr
536 #/usr/share/doc/cups/fr/index.html
537 #%dir /usr/share/cups/templates/fr
538 #/usr/share/cups/templates/fr/*
539 /usr
/share
/locale
/fr
/*
542 %defattr(-,root
,root
)
543 #%dir /usr/share/doc/cups/he
544 #/usr/share/doc/cups/he/index.html
545 #/usr/share/doc/cups/he/cups.css
546 #%dir /usr/share/cups/templates/he
547 #/usr/share/cups/templates/he/*
548 /usr
/share
/locale
/he
/*
551 %defattr(-,root
,root
)
552 #%dir /usr/share/doc/cups/it
553 #/usr/share/doc/cups/it/index.html
554 #%dir /usr/share/cups/templates/it
555 #/usr/share/cups/templates/it/*
556 /usr
/share
/locale
/it
/*
559 %defattr(-,root
,root
)
560 #%dir /usr/share/doc/cups/ja
561 #/usr/share/doc/cups/ja/index.html
562 #%dir /usr/share/cups/templates/ja
563 #/usr/share/cups/templates/ja/*
564 /usr
/share
/locale
/ja
/*
567 %defattr(-,root
,root
)
568 /usr
/share
/locale
/ko
/*
571 %defattr(-,root
,root
)
572 /usr
/share
/locale
/nl
/*
575 %defattr(-,root
,root
)
576 /usr
/share
/locale
/no
/*
579 %defattr(-,root
,root
)
580 #%dir /usr/share/doc/cups/pl
581 #/usr/share/doc/cups/pl/index.html
582 #%dir /usr/share/cups/templates/pl
583 #/usr/share/cups/templates/pl/*
584 /usr
/share
/locale
/pl
/*
587 %defattr(-,root
,root
)
588 /usr
/share
/locale
/pt
/*
589 /usr
/share
/locale
/pt_BR
/*
592 %defattr(-,root
,root
)
593 /usr
/share
/locale
/ru
/*
596 %defattr(-,root
,root
)
597 #%dir /usr/share/doc/cups/sv
598 #/usr/share/doc/cups/sv/index.html
599 #%dir /usr/share/cups/templates/sv
600 #/usr/share/cups/templates/sv/*
601 /usr
/share
/locale
/sv
/*
604 %defattr(-,root
,root
)
605 #%dir /usr/share/doc/cups/zh_TW
606 #/usr/share/doc/cups/zh_TW/index.html
607 #%dir /usr/share/cups/templates/zh_TW
608 #/usr/share/cups/templates/zh_TW/*
609 /usr
/share
/locale
/zh
/*
610 /usr
/share
/locale
/zh_TW
/*
612 %if %{?_with_php:1}%{!?_with_php:0}
620 # End of "$Id: cups.spec.in 6889 2007-08-29 22:23:35Z mike $".