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-2012 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 # dnssd - Enable/disable DNS-SD support (default = enable)
22 # static - Enable/disable static libraries (default = enable)
24 %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
25 %{?_with_dbus: %define _dbus --enable-dbus}
26 %{!?_with_dbus: %define _dbus --disable-dbus}
28 %{!?_with_dnssd: %{!?_without_dnssd: %define _without_dnssd --without-dnssd}}
29 %{?_with_dnssd: %define _dnssd --enable-dnssd}
30 %{!?_with_dnssd: %define _dnssd --disable-dnssd}
32 %{!?_with_static: %{!?_without_static: %define _without_static --without-static}}
33 %{?_with_static: %define _static --enable-static}
34 %{!?_with_static: %define _static --disable-static}
38 Version: @CUPS_VERSION@
42 Group: System Environment
/Daemons
43 Source: http
://ftp.cups.org
/pub
/cups
/%{version}/cups-%{version}-source.tar.bz2
44 Url
: http
://www.cups.org
45 Packager: Anonymous
<anonymous@foo.com
>
48 # Use buildroot so as not to disturb the version already installed
49 BuildRoot: /tmp
/%{name}-root
52 Requires: %{name}-libs = %{epoch}:%{version}
53 Obsoletes
: lpd
, lpr
, LPRng
54 Provides: lpd
, lpr
, LPRng
55 Obsoletes
: cups
-da
, cups
-de
, cups
-es
, cups
-et
, cups
-fi, cups
-fr
, cups
-he
56 Obsoletes
: cups
-id
, cups
-it
, cups
-ja
, cups
-ko
, cups
-nl
, cups
-no
, cups
-pl
57 Obsoletes
: cups
-pt
, cups
-ru
, cups
-sv
, cups
-zh
60 Summary: CUPS
- development environment
61 Group: Development
/Libraries
62 Requires: %{name}-libs = %{epoch}:%{version}
65 Summary: CUPS
- shared libraries
66 Group: System Environment
/Libraries
70 Summary: CUPS
- LPD support
71 Group: System Environment
/Daemons
72 Requires: %{name} = %{epoch}:%{version} xinetd
75 CUPS is the standards
-based
, open
source printing system developed by
76 Apple Inc.
for OS X and other UNIX®
-like operating systems.
79 This package provides the CUPS headers and development environment.
82 This package provides the CUPS shared libraries.
85 This package provides LPD client support.
91 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
92 .
/configure
%{_dbus} %{_dnssd} %{_static}
93 # If we got this far, all prerequisite libraries must be here.
97 # Make sure the RPM_BUILD_ROOT directory exists.
98 rm -rf $RPM_BUILD_ROOT
100 make BUILDROOT
=$RPM_BUILD_ROOT
install
103 /sbin
/chkconfig
--add cups
104 /sbin
/chkconfig cups on
106 # Restart cupsd if we are upgrading...
107 if test $
1 -gt
1; then
108 /sbin
/service cups stop
109 /sbin
/service cups start
117 /sbin
/service cups stop
118 /sbin
/chkconfig
--del cups
122 if test $
1 -ge
1; then
123 /sbin
/service cups stop
124 /sbin
/service cups start
131 rm -rf $RPM_BUILD_ROOT
134 %docdir /usr
/share
/doc
/cups
135 %defattr(-,root
,root
)
137 %config(noreplace
) /etc
/cups
/*.conf
138 /etc
/cups
/cupsd.conf.default
139 %dir /etc
/cups
/interfaces
141 %attr(0700,root
,root
) %dir /etc
/cups
/ssl
143 %if %{?_with_dbus:1}%{!?_with_dbus:0}
145 /etc
/dbus
-1/system.d
/*
152 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
153 # don't use Red Hat or Mandrake...
161 # OLD RedHat/Mandrake
180 %dir /usr
/lib
/cups
/backend
181 %if %{?_with_dnssd:1}%{!?_with_dnssd:0}
182 /usr
/lib
/cups
/backend
/dnssd
184 /usr
/lib
/cups
/backend
/http
185 /usr
/lib
/cups
/backend
/https
186 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/ipp
187 /usr
/lib
/cups
/backend
/ipps
188 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
189 /usr
/lib
/cups
/backend
/snmp
190 /usr
/lib
/cups
/backend
/socket
191 /usr
/lib
/cups
/backend
/usb
192 %dir /usr
/lib
/cups
/cgi
-bin
193 /usr
/lib
/cups
/cgi
-bin
/*
194 %dir /usr
/lib
/cups
/daemon
195 /usr
/lib
/cups
/daemon
/cups
-deviced
196 /usr
/lib
/cups
/daemon
/cups
-driverd
197 /usr
/lib
/cups
/daemon
/cups
-exec
198 /usr
/lib
/cups
/daemon
/cups
-polld
199 %dir /usr
/lib
/cups
/driver
200 %dir /usr
/lib
/cups
/filter
201 /usr
/lib
/cups
/filter
/*
202 %dir /usr
/lib
/cups
/monitor
203 /usr
/lib
/cups
/monitor
/*
204 %dir /usr
/lib
/cups
/notifier
205 /usr
/lib
/cups
/notifier
/*
209 %dir /usr
/share
/cups
/banners
210 /usr
/share
/cups
/banners
/*
211 %dir /usr
/share
/cups
/charsets
212 /usr
/share
/cups
/charsets
/*
213 %dir /usr
/share
/cups
/data
214 /usr
/share
/cups
/data
/*
215 %dir /usr
/share
/cups
/drv
216 /usr
/share
/cups
/drv
/*
217 %dir /usr
/share
/cups
/fonts
218 /usr
/share
/cups
/fonts
/*
219 %dir /usr
/share
/cups
/ipptool
220 /usr
/share
/cups
/ipptool
/*
221 %dir /usr
/share
/cups
/mime
222 /usr
/share
/cups
/mime
/*
223 %dir /usr
/share
/cups
/model
224 %dir /usr
/share
/cups
/ppdc
225 /usr
/share
/cups
/ppdc
/*
226 %dir /usr
/share
/cups
/templates
227 /usr
/share
/cups
/templates
/*
228 %dir /usr
/share
/doc
/cups
229 /usr
/share
/doc
/cups
/*.
*
230 %dir /usr
/share
/doc
/cups
/de
231 /usr
/share
/doc
/cups
/de
/*
232 %dir /usr
/share
/doc
/cups
/es
233 /usr
/share
/doc
/cups
/es
/*
234 %dir /usr
/share
/doc
/cups
/eu
235 /usr
/share
/doc
/cups
/eu
/*
236 %dir /usr
/share
/doc
/cups
/id
237 /usr
/share
/doc
/cups
/id
/*
238 %dir /usr
/share
/doc
/cups
/it
239 /usr
/share
/doc
/cups
/it
/*
240 %dir /usr
/share
/doc
/cups
/ja
241 /usr
/share
/doc
/cups
/ja
/*
242 %dir /usr
/share
/doc
/cups
/pl
243 /usr
/share
/doc
/cups
/pl
/*
244 %dir /usr
/share
/doc
/cups
/ru
245 /usr
/share
/doc
/cups
/ru
/*
246 %dir /usr
/share
/doc
/cups
/help
247 /usr
/share
/doc
/cups
/help/accounting.html
248 /usr
/share
/doc
/cups
/help/cgi.html
249 /usr
/share
/doc
/cups
/help/glossary.html
250 /usr
/share
/doc
/cups
/help/kerberos.html
251 /usr
/share
/doc
/cups
/help/license.html
252 /usr
/share
/doc
/cups
/help/man
-*.html
253 /usr
/share
/doc
/cups
/help/network.html
254 /usr
/share
/doc
/cups
/help/options.html
255 /usr
/share
/doc
/cups
/help/overview.html
256 /usr
/share
/doc
/cups
/help/policies.html
257 /usr
/share
/doc
/cups
/help/ref
-*.html
258 /usr
/share
/doc
/cups
/help/security.html
259 /usr
/share
/doc
/cups
/help/sharing.html
260 /usr
/share
/doc
/cups
/help/standard.html
261 /usr
/share
/doc
/cups
/help/translation.html
262 /usr
/share
/doc
/cups
/help/whatsnew.html
263 %dir /usr
/share
/doc
/cups
/images
264 /usr
/share
/doc
/cups
/images
/*
267 %dir /usr
/share
/man
/man1
268 /usr
/share
/man
/man1
/cancel
.1.gz
269 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
270 /usr
/share
/man
/man1
/cupstestppd
.1.gz
271 /usr
/share
/man
/man1
/ipptool
.1.gz
272 /usr
/share
/man
/man1
/lp
.1.gz
273 /usr
/share
/man
/man1
/lpoptions
.1.gz
274 /usr
/share
/man
/man1
/lppasswd
.1.gz
275 /usr
/share
/man
/man1
/lpq
.1.gz
276 /usr
/share
/man
/man1
/lpr
.1.gz
277 /usr
/share
/man
/man1
/lprm
.1.gz
278 /usr
/share
/man
/man1
/lpstat
.1.gz
279 %dir /usr
/share
/man
/man5
280 /usr
/share
/man
/man5
/*.conf
.5.gz
281 /usr
/share
/man
/man5
/ipptoolfile
.5.gz
282 /usr
/share
/man
/man5
/mime.
*.5.gz
283 %dir /usr
/share
/man
/man8
284 /usr
/share
/man
/man8
/accept
.8.gz
285 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
286 /usr
/share
/man
/man8
/cupsaccept
.8.gz
287 /usr
/share
/man
/man8
/cupsctl
.8.gz
288 /usr
/share
/man
/man8
/cupsfilter
.8.gz
289 /usr
/share
/man
/man8
/cupsd
.8.gz
290 /usr
/share
/man
/man8
/cupsdisable
.8.gz
291 /usr
/share
/man
/man8
/cupsenable
.8.gz
292 /usr
/share
/man
/man8
/cupsreject
.8.gz
293 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
294 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
295 /usr
/share
/man
/man8
/cups
-polld
.8.gz
296 /usr
/share
/man
/man8
/lpadmin
.8.gz
297 /usr
/share
/man
/man8
/lpc
.8.gz
298 /usr
/share
/man
/man8
/lpinfo
.8.gz
299 /usr
/share
/man
/man8
/lpmove
.8.gz
300 /usr
/share
/man
/man8
/reject
.8.gz
303 %attr(0775,root
,sys
) %dir /var
/cache
/cups
/rss
306 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
307 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
308 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
311 /usr
/share
/applications
/*
315 %defattr(-,root
,root
)
316 %dir /usr
/share
/cups
/examples
317 /usr
/share
/cups
/examples
/*
318 %dir /usr
/share
/man
/man1
319 /usr
/share
/man
/man1
/cups
-config
.1.gz
320 /usr
/share
/man
/man1
/ppd
*.1.gz
321 %dir /usr
/share
/man
/man5
322 /usr
/share
/man
/man5
/ppdcfile
.5.gz
323 /usr
/share
/man
/man7
/backend
.7.gz
324 /usr
/share
/man
/man7
/filter
.7.gz
325 /usr
/share
/man
/man7
/notifier
.7.gz
329 %dir /usr
/include
/cups
333 %if %{?_with_static:1}%{!?_with_static:0}
337 %dir /usr
/share
/doc
/cups
/help
338 /usr
/share
/doc
/cups
/help/api
*.html
339 /usr
/share
/doc
/cups
/help/postscript
-driver.html
340 /usr
/share
/doc
/cups
/help/ppd
-compiler.html
341 /usr
/share
/doc
/cups
/help/raster
-driver.html
342 /usr
/share
/doc
/cups
/help/spec
*.html
345 %defattr(-,root
,root
)
349 %defattr(-,root
,root
)
350 /etc
/xinetd.d
/cups
-lpd
352 %dir /usr
/lib
/cups
/daemon
353 /usr
/lib
/cups
/daemon
/cups
-lpd
354 %dir /usr
/share
/man
/man8
355 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
359 # End of "$Id: cups.spec.in 7718 2008-07-10 23:04:22Z mike $".