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