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