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