]> 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/*
174 %dir /usr/lib/cups/cgi-bin
175 /usr/lib/cups/cgi-bin/*
176 %dir /usr/lib/cups/daemon
177 /usr/lib/cups/daemon/cups-deviced
178 /usr/lib/cups/daemon/cups-driverd
179 /usr/lib/cups/daemon/cups-polld
180 %dir /usr/lib/cups/driver
181 %dir /usr/lib/cups/filter
182 /usr/lib/cups/filter/*
183 %dir /usr/lib/cups/notifier
184 /usr/lib/cups/notifier/*
185
186 /usr/sbin/*
187 %dir /usr/share/cups
188 /usr/share/cups/*
189 %dir /usr/share/doc/cups
190 /usr/share/doc/cups/*.*
191 %dir /usr/share/doc/cups/help
192 /usr/share/doc/cups/help/*-reference.html
193 /usr/share/doc/cups/help/man-*.html
194 /usr/share/doc/cups/help/network.html
195 /usr/share/doc/cups/help/overview.html
196 /usr/share/doc/cups/help/standard.html
197 /usr/share/doc/cups/help/whatsnew.html
198 %dir /usr/share/doc/cups/images
199 /usr/share/doc/cups/images/*
200 %dir /usr/share/locale
201 /usr/share/locale/*
202
203 %dir /usr/share/man/man1
204 /usr/share/man/man1/cancel.1.gz
205 /usr/share/man/man1/cupstestppd.1.gz
206 /usr/share/man/man1/lp.1.gz
207 /usr/share/man/man1/lpoptions.1.gz
208 /usr/share/man/man1/lppasswd.1.gz
209 /usr/share/man/man1/lpq.1.gz
210 /usr/share/man/man1/lpr.1.gz
211 /usr/share/man/man1/lprm.1.gz
212 /usr/share/man/man1/lpstat.1.gz
213 %dir /usr/share/man/man5
214 /usr/share/man/man5/*
215 %dir /usr/share/man/man8
216 /usr/share/man/man8/accept.8.gz
217 /usr/share/man/man8/cupsaddsmb.8.gz
218 /usr/share/man/man8/cupsd.8.gz
219 /usr/share/man/man8/cupsdisable.8.gz
220 /usr/share/man/man8/cupsenable.8.gz
221 /usr/share/man/man8/cups-polld.8.gz
222 /usr/share/man/man8/lpadmin.8.gz
223 /usr/share/man/man8/lpc.8.gz
224 /usr/share/man/man8/lpinfo.8.gz
225 /usr/share/man/man8/lpmove.8.gz
226 /usr/share/man/man8/reject.8.gz
227
228 %dir /var/cache/cups
229 %dir /var/cache/cups/ppd
230 %dir /var/log/cups
231 %dir /var/run/cups
232 %attr(0711,lp,root) %dir /var/run/cups/certs
233 %attr(0700,lp,root) %dir /var/spool/cups
234 %attr(1700,lp,root) %dir /var/spool/cups/tmp
235
236 %files devel
237 %defattr(-,root,root)
238 %dir /usr/share/man/man1
239 /usr/share/man/man1/backend.1.gz
240 /usr/share/man/man1/cups-config.1.gz
241 /usr/share/man/man1/filter.1.gz
242
243 /usr/bin/cups-config
244 %dir /usr/include/cups
245 /usr/include/cups/*
246 /usr/lib/*.a
247 /usr/lib/*.so
248
249 %dir /usr/share/doc/cups/help
250 /usr/share/doc/cups/help/api*.html
251 /usr/share/doc/cups/help/spec*.html
252
253 %files libs
254 %defattr(-,root,root)
255 /usr/lib/*.so.*
256
257 %files lpd
258 %defattr(-,root,root)
259 #/etc/xinetd.d/cups-lpd
260 %dir /usr/lib/cups
261 %dir /usr/lib/cups/daemon
262 /usr/lib/cups/daemon/cups-lpd
263 %dir /usr/share/man/man8
264 /usr/share/man/man8/cups-lpd.8.gz
265
266 #
267 # End of "$Id: cups.spec 4787 2005-10-13 20:13:21Z mike $".
268 #