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