]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) | |
4 | %bcond_with dnssd # DNS Service Discovery support via dns_sd API (obsoleted by Avahi patch) | |
5 | %bcond_without avahi # DNS Service Discovery support via Avahi | |
6 | %bcond_without gssapi # do not include GSSAPI support | |
7 | %bcond_without python # don't build Python support in web interface | |
8 | %bcond_without static_libs # don't build static library | |
9 | ||
10 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa | |
11 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
12 | Name: cups | |
13 | Version: 1.7.0 | |
14 | Release: 4 | |
15 | Epoch: 1 | |
16 | License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception | |
17 | Group: Applications/Printing | |
18 | Source0: http://www.cups.org/software/%{version}/%{name}-%{version}-source.tar.bz2 | |
19 | # Source0-md5: 5ab496a2ce27017fcdb3d7ec4818a75a | |
20 | Source1: %{name}.init | |
21 | Source2: %{name}.pamd | |
22 | Source3: %{name}.logrotate | |
23 | Source4: %{name}.mailto.conf | |
24 | Source5: %{name}-lpd.inetd | |
25 | Source6: %{name}-modprobe.conf | |
26 | Source7: %{name}.tmpfiles | |
27 | # svn diff http://svn.easysw.com/public/cups/tags/release-1.4.3/ http://svn.easysw.com/public/cups/branches/branch-1.4/ > cups-branch.diff | |
28 | # + drop config-scripts/cups-common.m4 change | |
29 | Patch0: %{name}-config.patch | |
30 | Patch2: %{name}-options.patch | |
31 | Patch3: %{name}-man_pages_linking.patch | |
32 | Patch4: %{name}-nostrip.patch | |
33 | Patch5: %{name}-certs_FHS.patch | |
34 | Patch6: %{name}-direct_usb.patch | |
35 | Patch7: %{name}-no-polluted-krb5config.patch | |
36 | Patch9: %{name}-verbose-compilation.patch | |
37 | Patch10: %{name}-peercred.patch | |
38 | Patch11: %{name}-usb.patch | |
39 | Patch12: %{name}-desktop.patch | |
40 | Patch13: %{name}-systemd-socket.patch | |
41 | Patch14: add-ipp-backend-of-cups-1.4.patch | |
42 | Patch15: reactivate_recommended_driver.patch | |
43 | Patch16: read-embedded-options-from-incoming-postscript-and-add-to-ipp-attrs.patch | |
44 | Patch17: %{name}-use-ipp1.1.patch | |
45 | Patch18: %{name}-final-content-type.patch | |
46 | Patch19: %{name}-jobhistory.patch | |
47 | Patch20: %{name}-stringpool-rdar15382819.patch | |
48 | # avahi patches from fedora | |
49 | Patch100: %{name}-avahi-address.patch | |
50 | Patch101: %{name}-avahi-no-threaded.patch | |
51 | URL: http://www.cups.org/ | |
52 | BuildRequires: acl-devel | |
53 | BuildRequires: autoconf >= 2.60 | |
54 | BuildRequires: automake | |
55 | %{?with_dnssd:BuildRequires: avahi-compat-libdns_sd-devel} | |
56 | %{?with_avahi:BuildRequires: avahi-devel} | |
57 | BuildRequires: dbus-devel | |
58 | BuildRequires: glibc-headers | |
59 | %{?with_gnutls:BuildRequires: gnutls-devel} | |
60 | %{?with_gssapi:BuildRequires: heimdal-devel} | |
61 | BuildRequires: libjpeg-devel | |
62 | BuildRequires: libpaper-devel | |
63 | BuildRequires: libpng-devel | |
64 | BuildRequires: libstdc++-devel | |
65 | BuildRequires: libtiff-devel | |
66 | BuildRequires: libusb-devel >= 1.0 | |
67 | %{!?with_gnutls:BuildRequires: openssl-devel} | |
68 | BuildRequires: pam-devel | |
69 | BuildRequires: pkgconfig | |
70 | BuildRequires: rpmbuild(macros) >= 1.641 | |
71 | BuildRequires: systemd-devel | |
72 | BuildRequires: zlib-devel | |
73 | Requires(post,preun): /sbin/chkconfig | |
74 | Requires(post,preun,postun): systemd-units >= 38 | |
75 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
76 | Requires: cups-filters | |
77 | Requires: openssl-tools | |
78 | Requires: pam >= 0.77.3 | |
79 | Requires: rc-scripts | |
80 | Requires: systemd-units >= 38 | |
81 | Suggests: ImageMagick-coder-pdf | |
82 | Suggests: poppler-progs | |
83 | Provides: printingdaemon | |
84 | Obsoletes: printingdaemon | |
85 | Conflicts: ghostscript < 7.05.4 | |
86 | Conflicts: hplip < 3.13.11 | |
87 | Conflicts: logrotate < 3.7-4 | |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
89 | ||
90 | %define _ulibdir %{_prefix}/lib | |
91 | ||
92 | %description | |
93 | CUPS provides a portable printing layer for UNIX-based operating | |
94 | systems. It has been developed by Easy Software Products to promote a | |
95 | standard printing solution for all UNIX vendors and users. CUPS | |
96 | provides the System V and Berkeley command-line interfaces. CUPS uses | |
97 | the Internet Printing Protocol ("IPP") as the basis for managing print | |
98 | jobs and queues. The Line Printer Daemon ("LPD") Server Message Block | |
99 | ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported | |
100 | with reduced functionality. CUPS adds network printer browsing and | |
101 | PostScript Printer Description ("PPD") based printing options to | |
102 | support real-world printing under UNIX. | |
103 | ||
104 | %description -l pl.UTF-8 | |
105 | CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych. | |
106 | CUPS używa protokołu IPP - Internet Printint Protocol jako podstawy do | |
107 | zarządzania zadaniami i kolejkami druku. W ograniczonym zakresie | |
108 | obsługiwane są także protokoły LPD (Line Printer Daemon), SMB (Server | |
109 | Message Block) i AppSocket (znany także jako JetDirect). CUPS | |
110 | udostępnia przeglądanie drukarek sieciowych i opcje drukowania oparte | |
111 | na PPD (PostScript Printer Description) do obsługi rzeczywistych | |
112 | drukarek. | |
113 | ||
114 | %description -l pt_BR.UTF-8 | |
115 | O sistema Unix de impressão (CUPS) fornece uma camada de impressão | |
116 | portável para os sistemas operacionais baseados no UNIX®. | |
117 | ||
118 | %package lib | |
119 | Summary: Common Unix Printing System Libraries | |
120 | Summary(pl.UTF-8): Biblioteki dla CUPS | |
121 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
122 | License: LGPL v2 + openssl exception | |
123 | Group: Libraries | |
124 | Provides: %{name}-libs = %{epoch}:%{version}-%{release} | |
125 | Obsoletes: cups-libs | |
126 | Obsoletes: libcups1 | |
127 | ||
128 | %description lib | |
129 | Common Unix Printing System Libraries. | |
130 | ||
131 | %description lib -l pl.UTF-8 | |
132 | Biblioteki dla CUPS. | |
133 | ||
134 | %description lib -l pt_BR.UTF-8 | |
135 | Bibliotecas CUPS requeridas pelos clientes CUPS. | |
136 | ||
137 | %package clients | |
138 | Summary: Common Unix Printing System Clients | |
139 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS | |
140 | License: GPL v2 + openssl exception | |
141 | Group: Applications/Printing | |
142 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
143 | Provides: printingclient | |
144 | Obsoletes: printingclient | |
145 | ||
146 | %description clients | |
147 | Common Unix Printing System Clients. | |
148 | ||
149 | %description clients -l pl.UTF-8 | |
150 | Aplikacje klienckie dla CUPS. | |
151 | ||
152 | %package image-lib | |
153 | Summary: Common Unix Printing System Libraries - images manipulation | |
154 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych | |
155 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
156 | License: LGPL v2 + openssl exception | |
157 | Group: Libraries | |
158 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
159 | Obsoletes: libcups1 | |
160 | ||
161 | %description image-lib | |
162 | Common Unix Printing System Libraries - images manipalation. | |
163 | ||
164 | %description image-lib -l pl.UTF-8 | |
165 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
166 | ||
167 | %description image-lib -l pt_BR.UTF-8 | |
168 | Bibliotecas CUPS requeridas pelos clientes CUPS. | |
169 | ||
170 | %package devel | |
171 | Summary: Common Unix Printing System development files | |
172 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe | |
173 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
174 | License: LGPL v2 + openssl exception | |
175 | Group: Development/Libraries | |
176 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} | |
177 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
178 | # for libcups | |
179 | %{?with_gnutls:Requires: gnutls-devel} | |
180 | %{?with_gssapi:Requires: heimdal-devel} | |
181 | %{!?with_gnutls:Requires: openssl-devel} | |
182 | Requires: zlib-devel | |
183 | # for libcupsimage | |
184 | Requires: libjpeg-devel | |
185 | Requires: libpng-devel | |
186 | Requires: libtiff-devel | |
187 | Obsoletes: libcups1-devel | |
188 | ||
189 | %description devel | |
190 | Common Unix Printing System development files. | |
191 | ||
192 | %description devel -l pl.UTF-8 | |
193 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
194 | ||
195 | %description devel -l pt_BR.UTF-8 | |
196 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
197 | para a criação de suporte a novas impressoras e novos serviços ao | |
198 | CUPS. | |
199 | ||
200 | %package static | |
201 | Summary: Common Unix Printing System static libraries | |
202 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne | |
203 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
204 | License: LGPL v2 + openssl exception | |
205 | Group: Development/Libraries | |
206 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
207 | ||
208 | %description static | |
209 | Common Unix Printing System static libraries. | |
210 | ||
211 | %description static -l pl.UTF-8 | |
212 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
213 | ||
214 | %description static -l pt_BR.UTF-8 | |
215 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
216 | bibliotecas do CUPS. | |
217 | ||
218 | %package backend-usb | |
219 | Summary: USB backend for CUPS | |
220 | Summary(pl.UTF-8): Backend USB dla CUPS-a | |
221 | License: GPL v2 + openssl exception | |
222 | Group: Applications/Printing | |
223 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
224 | ||
225 | %description backend-usb | |
226 | This package allow CUPS printing on USB printers. | |
227 | ||
228 | %description backend-usb -l pl.UTF-8 | |
229 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
230 | ||
231 | %package lpd | |
232 | Summary: LPD compatibility support for CUPS print server | |
233 | Summary(pl.UTF-8): Wsparcie dla LPD w serwerze wydruków CUPS | |
234 | License: GPL v2 + openssl exception | |
235 | Group: Applications/Printing | |
236 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
237 | Requires: rc-inetd | |
238 | ||
239 | %description lpd | |
240 | LPD compatibility support for CUPS print server. | |
241 | ||
242 | %description lpd -l pl.UTF-8 | |
243 | Wsparcie dla LPD w serwerze wydruków CUPS. | |
244 | ||
245 | %prep | |
246 | %setup -q | |
247 | %patch0 -p1 | |
248 | %patch2 -p1 | |
249 | %patch3 -p1 | |
250 | %patch4 -p1 | |
251 | %patch5 -p1 | |
252 | # why it hasn't been merged for so long (and why no other distro uses it) | |
253 | #%patch6 -p1 | |
254 | %patch7 -p1 | |
255 | %patch9 -p1 | |
256 | %patch10 -p1 | |
257 | # why it hasn't been merged for so long (and why no other distro uses it) | |
258 | #%patch11 -p1 | |
259 | %patch12 -p1 | |
260 | %patch13 -p1 | |
261 | %patch14 -p1 | |
262 | %patch15 -p1 | |
263 | %patch16 -p1 | |
264 | %patch17 -p1 | |
265 | %patch18 -p1 | |
266 | %patch19 -p1 | |
267 | %patch20 -p1 | |
268 | ||
269 | %if %{with avahi} | |
270 | %patch100 -p1 | |
271 | %patch101 -p1 | |
272 | %endif | |
273 | ||
274 | %build | |
275 | %{__aclocal} -I config-scripts | |
276 | %{__autoconf} | |
277 | %configure \ | |
278 | --libdir=%{_ulibdir} \ | |
279 | --enable-acl \ | |
280 | --enable-avahi%{!?with_avahi:=no} \ | |
281 | --disable-cdsassl \ | |
282 | --enable-dbus \ | |
283 | %{?debug:--enable-debug} \ | |
284 | --enable-dnssd%{!?with_dnssd:=no} \ | |
285 | --enable-gnutls%{!?with_gnutls:=no} \ | |
286 | --enable-gssapi%{!?with_gssapi:=no} \ | |
287 | --enable-libpaper \ | |
288 | --enable-libusb \ | |
289 | --enable-openssl%{?with_gnutls:=no} \ | |
290 | --enable-shared \ | |
291 | --enable-ssl \ | |
292 | %{?with_static_libs:--enable-static} \ | |
293 | --with-cups-group=lp \ | |
294 | --with-cups-user=lp \ | |
295 | --with-system-groups=sys \ | |
296 | --with-config-file-perm=0640 \ | |
297 | --with-log-file-perm=0640 \ | |
298 | --with-dbusdir=/etc/dbus-1 \ | |
299 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ | |
300 | --with-printcap=/etc/printcap \ | |
301 | %{?with_dnssd:--with-dnssd-libs=x} \ | |
302 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
303 | --with-optim=-Wno-format-y2k \ | |
304 | %{?with_python:--with-python=%{_bindir}/python} \ | |
305 | --with-systemdsystemunitdir=%{systemdunitdir} | |
306 | ||
307 | %{__make} %{?debug:OPTIONS="-DDEBUG"} | |
308 | ||
309 | %install | |
310 | rm -rf $RPM_BUILD_ROOT | |
311 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,modprobe.d,security,sysconfig/rc-inetd} \ | |
312 | $RPM_BUILD_ROOT/var/run/cups \ | |
313 | $RPM_BUILD_ROOT/var/log/{,archive/}cups \ | |
314 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}} | |
315 | ||
316 | %{__make} install \ | |
317 | BUILDROOT=$RPM_BUILD_ROOT \ | |
318 | CUPS_USER=$(id -u) \ | |
319 | CUPS_GROUP=$(id -g) | |
320 | ||
321 | if [ "%{_lib}" != "lib" ] ; then | |
322 | install -d $RPM_BUILD_ROOT%{_libdir} | |
323 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
324 | %if %{with static_libs} | |
325 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} | |
326 | %endif | |
327 | fi | |
328 | ||
329 | %if %{with avahi} | |
330 | ln -s %{_ulibdir}/cups/backend/dnssd $RPM_BUILD_ROOT%{_ulibdir}/cups/backend/mdns | |
331 | %endif | |
332 | ||
333 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
334 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
335 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
336 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf | |
337 | sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd | |
338 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/modprobe.d/cups.conf | |
339 | install %{SOURCE7} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
340 | ||
341 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} | |
342 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups | |
343 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers}.conf | |
344 | ||
345 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/client.conf <<'EOF' | |
346 | # Encryption Always | |
347 | # ServerName print.server.ip.or.name | |
348 | EOF | |
349 | ||
350 | # windows drivers can be put there. | |
351 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
352 | ||
353 | # dirs for gimp-print-cups-4.2.7-1 | |
354 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
355 | ||
356 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index | |
357 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache | |
358 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat | |
359 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl | |
360 | ||
361 | # links to enable/disable (compatibility!) | |
362 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable | |
363 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
364 | ||
365 | # check-files cleanup | |
366 | %{__rm} -r $RPM_BUILD_ROOT/etc/{init.d,rc?.d} | |
367 | ||
368 | # shipped in cups-filters | |
369 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cups/banners | |
370 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/cups/data/testprint | |
371 | ||
372 | %clean | |
373 | rm -rf $RPM_BUILD_ROOT | |
374 | ||
375 | %post | |
376 | # Deal with config migration due to CVE-2012-5519 (STR #4223) | |
377 | _keywords="^\(AccessLog\|CacheDir\|ConfigFilePerm\|\ | |
378 | DataDir\|DocumentRoot\|ErrorLog\|FatalErrors\|\ | |
379 | FileDevice\|FontPath\|Group\|LogFilePerm\|\ | |
380 | LPDConfigFile\|PageLog\|Printcap\|PrintcapFormat\|\ | |
381 | RemoteRoot\|RequestRoot\|ServerBin\|ServerCertificate\|\ | |
382 | ServerKey\|ServerRoot\|SMBConfigFile\|StateDir\|\ | |
383 | SystemGroup\|SystemGroupAuthKey\|TempDir\|User\)" | |
384 | if [ -f %{_sysconfdir}/cups/cupsd.conf ] && grep -iq "$_keywords" %{_sysconfdir}/cups/cupsd.conf; then | |
385 | echo "# Settings automatically moved from cupsd.conf by RPM package:" >> %{_sysconfdir}/cups/cups-files.conf | |
386 | grep -i "$_keywords" %{_sysconfdir}/cups/cupsd.conf >> %{_sysconfdir}/cups/cups-files.conf || : | |
387 | %{__sed} -i -e "s,$_keywords,#&,ig" %{_sysconfdir}/cups/cupsd.conf || : | |
388 | fi | |
389 | /sbin/chkconfig --add cups | |
390 | %service cups restart "cups daemon" | |
391 | /sbin/rmmod usblp > /dev/null 2>&1 || : | |
392 | %systemd_post cups.service cups.socket cups.path | |
393 | ||
394 | %preun | |
395 | if [ "$1" = "0" ]; then | |
396 | %service cups stop | |
397 | /sbin/chkconfig --del cups | |
398 | fi | |
399 | %systemd_preun cups.service cups.socket cups.path | |
400 | ||
401 | %postun | |
402 | %systemd_reload | |
403 | ||
404 | %triggerpostun -- cups < 1:1.5.2-1 | |
405 | %systemd_trigger cups.service cups.socket cups.path | |
406 | ||
407 | %post lib -p /sbin/ldconfig | |
408 | %postun lib -p /sbin/ldconfig | |
409 | %post image-lib -p /sbin/ldconfig | |
410 | %postun image-lib -p /sbin/ldconfig | |
411 | ||
412 | %post lpd | |
413 | %service -q rc-inetd reload | |
414 | ||
415 | %postun lpd | |
416 | if [ "$1" = 0 ]; then | |
417 | %service -q rc-inetd reload | |
418 | fi | |
419 | ||
420 | %files | |
421 | %defattr(644,root,root,755) | |
422 | %doc *.txt | |
423 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/cups | |
424 | %attr(754,root,root) /etc/rc.d/init.d/cups | |
425 | /etc/dbus-1/system.d/cups.conf | |
426 | /etc/modprobe.d/cups.conf | |
427 | %{systemdunitdir}/cups.service | |
428 | %{systemdunitdir}/cups.socket | |
429 | %{systemdunitdir}/cups.path | |
430 | %{systemdtmpfilesdir}/%{name}.conf | |
431 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf | |
432 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cups-files.conf | |
433 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf | |
434 | %attr(640,root,lp) %{_sysconfdir}/%{name}/cupsd.conf.default | |
435 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf | |
436 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf | |
437 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf | |
438 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups | |
439 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl | |
440 | %dir %{_sysconfdir}/%{name}/interfaces | |
441 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd | |
442 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
443 | %attr(4755,lp,root) %{_bindir}/lppasswd | |
444 | %attr(755,root,root) %{_bindir}/cupstestppd | |
445 | %attr(755,root,root) %{_bindir}/cupstestdsc | |
446 | %attr(755,root,root) %{_bindir}/ppd* | |
447 | %attr(755,root,root) %{_sbindir}/cupsctl | |
448 | %attr(755,root,root) %{_sbindir}/cupsd | |
449 | %attr(755,root,root) %{_sbindir}/cupsfilter | |
450 | ||
451 | %dir %{_ulibdir}/cups | |
452 | %dir %{_ulibdir}/cups/backend | |
453 | %if %{with avahi} | |
454 | %attr(755,root,root) %{_ulibdir}/cups/backend/dnssd | |
455 | %attr(755,root,root) %{_ulibdir}/cups/backend/mdns | |
456 | %endif | |
457 | %attr(755,root,root) %{_ulibdir}/cups/backend/http | |
458 | %attr(755,root,root) %{_ulibdir}/cups/backend/https | |
459 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipp | |
460 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipp14 | |
461 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipps | |
462 | %attr(755,root,root) %{_ulibdir}/cups/backend/lpd | |
463 | %attr(755,root,root) %{_ulibdir}/cups/backend/snmp | |
464 | %attr(755,root,root) %{_ulibdir}/cups/backend/socket | |
465 | ||
466 | %dir %{_ulibdir}/cups/cgi-bin | |
467 | %{_ulibdir}/cups/cgi-bin/help | |
468 | %{_ulibdir}/cups/cgi-bin/images | |
469 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
470 | %{_ulibdir}/cups/cgi-bin/*.css | |
471 | %{_ulibdir}/cups/cgi-bin/*.html | |
472 | %{_ulibdir}/cups/cgi-bin/*.txt | |
473 | %lang(ca) %{_ulibdir}/cups/cgi-bin/ca | |
474 | %lang(cs) %{_ulibdir}/cups/cgi-bin/cs | |
475 | %lang(es) %{_ulibdir}/cups/cgi-bin/es | |
476 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr | |
477 | %lang(it) %{_ulibdir}/cups/cgi-bin/it | |
478 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja | |
479 | %lang(ru) %{_ulibdir}/cups/cgi-bin/ru | |
480 | ||
481 | %dir %{_ulibdir}/cups/daemon | |
482 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced | |
483 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd | |
484 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-exec | |
485 | %dir %{_ulibdir}/cups/filter | |
486 | %attr(755,root,root) %{_ulibdir}/cups/filter/commandtops | |
487 | %attr(755,root,root) %{_ulibdir}/cups/filter/gziptoany | |
488 | %attr(755,root,root) %{_ulibdir}/cups/filter/pstops | |
489 | %attr(755,root,root) %{_ulibdir}/cups/filter/rastertodymo | |
490 | %attr(755,root,root) %{_ulibdir}/cups/filter/rastertoepson | |
491 | %attr(755,root,root) %{_ulibdir}/cups/filter/rastertohp | |
492 | %attr(755,root,root) %{_ulibdir}/cups/filter/rastertolabel | |
493 | %attr(755,root,root) %{_ulibdir}/cups/filter/rastertopwg | |
494 | %dir %{_ulibdir}/cups/monitor | |
495 | %attr(755,root,root) %{_ulibdir}/cups/monitor/bcp | |
496 | %attr(755,root,root) %{_ulibdir}/cups/monitor/tbcp | |
497 | %dir %{_ulibdir}/cups/notifier | |
498 | %attr(755,root,root) %{_ulibdir}/cups/notifier/dbus | |
499 | %attr(755,root,root) %{_ulibdir}/cups/notifier/mailto | |
500 | %attr(755,root,root) %{_ulibdir}/cups/notifier/rss | |
501 | ||
502 | %dir %{_datadir}/cups/data | |
503 | %dir %{_datadir}/cups/drivers | |
504 | %dir %{_datadir}/cups/drv | |
505 | %{_datadir}/cups/drv/sample.drv | |
506 | %dir %{_datadir}/cups/examples | |
507 | %{_datadir}/cups/examples/*.drv | |
508 | %dir %{_datadir}/cups/mime | |
509 | %{_datadir}/cups/mime/mime.convs | |
510 | %{_datadir}/cups/mime/mime.types | |
511 | %dir %{_datadir}/cups/model | |
512 | # dirs for gimp-print-cups-4.2.7-1 | |
513 | %dir %{_datadir}/cups/model/C | |
514 | %lang(da) %dir %{_datadir}/cups/model/da | |
515 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
516 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
517 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
518 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
519 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
520 | ||
521 | %dir %{_datadir}/cups/ppdc | |
522 | %{_datadir}/cups/ppdc/epson.h | |
523 | %{_datadir}/cups/ppdc/hp.h | |
524 | %{_datadir}/cups/ppdc/label.h | |
525 | %{_datadir}/cups/ppdc/font.defs | |
526 | %{_datadir}/cups/ppdc/media.defs | |
527 | %{_datadir}/cups/ppdc/raster.defs | |
528 | ||
529 | %dir %{_datadir}/cups/templates | |
530 | %{_datadir}/cups/templates/*.tmpl | |
531 | %lang(ca) %{_datadir}/cups/templates/ca | |
532 | %lang(cs) %{_datadir}/cups/templates/cs | |
533 | %lang(es) %{_datadir}/cups/templates/es | |
534 | %lang(fr) %{_datadir}/cups/templates/fr | |
535 | %lang(it) %{_datadir}/cups/templates/it | |
536 | %lang(ja) %{_datadir}/cups/templates/ja | |
537 | %lang(ru) %{_datadir}/cups/templates/ru | |
538 | %{_mandir}/man1/cupstestppd.1* | |
539 | %{_mandir}/man1/cupstestdsc.1* | |
540 | %{_mandir}/man1/lppasswd.1* | |
541 | %{_mandir}/man1/ppd*.1* | |
542 | %{_mandir}/man7/backend.7* | |
543 | %{_mandir}/man7/filter.7* | |
544 | %{_mandir}/man7/notifier.7* | |
545 | %{_mandir}/man5/classes.conf.5* | |
546 | %{_mandir}/man5/cups-files.conf.5* | |
547 | %{_mandir}/man5/cups-snmp.conf.5* | |
548 | %{_mandir}/man5/cupsd.conf.5* | |
549 | %{_mandir}/man5/ipptoolfile.5* | |
550 | %{_mandir}/man5/mailto.conf.5* | |
551 | %{_mandir}/man5/mime.convs.5* | |
552 | %{_mandir}/man5/mime.types.5* | |
553 | %{_mandir}/man5/ppdcfile.5* | |
554 | %{_mandir}/man5/printers.conf.5* | |
555 | %{_mandir}/man5/subscriptions.conf.5* | |
556 | %{_mandir}/man8/cups-deviced.8* | |
557 | %{_mandir}/man8/cups-driverd.8* | |
558 | %{_mandir}/man8/cups-snmp.8* | |
559 | %{_mandir}/man8/cupsctl.8* | |
560 | %{_mandir}/man8/cupsd.8* | |
561 | %{_mandir}/man8/cupsfilter.8* | |
562 | ||
563 | %dir %attr(775,root,lp) /var/cache/cups | |
564 | %dir %attr(755,root,lp) /var/lib/cups | |
565 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
566 | %dir %attr(755,root,lp) /var/run/cups | |
567 | %dir %attr(710,root,lp) /var/spool/cups | |
568 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
569 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index | |
570 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache | |
571 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat | |
572 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache | |
573 | %attr(750,root,logs) %dir /var/log/archive/cups | |
574 | %attr(750,root,logs) %dir /var/log/cups | |
575 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
576 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
577 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
578 | ||
579 | %files lib | |
580 | %defattr(644,root,root,755) | |
581 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} | |
582 | %attr(755,root,root) %{_libdir}/libcups.so.* | |
583 | %attr(755,root,root) %{_libdir}/libcupscgi.so.* | |
584 | %attr(755,root,root) %{_libdir}/libcupsmime.so.* | |
585 | %attr(755,root,root) %{_libdir}/libcupsppdc.so.* | |
586 | %dir %{_datadir}/cups | |
587 | %lang(ca) %{_datadir}/locale/ca/cups_ca.po | |
588 | %lang(cs) %{_datadir}/locale/cs/cups_cs.po | |
589 | %lang(es) %{_datadir}/locale/es/cups_es.po | |
590 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po | |
591 | %lang(it) %{_datadir}/locale/it/cups_it.po | |
592 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po | |
593 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po | |
594 | ||
595 | %files clients | |
596 | %defattr(644,root,root,755) | |
597 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf | |
598 | %attr(755,root,root) %{_bindir}/cancel | |
599 | %attr(755,root,root) %{_bindir}/ippfind | |
600 | %attr(755,root,root) %{_bindir}/ipptool | |
601 | %attr(755,root,root) %{_bindir}/lp | |
602 | %attr(755,root,root) %{_bindir}/lpoptions | |
603 | %attr(755,root,root) %{_bindir}/lpq | |
604 | %attr(755,root,root) %{_bindir}/lpr | |
605 | %attr(755,root,root) %{_bindir}/lprm | |
606 | %attr(755,root,root) %{_bindir}/lpstat | |
607 | %attr(755,root,root) %{_sbindir}/accept | |
608 | %attr(755,root,root) %{_sbindir}/cupsaccept | |
609 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
610 | %attr(755,root,root) %{_sbindir}/cupsenable | |
611 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
612 | %attr(755,root,root) %{_sbindir}/cupsreject | |
613 | %attr(755,root,root) %{_sbindir}/disable | |
614 | %attr(755,root,root) %{_sbindir}/enable | |
615 | %attr(755,root,root) %{_sbindir}/lpadmin | |
616 | %attr(755,root,root) %{_sbindir}/lpc | |
617 | %attr(755,root,root) %{_sbindir}/lpinfo | |
618 | %attr(755,root,root) %{_sbindir}/lpmove | |
619 | %attr(755,root,root) %{_sbindir}/reject | |
620 | %{_datadir}/cups/ipptool | |
621 | %{_desktopdir}/cups.desktop | |
622 | %{_iconsdir}/hicolor/*/apps/cups.png | |
623 | %{_mandir}/man1/cancel.1* | |
624 | %{_mandir}/man1/ippfind.1* | |
625 | %{_mandir}/man1/ipptool.1* | |
626 | %{_mandir}/man1/lp.1* | |
627 | %{_mandir}/man1/lpoptions.1* | |
628 | %{_mandir}/man1/lpq.1* | |
629 | %{_mandir}/man1/lpr.1* | |
630 | %{_mandir}/man1/lprm.1* | |
631 | %{_mandir}/man1/lpstat.1* | |
632 | %{_mandir}/man5/client.conf.5* | |
633 | %{_mandir}/man8/accept.8* | |
634 | %{_mandir}/man8/cupsaccept.8* | |
635 | %{_mandir}/man8/cupsaddsmb.8* | |
636 | %{_mandir}/man8/cupsenable.8* | |
637 | %{_mandir}/man8/cupsdisable.8* | |
638 | %{_mandir}/man8/cupsreject.8* | |
639 | %{_mandir}/man8/lpadmin.8* | |
640 | %{_mandir}/man8/lpc.8* | |
641 | %{_mandir}/man8/lpinfo.8* | |
642 | %{_mandir}/man8/lpmove.8* | |
643 | %{_mandir}/man8/reject.8* | |
644 | ||
645 | %files image-lib | |
646 | %defattr(644,root,root,755) | |
647 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* | |
648 | ||
649 | %files devel | |
650 | %defattr(644,root,root,755) | |
651 | %attr(755,root,root) %{_bindir}/cups-config | |
652 | %attr(755,root,root) %{_libdir}/libcups.so | |
653 | %attr(755,root,root) %{_libdir}/libcupscgi.so | |
654 | %attr(755,root,root) %{_libdir}/libcupsimage.so | |
655 | %attr(755,root,root) %{_libdir}/libcupsmime.so | |
656 | %attr(755,root,root) %{_libdir}/libcupsppdc.so | |
657 | %{_includedir}/cups | |
658 | %{_mandir}/man1/cups-config.1* | |
659 | ||
660 | %if %{with static_libs} | |
661 | %files static | |
662 | %defattr(644,root,root,755) | |
663 | %{_libdir}/libcups.a | |
664 | %{_libdir}/libcupscgi.a | |
665 | %{_libdir}/libcupsimage.a | |
666 | %{_libdir}/libcupsmime.a | |
667 | %{_libdir}/libcupsppdc.a | |
668 | %endif | |
669 | ||
670 | %files backend-usb | |
671 | %defattr(644,root,root,755) | |
672 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb | |
673 | %dir %{_datadir}/cups/usb | |
674 | %{_datadir}/cups/usb/org.cups.usb-quirks | |
675 | ||
676 | %files lpd | |
677 | %defattr(644,root,root,755) | |
678 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/cups-lpd | |
679 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd | |
680 | %{_mandir}/man8/cups-lpd.8* |