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