]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - build/install java ext ? | |
3 | # - perl BRs | |
4 | # - remove obsolete /etc/cups/certs (trigger?) | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) | |
8 | %bcond_without php # don't build PHP extension | |
9 | %bcond_without perl # don't build Perl extension | |
10 | %bcond_without static_libs # don't build static library | |
11 | # | |
12 | %include /usr/lib/rpm/macros.perl | |
13 | %define pdir CUPS | |
14 | Summary: Common Unix Printing System | |
15 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa | |
16 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
17 | Name: cups | |
18 | Version: 1.2.12 | |
19 | Release: 2 | |
20 | Epoch: 1 | |
21 | License: GPL/LGPL | |
22 | Group: Applications/Printing | |
23 | Source0: http://ftp.easysw.com/pub/cups/%{version}/%{name}-%{version}-source.tar.bz2 | |
24 | # Source0-md5: d410658468384b5ba5d04a808f6157fe | |
25 | Source1: %{name}.init | |
26 | Source2: %{name}.pamd | |
27 | Source3: %{name}.logrotate | |
28 | Source4: %{name}.mailto.conf | |
29 | Patch0: %{name}-config.patch | |
30 | Patch1: %{name}-lp-lpr.patch | |
31 | Patch2: %{name}-options.patch | |
32 | Patch3: %{name}-man_pages_linking.patch | |
33 | Patch4: %{name}-nostrip.patch | |
34 | Patch5: %{name}-templates.patch | |
35 | Patch6: %{name}-certs_FHS.patch | |
36 | URL: http://www.cups.org/ | |
37 | BuildRequires: acl-devel | |
38 | BuildRequires: autoconf | |
39 | BuildRequires: automake | |
40 | BuildRequires: dbus-devel | |
41 | %{?with_gnutls:BuildRequires: gnutls-devel} | |
42 | BuildRequires: libjpeg-devel | |
43 | BuildRequires: libpng-devel | |
44 | BuildRequires: libstdc++-devel | |
45 | BuildRequires: libtiff-devel | |
46 | BuildRequires: openldap-devel | |
47 | BuildRequires: openslp-devel | |
48 | %{!?with_gnutls:BuildRequires: openssl-devel} | |
49 | BuildRequires: pam-devel | |
50 | %{?with_php:BuildRequires: php-devel >= 4:5.0.0} | |
51 | BuildRequires: pkgconfig | |
52 | BuildRequires: rpm-perlprov | |
53 | BuildRequires: rpmbuild(macros) >= 1.344 | |
54 | Requires(post,preun): /sbin/chkconfig | |
55 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
56 | Requires: pam >= 0.77.3 | |
57 | Requires: rc-scripts | |
58 | Obsoletes: printingdaemon | |
59 | Provides: printingdaemon | |
60 | Conflicts: ghostscript < 7.05.4 | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %define _ulibdir %{_prefix}/lib | |
64 | ||
65 | %description | |
66 | CUPS provides a portable printing layer for UNIX-based operating | |
67 | systems. It has been developed by Easy Software Products to promote a | |
68 | standard printing solution for all UNIX vendors and users. CUPS | |
69 | provides the System V and Berkeley command-line interfaces. CUPS uses | |
70 | the Internet Printing Protocol ("IPP") as the basis for managing print | |
71 | jobs and queues. The Line Printer Daemon ("LPD") Server Message Block | |
72 | ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported | |
73 | with reduced functionality. CUPS adds network printer browsing and | |
74 | PostScript Printer Description ("PPD") based printing options to | |
75 | support real-world printing under UNIX. | |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych. | |
79 | CUPS używa protokołu IPP - Internet Printint Protocol jako podstawy do | |
80 | zarządzania zadaniami i kolejkami druku. W ograniczonym zakresie | |
81 | obsługiwane są także protokoły LPD (Line Printer Daemon), SMB (Server | |
82 | Message Block) i AppSocket (znany także jako JetDirect). CUPS | |
83 | udostępnia przeglądanie drukarek sieciowych i opcje drukowania oparte | |
84 | na PPD (PostScript Printer Description) do obsługi rzeczywistych | |
85 | drukarek. | |
86 | ||
87 | %description -l pt_BR.UTF-8 | |
88 | O sistema Unix de impressão (CUPS) fornece uma camada de impressão | |
89 | portável para os sistemas operacionais baseados no UNIX®. | |
90 | ||
91 | %package lib | |
92 | Summary: Common Unix Printing System Libraries | |
93 | Summary(pl.UTF-8): Biblioteki dla CUPS | |
94 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
95 | Group: Libraries | |
96 | Provides: %{name}-libs = %{epoch}:%{version}-%{release} | |
97 | Obsoletes: cups-libs | |
98 | Obsoletes: libcups1 | |
99 | ||
100 | %description lib | |
101 | Common Unix Printing System Libraries. | |
102 | ||
103 | %description lib -l pl.UTF-8 | |
104 | Biblioteki dla CUPS. | |
105 | ||
106 | %description lib -l pt_BR.UTF-8 | |
107 | Bibliotecas CUPS requeridas pelos clientes CUPS. | |
108 | ||
109 | %package clients | |
110 | Summary: Common Unix Printing System Clients | |
111 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS | |
112 | Group: Applications/Printing | |
113 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
114 | Obsoletes: printingclient | |
115 | Provides: printingclient | |
116 | ||
117 | %description clients | |
118 | Common Unix Printing System Clients. | |
119 | ||
120 | %description clients -l pl.UTF-8 | |
121 | Aplikacje klienckie dla CUPS. | |
122 | ||
123 | %package image-lib | |
124 | Summary: Common Unix Printing System Libraries - images manipulation | |
125 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych | |
126 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
127 | Group: Libraries | |
128 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
129 | Obsoletes: libcups1 | |
130 | ||
131 | %description image-lib | |
132 | Common Unix Printing System Libraries - images manupalation. | |
133 | ||
134 | %description image-lib -l pl.UTF-8 | |
135 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
136 | ||
137 | %description image-lib -l pt_BR.UTF-8 | |
138 | Bibliotecas CUPS requeridas pelos clientes CUPS. | |
139 | ||
140 | %package devel | |
141 | Summary: Common Unix Printing System development files | |
142 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe | |
143 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
144 | Group: Development/Libraries | |
145 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} | |
146 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
147 | %{?with_gnutls:Requires: gnutls-devel} | |
148 | %{!?with_gnutls:Requires: openssl-devel} | |
149 | Requires: zlib-devel | |
150 | Obsoletes: libcups1-devel | |
151 | ||
152 | %description devel | |
153 | Common Unix Printing System development files. | |
154 | ||
155 | %description devel -l pl.UTF-8 | |
156 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
157 | ||
158 | %description devel -l pt_BR.UTF-8 | |
159 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
160 | para a criação de suporte a novas impressoras e novos serviços ao | |
161 | CUPS. | |
162 | ||
163 | %package static | |
164 | Summary: Common Unix Printing System static libraries | |
165 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne | |
166 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
167 | Group: Development/Libraries | |
168 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
169 | ||
170 | %description static | |
171 | Common Unix Printing System static libraries. | |
172 | ||
173 | %description static -l pl.UTF-8 | |
174 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
175 | ||
176 | %description static -l pt_BR.UTF-8 | |
177 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
178 | bibliotecas do CUPS. | |
179 | ||
180 | %package -n perl-cups | |
181 | Summary: Perl module for CUPS | |
182 | Summary(pl.UTF-8): Moduł Perla CUPS | |
183 | Group: Development/Languages/Perl | |
184 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
185 | ||
186 | %description -n perl-cups | |
187 | Perl module for Common Unix Printing System. | |
188 | ||
189 | %description -n perl-cups -l pl.UTF-8 | |
190 | Moduł Perla do ogólnego systemu druku dla Uniksa. | |
191 | ||
192 | %package -n php-cups | |
193 | Summary: PHP module for CUPS | |
194 | Summary(pl.UTF-8): Moduł PHP CUPS | |
195 | Group: Development/Languages/PHP | |
196 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
197 | %{?requires_php_extension} | |
198 | Requires: /etc/php/conf.d | |
199 | Requires: php-common >= 4:5.0.0 | |
200 | ||
201 | %description -n php-cups | |
202 | PHP module for Common Unix Printing System. | |
203 | ||
204 | %description -n php-cups -l pl.UTF-8 | |
205 | Moduł PHP do ogólnego systemu druku dla Uniksa. | |
206 | ||
207 | %package backend-usb | |
208 | Summary: USB backend for CUPS | |
209 | Summary(pl.UTF-8): Backend USB dla CUPS-a | |
210 | Group: Applications/Printing | |
211 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
212 | ||
213 | %description backend-usb | |
214 | This package allow CUPS printing on USB printers. | |
215 | ||
216 | %description backend-usb -l pl.UTF-8 | |
217 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
218 | ||
219 | %package backend-serial | |
220 | Summary: Serial port backend for CUPS | |
221 | Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a | |
222 | Group: Applications/Printing | |
223 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
224 | ||
225 | %description backend-serial | |
226 | This package allow CUPS printing on printers connected by serial | |
227 | ports. | |
228 | ||
229 | %description backend-serial -l pl.UTF-8 | |
230 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
231 | podłączonych do portów szeregowych. | |
232 | ||
233 | %package backend-parallel | |
234 | Summary: Parallel port backend for CUPS | |
235 | Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a | |
236 | Group: Applications/Printing | |
237 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
238 | ||
239 | %description backend-parallel | |
240 | This package allow CUPS printing on printers connected by parallel | |
241 | ports. | |
242 | ||
243 | %description backend-parallel -l pl.UTF-8 | |
244 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
245 | podłączonych do portów równoległych. | |
246 | ||
247 | %prep | |
248 | %setup -q | |
249 | %patch0 -p1 | |
250 | %patch1 -p1 | |
251 | %patch2 -p1 | |
252 | %patch3 -p1 | |
253 | %patch4 -p1 | |
254 | %patch5 -p1 | |
255 | %patch6 -p1 | |
256 | ||
257 | %build | |
258 | %{__aclocal} -I config-scripts | |
259 | %{__autoconf} | |
260 | %configure \ | |
261 | --libdir=%{_ulibdir} \ | |
262 | --enable-shared \ | |
263 | %{?with_static_libs:--enable-static} \ | |
264 | --enable-ssl \ | |
265 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ | |
266 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ | |
267 | --disable-cdsassl \ | |
268 | --enable-dbus \ | |
269 | %{?debug:--enable-debug} \ | |
270 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ | |
271 | %{?with_php:--with-php} | |
272 | ||
273 | %{__make} | |
274 | ||
275 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile | |
276 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} | |
277 | ||
278 | %if %{with perl} | |
279 | cd scripting/perl | |
280 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL | |
281 | %{__perl} Makefile.PL \ | |
282 | INSTALLDIRS=vendor \ | |
283 | OPTIMIZE="%{rpmcflags} -I../.." | |
284 | # avoid rpaths generated by MakeMaker | |
285 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile | |
286 | ||
287 | %{__make} | |
288 | cd ../.. | |
289 | %endif | |
290 | ||
291 | %install | |
292 | rm -rf $RPM_BUILD_ROOT | |
293 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security} \ | |
294 | $RPM_BUILD_ROOT/var/run/cups \ | |
295 | $RPM_BUILD_ROOT/var/log/{,archive/}cups | |
296 | ||
297 | %{__make} install \ | |
298 | BUILDROOT=$RPM_BUILD_ROOT \ | |
299 | CUPS_USER=$(id -u) \ | |
300 | CUPS_GROUP=$(id -g) | |
301 | ||
302 | if [ "%{_lib}" != "lib" ] ; then | |
303 | install -d $RPM_BUILD_ROOT%{_libdir} | |
304 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
305 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} | |
306 | fi | |
307 | ||
308 | %if %{with php} | |
309 | %{__make} -C scripting/php install \ | |
310 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} | |
311 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
312 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << EOF | |
313 | ; Enable phpcups extension module | |
314 | extension=phpcups.so | |
315 | EOF | |
316 | %endif | |
317 | ||
318 | %if %{with perl} | |
319 | %{__make} -C scripting/perl install \ | |
320 | DESTDIR=$RPM_BUILD_ROOT | |
321 | %endif | |
322 | ||
323 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
324 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
325 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
326 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cups/mailto.conf | |
327 | ||
328 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd | |
329 | ||
330 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} | |
331 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups | |
332 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf | |
333 | ||
334 | # windows drivers can be put there. | |
335 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
336 | ||
337 | # dirs for gimp-print-cups-4.2.7-1 | |
338 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
339 | ||
340 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index | |
341 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache | |
342 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat | |
343 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl | |
344 | ||
345 | # links to enable/disable (compatibility!) | |
346 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable | |
347 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
348 | ||
349 | # check-files cleanup | |
350 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? | |
351 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* | |
352 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default | |
353 | ||
354 | %clean | |
355 | rm -rf $RPM_BUILD_ROOT | |
356 | ||
357 | %post | |
358 | /sbin/chkconfig --add cups | |
359 | %service cups restart "cups daemon" | |
360 | ||
361 | %preun | |
362 | if [ "$1" = "0" ]; then | |
363 | %service cups stop | |
364 | /sbin/chkconfig --del cups | |
365 | fi | |
366 | ||
367 | %post lib -p /sbin/ldconfig | |
368 | %postun lib -p /sbin/ldconfig | |
369 | %post image-lib -p /sbin/ldconfig | |
370 | %postun image-lib -p /sbin/ldconfig | |
371 | ||
372 | %post -n php-cups | |
373 | %php_webserver_restart | |
374 | ||
375 | %postun -n php-cups | |
376 | if [ "$1" = 0 ]; then | |
377 | %php_webserver_restart | |
378 | fi | |
379 | ||
380 | %files | |
381 | %defattr(644,root,root,755) | |
382 | #%doc *.gz doc/*.html doc/*.css doc/images | |
383 | %doc *.txt | |
384 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* | |
385 | %attr(754,root,root) /etc/rc.d/init.d/cups | |
386 | /etc/dbus-1/system.d/cups.conf | |
387 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf | |
388 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf | |
389 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf | |
390 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf | |
391 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs | |
392 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types | |
393 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups | |
394 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl | |
395 | %dir %{_sysconfdir}/%{name}/interfaces | |
396 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd | |
397 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
398 | %attr(4755,lp,root) %{_bindir}/lppasswd | |
399 | %attr(755,root,root) %{_bindir}/cupstestppd | |
400 | %attr(755,root,root) %{_bindir}/cupstestdsc | |
401 | %attr(755,root,root) %{_sbindir}/cupsd | |
402 | ||
403 | %dir %{_ulibdir}/cups | |
404 | %dir %{_ulibdir}/cups/* | |
405 | %{_ulibdir}/cups/cgi-bin/help | |
406 | %{_ulibdir}/cups/cgi-bin/images | |
407 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
408 | %{_ulibdir}/cups/cgi-bin/*.css | |
409 | %{_ulibdir}/cups/cgi-bin/*.html | |
410 | %{_ulibdir}/cups/cgi-bin/*.ico | |
411 | %{_ulibdir}/cups/cgi-bin/*.txt | |
412 | %lang(de) %{_ulibdir}/cups/cgi-bin/de | |
413 | %lang(es) %{_ulibdir}/cups/cgi-bin/es | |
414 | %lang(et) %{_ulibdir}/cups/cgi-bin/et | |
415 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr | |
416 | %lang(it) %{_ulibdir}/cups/cgi-bin/it | |
417 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja | |
418 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
419 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
420 | %lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW | |
421 | ||
422 | %exclude %{_ulibdir}/cups/backend/usb | |
423 | %exclude %{_ulibdir}/cups/backend/serial | |
424 | %exclude %{_ulibdir}/cups/backend/parallel | |
425 | %attr(755,root,root) %{_ulibdir}/cups/backend/* | |
426 | %attr(755,root,root) %{_ulibdir}/cups/daemon/* | |
427 | %attr(755,root,root) %{_ulibdir}/cups/filter/* | |
428 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
429 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
430 | ||
431 | %dir %{_datadir}/cups | |
432 | %{_datadir}/cups/banners | |
433 | %{_datadir}/cups/charmaps | |
434 | %{_datadir}/cups/charsets | |
435 | %{_datadir}/cups/data | |
436 | %{_datadir}/cups/drivers | |
437 | %{_datadir}/cups/fonts | |
438 | %dir %{_datadir}/cups/model | |
439 | %{_datadir}/cups/model/*.ppd.gz | |
440 | # dirs for gimp-print-cups-4.2.7-1 | |
441 | %dir %{_datadir}/cups/model/C | |
442 | %lang(da) %dir %{_datadir}/cups/model/da | |
443 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
444 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
445 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
446 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
447 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
448 | ||
449 | %dir %{_datadir}/cups/templates | |
450 | %{_datadir}/cups/templates/*.tmpl | |
451 | %lang(de) %{_datadir}/cups/templates/de | |
452 | %lang(es) %{_datadir}/cups/templates/es | |
453 | %lang(et) %{_datadir}/cups/templates/et | |
454 | %lang(fr) %{_datadir}/cups/templates/fr | |
455 | %lang(it) %{_datadir}/cups/templates/it | |
456 | %lang(ja) %{_datadir}/cups/templates/ja | |
457 | %lang(pl) %{_datadir}/cups/templates/pl | |
458 | %lang(sv) %{_datadir}/cups/templates/sv | |
459 | %lang(zh_TW) %{_datadir}/cups/templates/zh_TW | |
460 | %{_mandir}/man7/backend.7* | |
461 | %{_mandir}/man1/cupstestppd.1* | |
462 | %{_mandir}/man1/cupstestdsc.1* | |
463 | %{_mandir}/man7/filter.7* | |
464 | %{_mandir}/man1/lppasswd.1* | |
465 | %{_mandir}/man[58]/* | |
466 | %lang(de) %{_datadir}/locale/de/cups_de.po | |
467 | %lang(es) %{_datadir}/locale/es/cups_es.po | |
468 | %lang(et) %{_datadir}/locale/et/cups_et.po | |
469 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po | |
470 | %lang(it) %{_datadir}/locale/it/cups_it.po | |
471 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po | |
472 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po | |
473 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po | |
474 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po | |
475 | ||
476 | %dir %attr(775,root,lp) /var/cache/cups | |
477 | %dir %attr(755,root,lp) /var/lib/cups | |
478 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
479 | %dir %attr(755,root,lp) /var/run/cups | |
480 | %dir %attr(710,root,lp) /var/spool/cups | |
481 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
482 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index | |
483 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache | |
484 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat | |
485 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache | |
486 | %attr(750,root,logs) %dir /var/log/archive/cups | |
487 | %attr(750,root,logs) %dir /var/log/cups | |
488 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
489 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
490 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
491 | ||
492 | %files lib | |
493 | %defattr(644,root,root,755) | |
494 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} | |
495 | %attr(755,root,root) %{_libdir}/libcups.so.* | |
496 | ||
497 | %files clients | |
498 | %defattr(644,root,root,755) | |
499 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf | |
500 | %attr(755,root,root) %{_bindir}/cancel | |
501 | %attr(755,root,root) %{_bindir}/lp | |
502 | %attr(755,root,root) %{_bindir}/lpoptions | |
503 | %attr(755,root,root) %{_bindir}/lpq | |
504 | %attr(755,root,root) %{_bindir}/lpr | |
505 | %attr(755,root,root) %{_bindir}/lprm | |
506 | %attr(755,root,root) %{_bindir}/lpstat | |
507 | %attr(755,root,root) %{_sbindir}/accept | |
508 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
509 | %attr(755,root,root) %{_sbindir}/cupsenable | |
510 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
511 | %attr(755,root,root) %{_sbindir}/disable | |
512 | %attr(755,root,root) %{_sbindir}/enable | |
513 | %attr(755,root,root) %{_sbindir}/lpadmin | |
514 | %attr(755,root,root) %{_sbindir}/lpc | |
515 | %attr(755,root,root) %{_sbindir}/lpinfo | |
516 | %attr(755,root,root) %{_sbindir}/lpmove | |
517 | %attr(755,root,root) %{_sbindir}/reject | |
518 | %{_mandir}/man1/cancel.1* | |
519 | %{_mandir}/man1/lp.1* | |
520 | %{_mandir}/man1/lpoptions.1* | |
521 | %{_mandir}/man1/lpq.1* | |
522 | %{_mandir}/man1/lpr.1* | |
523 | %{_mandir}/man1/lprm.1* | |
524 | %{_mandir}/man1/lpstat.1* | |
525 | #%lang(fr) %{_mandir}/fr/man1/cancel.1* | |
526 | #%lang(fr) %{_mandir}/fr/man1/lp.1* | |
527 | #%lang(fr) %{_mandir}/fr/man1/lpoptions.1* | |
528 | #%lang(fr) %{_mandir}/fr/man1/lpq.1* | |
529 | #%lang(fr) %{_mandir}/fr/man1/lpr.1* | |
530 | #%lang(fr) %{_mandir}/fr/man1/lprm.1* | |
531 | #%lang(fr) %{_mandir}/fr/man1/lpstat.1* | |
532 | #%lang(es) %{_mandir}/es/man1/lp.1* | |
533 | #%lang(es) %{_mandir}/es/man1/lpoptions.1* | |
534 | #%lang(es) %{_mandir}/es/man1/lpq.1* | |
535 | #%lang(es) %{_mandir}/es/man1/lpr.1* | |
536 | #%lang(es) %{_mandir}/es/man1/lprm.1* | |
537 | #%lang(es) %{_mandir}/es/man1/lpstat.1* | |
538 | ||
539 | %files image-lib | |
540 | %defattr(644,root,root,755) | |
541 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* | |
542 | ||
543 | %files devel | |
544 | %defattr(644,root,root,755) | |
545 | %attr(755,root,root) %{_bindir}/cups-config | |
546 | %{_includedir}/cups | |
547 | %{_libdir}/lib*.so | |
548 | %{_mandir}/man1/cups-config* | |
549 | %{_mandir}/man3/* | |
550 | #%lang(fr) %{_mandir}/fr/man1/cups-config* | |
551 | #%lang(es) %{_mandir}/es/man1/cups-config* | |
552 | ||
553 | %if %{with static_libs} | |
554 | %files static | |
555 | %defattr(644,root,root,755) | |
556 | %{_libdir}/*.a | |
557 | %endif | |
558 | ||
559 | %if %{with perl} | |
560 | %files -n perl-cups | |
561 | %defattr(644,root,root,755) | |
562 | %{perl_vendorarch}/*.pm | |
563 | %dir %{perl_vendorarch}/auto/CUPS | |
564 | %{perl_vendorarch}/auto/CUPS/*.bs | |
565 | %{perl_vendorarch}/auto/CUPS/autosplit.ix | |
566 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/*.so | |
567 | %endif | |
568 | ||
569 | %if %{with php} | |
570 | %files -n php-cups | |
571 | %defattr(644,root,root,755) | |
572 | %doc scripting/php/README | |
573 | %attr(755,root,root) %{php_extensiondir}/* | |
574 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini | |
575 | %endif | |
576 | ||
577 | %files backend-usb | |
578 | %defattr(644,root,root,755) | |
579 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb | |
580 | ||
581 | %files backend-serial | |
582 | %defattr(644,root,root,755) | |
583 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial | |
584 | ||
585 | %files backend-parallel | |
586 | %defattr(644,root,root,755) | |
587 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |