2 # "$Id: cups.spec.in 7718 2008-07-10 23:04:22Z mike $"
4 # RPM "spec" file for CUPS.
6 # Original version by Jason McMullan <jmcc@ontv.com>.
8 # Copyright 2007-2010 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}
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
54 Obsoletes
: cups
-da
, cups
-de
, cups
-es
, cups
-et
, cups
-fi, cups
-fr
, cups
-he
55 Obsoletes
: cups
-id
, cups
-it
, cups
-ja
, cups
-ko
, cups
-nl
, cups
-no
, cups
-pl
56 Obsoletes
: cups
-pt
, cups
-ru
, cups
-sv
, cups
-zh
59 Summary: CUPS
- development environment
60 Group: Development
/Libraries
61 Requires: %{name}-libs = %{epoch}:%{version}
64 Summary: CUPS
- shared libraries
65 Group: System Environment
/Libraries
69 Summary: CUPS
- LPD support
70 Group: System Environment
/Daemons
71 Requires: %{name} = %{epoch}:%{version} xinetd
73 %if %{?_with_php:1}%{!?_with_php:0}
75 Summary: CUPS
- PHP support
76 Group: Development
/Languages
77 Requires: %{name}-libs = %{epoch}:%{version}
81 CUPS is the standards
-based
, open
source printing system developed by
82 Apple Inc.
for Mac OS¨ X and other UNIX¨
-like operating systems.
85 This package provides the CUPS headers and development environment.
88 This package provides the CUPS shared libraries.
91 This package provides LPD client support.
93 %if %{?_with_php:1}%{!?_with_php:0}
95 This package provides PHP support
for CUPS.
102 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
103 .
/configure
%{_dbus} %{_php} %{_static}
104 # If we got this far, all prerequisite libraries must be here.
108 # Make sure the RPM_BUILD_ROOT directory exists.
109 rm -rf $RPM_BUILD_ROOT
111 make BUILDROOT
=$RPM_BUILD_ROOT
install
114 /sbin
/chkconfig
--add cups
115 /sbin
/chkconfig cups on
117 # Restart cupsd if we are upgrading...
118 if test $
1 -gt
1; then
119 /sbin
/service cups stop
120 /sbin
/service cups start
128 /sbin
/service cups stop
129 /sbin
/chkconfig
--del cups
133 if test $
1 -ge
1; then
134 /sbin
/service cups stop
135 /sbin
/service cups start
142 rm -rf $RPM_BUILD_ROOT
145 %docdir /usr
/share
/doc
/cups
146 %defattr(-,root
,root
)
148 %config(noreplace
) /etc
/cups
/*.conf
149 /etc
/cups
/cupsd.conf.default
150 %dir /etc
/cups
/interfaces
152 %attr(0700,root
,root
) %dir /etc
/cups
/ssl
154 %if %{?_with_dbus:1}%{!?_with_dbus:0}
156 /etc
/dbus
-1/system.d
/*
163 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
164 # don't use Red Hat or Mandrake...
172 # OLD RedHat/Mandrake
191 %dir /usr
/lib
/cups
/backend
192 /usr
/lib
/cups
/backend
/http
193 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/ipp
194 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
195 /usr
/lib
/cups
/backend
/parallel
196 /usr
/lib
/cups
/backend
/scsi
197 /usr
/lib
/cups
/backend
/serial
198 /usr
/lib
/cups
/backend
/snmp
199 /usr
/lib
/cups
/backend
/socket
200 /usr
/lib
/cups
/backend
/usb
201 %dir /usr
/lib
/cups
/cgi
-bin
202 /usr
/lib
/cups
/cgi
-bin
/*
203 %dir /usr
/lib
/cups
/daemon
204 /usr
/lib
/cups
/daemon
/cups
-deviced
205 /usr
/lib
/cups
/daemon
/cups
-driverd
206 /usr
/lib
/cups
/daemon
/cups
-polld
207 %dir /usr
/lib
/cups
/driver
208 %dir /usr
/lib
/cups
/filter
209 /usr
/lib
/cups
/filter
/*
210 %dir /usr
/lib
/cups
/monitor
211 /usr
/lib
/cups
/monitor
/*
212 %dir /usr
/lib
/cups
/notifier
213 /usr
/lib
/cups
/notifier
/*
217 %dir /usr
/share
/cups
/banners
218 /usr
/share
/cups
/banners
/*
219 %dir /usr
/share
/cups
/charmaps
220 /usr
/share
/cups
/charmaps
/*
221 %dir /usr
/share
/cups
/charsets
222 /usr
/share
/cups
/charsets
/*
223 %dir /usr
/share
/cups
/data
224 /usr
/share
/cups
/data
/*
225 %dir /usr
/share
/cups
/drv
226 /usr
/share
/cups
/drv
/*
227 %dir /usr
/share
/cups
/fonts
228 /usr
/share
/cups
/fonts
/*
229 %dir /usr
/share
/cups
/ipptool
230 /usr
/share
/cups
/ipptool
/*
231 %dir /usr
/share
/cups
/mime
232 /usr
/share
/cups
/mime
/*
233 %dir /usr
/share
/cups
/model
234 %dir /usr
/share
/cups
/ppdc
235 /usr
/share
/cups
/ppdc
/*
236 %dir /usr
/share
/cups
/templates
237 /usr
/share
/cups
/templates
/*
238 %dir /usr
/share
/doc
/cups
239 /usr
/share
/doc
/cups
/*.
*
240 %dir /usr
/share
/doc
/cups
/de
241 /usr
/share
/doc
/cups
/de
/*
242 %dir /usr
/share
/doc
/cups
/es
243 /usr
/share
/doc
/cups
/es
/*
244 %dir /usr
/share
/doc
/cups
/eu
245 /usr
/share
/doc
/cups
/eu
/*
246 %dir /usr
/share
/doc
/cups
/id
247 /usr
/share
/doc
/cups
/id
/*
248 %dir /usr
/share
/doc
/cups
/it
249 /usr
/share
/doc
/cups
/it
/*
250 %dir /usr
/share
/doc
/cups
/ja
251 /usr
/share
/doc
/cups
/ja
/*
252 %dir /usr
/share
/doc
/cups
/pl
253 /usr
/share
/doc
/cups
/pl
/*
254 %dir /usr
/share
/doc
/cups
/ru
255 /usr
/share
/doc
/cups
/ru
/*
256 %dir /usr
/share
/doc
/cups
/help
257 /usr
/share
/doc
/cups
/help/accounting.html
258 /usr
/share
/doc
/cups
/help/cgi.html
259 /usr
/share
/doc
/cups
/help/glossary.html
260 /usr
/share
/doc
/cups
/help/kerberos.html
261 /usr
/share
/doc
/cups
/help/license.html
262 /usr
/share
/doc
/cups
/help/man
-*.html
263 /usr
/share
/doc
/cups
/help/network.html
264 /usr
/share
/doc
/cups
/help/options.html
265 /usr
/share
/doc
/cups
/help/overview.html
266 /usr
/share
/doc
/cups
/help/policies.html
267 /usr
/share
/doc
/cups
/help/ref
-*.html
268 /usr
/share
/doc
/cups
/help/security.html
269 /usr
/share
/doc
/cups
/help/sharing.html
270 /usr
/share
/doc
/cups
/help/standard.html
271 /usr
/share
/doc
/cups
/help/translation.html
272 /usr
/share
/doc
/cups
/help/whatsnew.html
273 %dir /usr
/share
/doc
/cups
/images
274 /usr
/share
/doc
/cups
/images
/*
277 %dir /usr
/share
/man
/man1
278 /usr
/share
/man
/man1
/cancel
.1.gz
279 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
280 /usr
/share
/man
/man1
/cupstestppd
.1.gz
281 /usr
/share
/man
/man1
/ipptool
.1.gz
282 /usr
/share
/man
/man1
/lp
.1.gz
283 /usr
/share
/man
/man1
/lpoptions
.1.gz
284 /usr
/share
/man
/man1
/lppasswd
.1.gz
285 /usr
/share
/man
/man1
/lpq
.1.gz
286 /usr
/share
/man
/man1
/lpr
.1.gz
287 /usr
/share
/man
/man1
/lprm
.1.gz
288 /usr
/share
/man
/man1
/lpstat
.1.gz
289 %dir /usr
/share
/man
/man5
290 /usr
/share
/man
/man5
/*.conf
.5.gz
291 /usr
/share
/man
/man5
/ipptoolfile
.5.gz
292 /usr
/share
/man
/man5
/mime.
*.5.gz
293 %dir /usr
/share
/man
/man7
294 /usr
/share
/man
/man7
/drv
*
295 %dir /usr
/share
/man
/man8
296 /usr
/share
/man
/man8
/accept
.8.gz
297 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
298 /usr
/share
/man
/man8
/cupsaccept
.8.gz
299 /usr
/share
/man
/man8
/cupsctl
.8.gz
300 /usr
/share
/man
/man8
/cupsfilter
.8.gz
301 /usr
/share
/man
/man8
/cupsd
.8.gz
302 /usr
/share
/man
/man8
/cupsdisable
.8.gz
303 /usr
/share
/man
/man8
/cupsenable
.8.gz
304 /usr
/share
/man
/man8
/cupsreject
.8.gz
305 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
306 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
307 /usr
/share
/man
/man8
/cups
-polld
.8.gz
308 /usr
/share
/man
/man8
/lpadmin
.8.gz
309 /usr
/share
/man
/man8
/lpc
.8.gz
310 /usr
/share
/man
/man8
/lpinfo
.8.gz
311 /usr
/share
/man
/man8
/lpmove
.8.gz
312 /usr
/share
/man
/man8
/reject
.8.gz
315 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
318 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
319 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
320 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
323 /usr
/share
/applications
/*
327 %defattr(-,root
,root
)
328 %dir /usr
/share
/cups
/examples
329 /usr
/share
/cups
/examples
/*
330 %dir /usr
/share
/man
/man1
331 /usr
/share
/man
/man1
/cups
-config
.1.gz
332 /usr
/share
/man
/man1
/ppd
*.1.gz
333 %dir /usr
/share
/man
/man5
334 /usr
/share
/man
/man5
/ppdcfile
.5.gz
335 /usr
/share
/man
/man7
/backend
.7.gz
336 /usr
/share
/man
/man7
/filter
.7.gz
337 /usr
/share
/man
/man7
/notifier
.7.gz
341 %dir /usr
/include
/cups
345 %if %{?_with_static:1}%{!?_with_static:0}
349 %dir /usr
/share
/doc
/cups
/help
350 /usr
/share
/doc
/cups
/help/api
*.html
351 /usr
/share
/doc
/cups
/help/postscript
-driver.html
352 /usr
/share
/doc
/cups
/help/ppd
-compiler.html
353 /usr
/share
/doc
/cups
/help/raster
-driver.html
354 /usr
/share
/doc
/cups
/help/spec
*.html
357 %defattr(-,root
,root
)
361 %defattr(-,root
,root
)
362 /etc
/xinetd.d
/cups
-lpd
364 %dir /usr
/lib
/cups
/daemon
365 /usr
/lib
/cups
/daemon
/cups
-lpd
366 %dir /usr
/share
/man
/man8
367 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
369 %if %{?_with_php:1}%{!?_with_php:0}
377 # End of "$Id: cups.spec.in 7718 2008-07-10 23:04:22Z mike $".