]> git.ipfire.org Git - thirdparty/cups.git/blob - packaging/cups.spec.in
Load cups into easysw/current.
[thirdparty/cups.git] / packaging / cups.spec.in
1 #
2 # "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $"
3 #
4 # RPM "spec" file for the Common UNIX Printing System (CUPS).
5 #
6 # Original version by Jason McMullan <jmcc@ontv.com>.
7 #
8 # Copyright 1999-2006 by Easy Software Products, all rights reserved.
9 #
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
15 # at:
16 #
17 # Attn: CUPS Licensing Information
18 # Easy Software Products
19 # 44141 Airport View Drive, Suite 204
20 # Hollywood, Maryland 20636 USA
21 #
22 # Voice: (301) 373-9600
23 # EMail: cups-info@cups.org
24 # WWW: http://www.cups.org
25 #
26
27 Summary: Common Unix Printing System
28 Name: cups
29 Version: @CUPS_VERSION@
30 Release: 0
31 Epoch: 1
32 License: GPL
33 Group: System Environment/Daemons
34 Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.gz
35 Url: http://www.cups.org
36 Packager: Anonymous <anonymous@foo.com>
37 Vendor: Easy Software Products
38
39 # Use buildroot so as not to disturb the version already installed
40 BuildRoot: /tmp/%{name}-root
41
42 # Dependencies...
43 Requires: %{name}-libs = %{epoch}:%{version}
44 Obsoletes: lpd, lpr, LPRng
45 Provides: lpd, lpr, LPRng
46
47 %package devel
48 Summary: Common Unix Printing System - development environment
49 Group: Development/Libraries
50 Requires: %{name}-libs = %{epoch}:%{version}
51
52 %package libs
53 Summary: Common Unix Printing System - shared libraries
54 Group: System Environment/Libraries
55 Provides: libcups1
56
57 %package lpd
58 Summary: Common Unix Printing System - LPD support
59 Group: System Environment/Daemons
60 Requires: %{name} = %{epoch}:%{version} xinetd
61
62 %description
63 The Common UNIX Printing System provides a portable printing layer for
64 UNIX® operating systems. It has been developed by Easy Software Products
65 to promote a standard printing solution for all UNIX vendors and users.
66 CUPS provides the System V and Berkeley command-line interfaces.
67
68 %description devel
69 The Common UNIX Printing System provides a portable printing layer for
70 UNIX® operating systems. This is the development package for creating
71 additional printer drivers and other CUPS services.
72
73 %description libs
74 The Common UNIX Printing System provides a portable printing layer for
75 UNIX® operating systems. This package contains the CUPS shared libraries.
76
77 %description lpd
78 The Common UNIX Printing System provides a portable printing layer for
79 UNIX® operating systems. This package provides LPD client support.
80
81 %prep
82 %setup
83
84 %build
85 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure
86
87 # If we got this far, all prerequisite libraries must be here.
88 make
89
90 %install
91 # Make sure the RPM_BUILD_ROOT directory exists.
92 rm -rf $RPM_BUILD_ROOT
93
94 make BUILDROOT=$RPM_BUILD_ROOT install
95
96 %post
97 ldconfig
98
99 if test -x /sbin/chkconfig; then
100 /sbin/chkconfig --add cups
101 /sbin/chkconfig cups on
102 fi
103
104 # these lines automatically start cupsd after installation; commented out
105 # by request...
106 #if test -f /sbin/init.d/cups; then
107 # /sbin/init.d/cups start
108 #fi
109 #if test -f /etc/rc.d/init.d/cups; then
110 # /etc/rc.d/init.d/cups start
111 #fi
112 #if test -f /etc/init.d/cups; then
113 # /etc/init.d/cups start
114 #fi
115
116 %preun
117 if test -f /sbin/init.d/cups; then
118 /sbin/init.d/cups stop
119 fi
120 if test -f /etc/rc.d/init.d/cups; then
121 /etc/rc.d/init.d/cups stop
122 fi
123 if test -f /etc/init.d/cups; then
124 /etc/init.d/cups stop
125 fi
126
127 if test -x /sbin/chkconfig; then
128 /sbin/chkconfig --del cups
129 fi
130
131 %clean
132 rm -rf $RPM_BUILD_ROOT
133
134 %files
135 %defattr(-,root,root)
136 %dir /etc/cups
137 %config(noreplace) /etc/cups/*.conf
138 /etc/cups/cupsd.conf.default
139 %dir /etc/cups/interfaces
140 /etc/cups/mime.types
141 /etc/cups/mime.convs
142 %dir /etc/cups/ppd
143 %dir /etc/pam.d
144 /etc/pam.d/*
145
146 # RC dirs are a pain under Linux... Uncomment the appropriate ones if you
147 # don't use Red Hat or Mandrake...
148
149 /etc/init.d/*
150 /etc/rc0.d/*
151 /etc/rc2.d/*
152 /etc/rc3.d/*
153 /etc/rc5.d/*
154
155 # OLD RedHat/Mandrake
156 #/etc/rc.d/init.d/*
157 #/etc/rc.d/rc0.d/*
158 #/etc/rc.d/rc2.d/*
159 #/etc/rc.d/rc3.d/*
160 #/etc/rc.d/rc5.d/*
161
162 #/sbin/rc.d/*
163 #/sbin/rc.d/rc0.d/*
164 #/sbin/rc.d/rc2.d/*
165 #/sbin/rc.d/rc3.d/*
166 #/sbin/rc.d/rc5.d/*
167
168 /usr/bin/cancel
169 /usr/bin/cupstestppd
170 /usr/bin/lp*
171 %dir /usr/lib/cups
172 %dir /usr/lib/cups/backend
173 /usr/lib/cups/backend/http
174 /usr/lib/cups/backend/ipp
175 %attr(0700,root,root) /usr/lib/cups/backend/lpd
176 /usr/lib/cups/backend/parallel
177 /usr/lib/cups/backend/scsi
178 /usr/lib/cups/backend/serial
179 /usr/lib/cups/backend/usb
180 %dir /usr/lib/cups/cgi-bin
181 /usr/lib/cups/cgi-bin/*
182 %dir /usr/lib/cups/daemon
183 /usr/lib/cups/daemon/cups-deviced
184 /usr/lib/cups/daemon/cups-driverd
185 /usr/lib/cups/daemon/cups-polld
186 %dir /usr/lib/cups/driver
187 %dir /usr/lib/cups/filter
188 /usr/lib/cups/filter/*
189 %dir /usr/lib/cups/notifier
190 /usr/lib/cups/notifier/*
191
192 /usr/sbin/*
193 %dir /usr/share/cups
194 /usr/share/cups/*
195 %dir /usr/share/doc/cups
196 /usr/share/doc/cups/*.*
197 %dir /usr/share/doc/cups/help
198 /usr/share/doc/cups/help/*-reference.html
199 /usr/share/doc/cups/help/man-*.html
200 /usr/share/doc/cups/help/network.html
201 /usr/share/doc/cups/help/overview.html
202 /usr/share/doc/cups/help/standard.html
203 /usr/share/doc/cups/help/whatsnew.html
204 %dir /usr/share/doc/cups/images
205 /usr/share/doc/cups/images/*
206 %dir /usr/share/locale
207 /usr/share/locale/*
208
209 %dir /usr/share/man/man1
210 /usr/share/man/man1/cancel.1.gz
211 /usr/share/man/man1/cupstestppd.1.gz
212 /usr/share/man/man1/lp.1.gz
213 /usr/share/man/man1/lpoptions.1.gz
214 /usr/share/man/man1/lppasswd.1.gz
215 /usr/share/man/man1/lpq.1.gz
216 /usr/share/man/man1/lpr.1.gz
217 /usr/share/man/man1/lprm.1.gz
218 /usr/share/man/man1/lpstat.1.gz
219 %dir /usr/share/man/man5
220 /usr/share/man/man5/*
221 %dir /usr/share/man/man8
222 /usr/share/man/man8/accept.8.gz
223 /usr/share/man/man8/cupsaddsmb.8.gz
224 /usr/share/man/man8/cupsd.8.gz
225 /usr/share/man/man8/cupsdisable.8.gz
226 /usr/share/man/man8/cupsenable.8.gz
227 /usr/share/man/man8/cups-polld.8.gz
228 /usr/share/man/man8/lpadmin.8.gz
229 /usr/share/man/man8/lpc.8.gz
230 /usr/share/man/man8/lpinfo.8.gz
231 /usr/share/man/man8/lpmove.8.gz
232 /usr/share/man/man8/reject.8.gz
233
234 %dir /var/cache/cups
235 %dir /var/log/cups
236 %dir /var/run/cups
237 %attr(0711,lp,root) %dir /var/run/cups/certs
238 %attr(0710,lp,root) %dir /var/spool/cups
239 %attr(1770,lp,root) %dir /var/spool/cups/tmp
240
241 %files devel
242 %defattr(-,root,root)
243 %dir /usr/share/man/man1
244 /usr/share/man/man1/backend.1.gz
245 /usr/share/man/man1/cups-config.1.gz
246 /usr/share/man/man1/filter.1.gz
247
248 /usr/bin/cups-config
249 %dir /usr/include/cups
250 /usr/include/cups/*
251 #/usr/lib/*.a
252 /usr/lib/*.so
253
254 %dir /usr/share/doc/cups/help
255 /usr/share/doc/cups/help/api*.html
256 /usr/share/doc/cups/help/spec*.html
257
258 %files libs
259 %defattr(-,root,root)
260 /usr/lib/*.so.*
261
262 %files lpd
263 %defattr(-,root,root)
264 #/etc/xinetd.d/cups-lpd
265 %dir /usr/lib/cups
266 %dir /usr/lib/cups/daemon
267 /usr/lib/cups/daemon/cups-lpd
268 %dir /usr/share/man/man8
269 /usr/share/man/man8/cups-lpd.8.gz
270
271 #
272 # End of "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $".
273 #