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