2 # "$Id: cups.spec.in 5317 2006-03-21 02:35:37Z mike $"
4 # RPM "spec" file for the Common UNIX Printing System (CUPS).
6 # Original version by Jason McMullan <jmcc@ontv.com>.
8 # Copyright 1999-2006 by Easy Software Products, all rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Easy Software Products and are protected by Federal
12 # copyright law. Distribution and use rights are outlined in the file
13 # "LICENSE.txt" which should have been included with this file. If this
14 # file is missing or damaged please contact Easy Software Products
17 # Attn: CUPS Licensing Information
18 # Easy Software Products
19 # 44141 Airport View Drive, Suite 204
20 # Hollywood, Maryland 20636 USA
22 # Voice: (301) 373-9600
23 # EMail: cups-info@cups.org
24 # WWW: http://www.cups.org
27 # Conditional build options (--with name/--without name):
29 # dbus - Enable/disable DBUS support (default = enable)
30 # php - Enable/disable PHP support (default = enable)
32 %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
33 %{?_with_dbus: %define _dbus --enable-dbus}
34 %{!?_with_dbus: %define _dbus --disable-dbus}
36 %{!?_with_php: %{!?_without_php: %define _with_php --with-php}}
37 %{?_with_php: %define _php --with-php}
38 %{!?_with_php: %define _php --without-php}
40 Summary: Common UNIX Printing System
42 Version: @CUPS_VERSION@
46 Group: System Environment
/Daemons
47 Source: ftp
://ftp.easysw.com
/pub
/cups
/%{version}/cups-%{version}-source.tar.gz
48 Url
: http
://www.cups.org
49 Packager: Anonymous
<anonymous@foo.com
>
50 Vendor: Easy Software Products
52 # Use buildroot so as not to disturb the version already installed
53 BuildRoot: /tmp
/%{name}-root
56 Requires: %{name}-libs = %{epoch}:%{version}
57 Obsoletes
: lpd
, lpr
, LPRng
58 Provides: lpd
, lpr
, LPRng
61 Summary: Common UNIX Printing System
- development environment
62 Group: Development
/Libraries
63 Requires: %{name}-libs = %{epoch}:%{version}
66 Summary: Common UNIX Printing System
- shared libraries
67 Group: System Environment
/Libraries
71 Summary: Common UNIX Printing System
- LPD support
72 Group: System Environment
/Daemons
73 Requires: %{name} = %{epoch}:%{version} xinetd
76 Summary: Common UNIX Printing System
- Spanish support
77 Group: System Environment
/Daemons
78 Requires: %{name} = %{epoch}:%{version}
81 Summary: Common UNIX Printing System
- Japanese support
82 Group: System Environment
/Daemons
83 Requires: %{name} = %{epoch}:%{version}
85 %if %{?_with_php:1}%{!?_with_php:0}
87 Summary: Common UNIX Printing System
- PHP support
88 Group: Development
/Languages
89 Requires: %{name}-libs = %{epoch}:%{version}
93 The Common UNIX Printing System provides a portable printing layer
for
94 UNIX® operating systems. It has been developed by Easy Software Products
95 to promote a standard printing solution
for all UNIX vendors and users.
96 CUPS provides the System V and Berkeley
command-line interfaces.
99 The Common UNIX Printing System provides a portable printing layer
for
100 UNIX® operating systems. This is the development package
for creating
101 additional printer drivers and other CUPS services.
104 The Common UNIX Printing System provides a portable printing layer
for
105 UNIX® operating systems. This package contains the CUPS shared libraries.
108 The Common UNIX Printing System provides a portable printing layer
for
109 UNIX® operating systems. This package provides LPD client support.
112 The Common UNIX Printing System provides a portable printing layer
for
113 UNIX® operating systems. This package provides Spanish support.
116 The Common UNIX Printing System provides a portable printing layer
for
117 UNIX® operating systems. This package provides Japanese support.
119 %if %{?_with_php:1}%{!?_with_php:0}
121 The Common UNIX Printing System provides a portable printing layer
for
122 UNIX® operating systems. This package provides PHP support.
130 .
/configure
--enable-32bit
%{_dbus} %{_php}
132 CFLAGS
="$RPM_OPT_FLAGS" CXXFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="$RPM_OPT_FLAGS" \
133 .
/configure
%{_dbus} %{_php}
135 # If we got this far, all prerequisite libraries must be here.
139 # Make sure the RPM_BUILD_ROOT directory exists.
140 rm -rf $RPM_BUILD_ROOT
142 make BUILDROOT
=$RPM_BUILD_ROOT
install
145 /sbin
/chkconfig
--add cups
146 /sbin
/chkconfig cups on
148 # Restart cupsd if we are upgrading...
149 if test $
1 -gt
1; then
150 /sbin
/service cups stop
151 /sbin
/service cups start
159 /sbin
/service cups stop
160 /sbin
/chkconfig
--del cups
164 if test $
1 -ge
1; then
165 /sbin
/service cups stop
166 /sbin
/service cups start
173 rm -rf $RPM_BUILD_ROOT
176 %docdir /usr
/share
/doc
/cups
177 %defattr(-,root
,root
)
179 %config(noreplace
) /etc
/cups
/*.conf
180 /etc
/cups
/cupsd.conf.default
181 %dir /etc
/cups
/interfaces
186 %if %{?_with_dbus:1}%{!?_with_dbus:0}
188 /etc
/dbus
-1/system.d
/*
195 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
196 # don't use Red Hat or Mandrake...
204 # OLD RedHat/Mandrake
222 %dir /usr
/lib
/cups
/backend
223 /usr
/lib
/cups
/backend
/http
224 /usr
/lib
/cups
/backend
/ipp
225 %attr(0700,root
,root
) /usr
/lib
/cups
/backend
/lpd
226 /usr
/lib
/cups
/backend
/parallel
227 /usr
/lib
/cups
/backend
/scsi
228 /usr
/lib
/cups
/backend
/serial
229 /usr
/lib
/cups
/backend
/socket
230 /usr
/lib
/cups
/backend
/usb
231 %dir /usr
/lib
/cups
/cgi
-bin
232 /usr
/lib
/cups
/cgi
-bin
/*
233 %dir /usr
/lib
/cups
/daemon
234 /usr
/lib
/cups
/daemon
/cups
-deviced
235 /usr
/lib
/cups
/daemon
/cups
-driverd
236 /usr
/lib
/cups
/daemon
/cups
-polld
237 %dir /usr
/lib
/cups
/driver
238 %dir /usr
/lib
/cups
/filter
239 /usr
/lib
/cups
/filter
/*
240 %dir /usr
/lib
/cups
/monitor
241 /usr
/lib
/cups
/monitor
/*
242 %dir /usr
/lib
/cups
/notifier
243 /usr
/lib
/cups
/notifier
/*
248 %dir /usr
/share
/doc
/cups
249 /usr
/share
/doc
/cups
/*.
*
250 %dir /usr
/share
/doc
/cups
/help
251 /usr
/share
/doc
/cups
/help/cgi.html
252 /usr
/share
/doc
/cups
/help/glossary.html
253 /usr
/share
/doc
/cups
/help/license.html
254 /usr
/share
/doc
/cups
/help/man
-*.html
255 /usr
/share
/doc
/cups
/help/network.html
256 /usr
/share
/doc
/cups
/help/options.html
257 /usr
/share
/doc
/cups
/help/overview.html
258 /usr
/share
/doc
/cups
/help/ref
-*.html
259 /usr
/share
/doc
/cups
/help/security.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
/*
266 %dir /usr
/share
/man
/man1
267 /usr
/share
/man
/man1
/cancel
.1.gz
268 /usr
/share
/man
/man1
/cupstestdsc
.1.gz
269 /usr
/share
/man
/man1
/cupstestppd
.1.gz
270 /usr
/share
/man
/man1
/lp
.1.gz
271 /usr
/share
/man
/man1
/lpoptions
.1.gz
272 /usr
/share
/man
/man1
/lppasswd
.1.gz
273 /usr
/share
/man
/man1
/lpq
.1.gz
274 /usr
/share
/man
/man1
/lpr
.1.gz
275 /usr
/share
/man
/man1
/lprm
.1.gz
276 /usr
/share
/man
/man1
/lpstat
.1.gz
277 %dir /usr
/share
/man
/man5
278 /usr
/share
/man
/man5
/*
279 %dir /usr
/share
/man
/man8
280 /usr
/share
/man
/man8
/accept
.8.gz
281 /usr
/share
/man
/man8
/cupsaddsmb
.8.gz
282 /usr
/share
/man
/man8
/cupsd
.8.gz
283 /usr
/share
/man
/man8
/cupsdisable
.8.gz
284 /usr
/share
/man
/man8
/cupsenable
.8.gz
285 /usr
/share
/man
/man8
/cups
-deviced
.8.gz
286 /usr
/share
/man
/man8
/cups
-driverd
.8.gz
287 /usr
/share
/man
/man8
/cups
-polld
.8.gz
288 /usr
/share
/man
/man8
/lpadmin
.8.gz
289 /usr
/share
/man
/man8
/lpc
.8.gz
290 /usr
/share
/man
/man8
/lpinfo
.8.gz
291 /usr
/share
/man
/man8
/lpmove
.8.gz
292 /usr
/share
/man
/man8
/reject
.8.gz
297 %attr(0711,lp
,sys
) %dir /var
/run
/cups
/certs
298 %attr(0710,lp
,sys
) %dir /var
/spool
/cups
299 %attr(1770,lp
,sys
) %dir /var
/spool
/cups
/tmp
302 /usr
/share
/applications
/*
306 %defattr(-,root
,root
)
307 %dir /usr
/share
/man
/man1
308 /usr
/share
/man
/man1
/cups
-config
.1.gz
309 %dir /usr
/share
/man
/man7
310 /usr
/share
/man
/man7
/*
313 %dir /usr
/include
/cups
318 %dir /usr
/share
/doc
/cups
/help
319 /usr
/share
/doc
/cups
/help/api
*.html
320 /usr
/share
/doc
/cups
/help/spec
*.html
323 %defattr(-,root
,root
)
327 %defattr(-,root
,root
)
328 /etc
/xinetd.d
/cups
-lpd
330 %dir /usr
/lib
/cups
/daemon
331 /usr
/lib
/cups
/daemon
/cups
-lpd
332 %dir /usr
/share
/man
/man8
333 /usr
/share
/man
/man8
/cups
-lpd
.8.gz
336 %defattr(-,root
,root
)
337 %dir /usr
/share
/doc
/cups
/es
338 /usr
/share
/doc
/cups
/es
/index.html
339 %dir /usr
/share
/doc
/cups
/es
/images
340 /usr
/share
/doc
/cups
/es
/images
/*
341 %dir /usr
/share
/cups
/templates
/es
342 /usr
/share
/cups
/templates
/es
/*
343 /usr
/share
/locale
/es
/cups_es.po
346 %defattr(-,root
,root
)
347 %dir /usr
/share
/doc
/cups
/ja
348 /usr
/share
/doc
/cups
/ja
/index.html
349 %dir /usr
/share
/doc
/cups
/ja
/images
350 /usr
/share
/doc
/cups
/ja
/images
/*
351 %dir /usr
/share
/cups
/templates
/ja
352 /usr
/share
/cups
/templates
/ja
/*
353 /usr
/share
/locale
/ja
/cups_ja.po
355 %if %{?_with_php:1}%{!?_with_php:0}
363 # End of "$Id: cups.spec.in 5317 2006-03-21 02:35:37Z mike $".