]>
Commit | Line | Data |
---|---|---|
3540b403 | 1 | # |
7be5c8e8 | 2 | # Conditional build: |
373aff1e | 3 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) |
ceddaf82 | 4 | %bcond_without dnssd |
84d9a886 JR |
5 | %bcond_without php # don't build PHP extension/support in web interface |
6 | %bcond_without perl # don't build Perl extension/support in web interface | |
7 | %bcond_without java # don't build Java extension/support in web interface | |
8 | %bcond_without python # don't build Python support in web interface | |
373aff1e | 9 | %bcond_without static_libs # don't build static library |
7be5c8e8 | 10 | # |
7be5c8e8 | 11 | %include /usr/lib/rpm/macros.perl |
1770fa4c | 12 | %include /usr/lib/rpm/macros.java |
ef5fe709 | 13 | %define pdir CUPS |
70ba6cfc JR |
14 | |
15 | %ifarch i386 i486 ppc | |
16 | %undefine with_java | |
17 | %endif | |
18 | ||
fb328468 | 19 | Summary: Common Unix Printing System |
fb3b4f59 ER |
20 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa |
21 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
346112e3 | 22 | Name: cups |
7ce053b6 AM |
23 | Version: 1.3.6 |
24 | Release: 1 | |
e73da052 | 25 | Epoch: 1 |
346112e3 | 26 | License: GPL/LGPL |
0366ccc3 | 27 | Group: Applications/Printing |
3cb197ff | 28 | Source0: http://ftp.easysw.com/pub/cups/%{version}/%{name}-%{version}-source.tar.bz2 |
7ce053b6 | 29 | # Source0-md5: 642f9f6d879999bff1b51aeee57a3ce1 |
168e60c2 | 30 | Source1: %{name}.init |
fd7e4ff1 | 31 | Source2: %{name}.pamd |
fd4436b5 | 32 | Source3: %{name}.logrotate |
60e0cb5a | 33 | Source4: %{name}.mailto.conf |
84d9a886 | 34 | Source5: %{name}-lpd.inetd |
25dfe94f JB |
35 | Patch0: %{name}-config.patch |
36 | Patch1: %{name}-lp-lpr.patch | |
37 | Patch2: %{name}-options.patch | |
73a0798d | 38 | Patch3: %{name}-man_pages_linking.patch |
f75e41c7 | 39 | Patch4: %{name}-nostrip.patch |
428f33ff KK |
40 | Patch5: %{name}-templates.patch |
41 | Patch6: %{name}-certs_FHS.patch | |
ceddaf82 | 42 | Patch7: %{name}-direct_usb.patch |
f07f391b | 43 | Patch8: %{name}-satisfy-any.patch |
84d9a886 | 44 | Patch9: %{name}-no-polluted-krb5config.patch |
fb328468 | 45 | URL: http://www.cups.org/ |
daf27ba0 | 46 | BuildRequires: acl-devel |
e73da052 | 47 | BuildRequires: autoconf |
48 | BuildRequires: automake | |
ceddaf82 | 49 | %{?with_dnssd:BuildRequires: avahi-compat-libdns_sd-devel} |
e809c01b | 50 | BuildRequires: dbus-devel |
ceddaf82 | 51 | BuildRequires: glibc-headers |
373aff1e | 52 | %{?with_gnutls:BuildRequires: gnutls-devel} |
84d9a886 JR |
53 | %{?with_java:BuildRequires: jar} |
54 | %{?with_java:BuildRequires: jdk} | |
1770fa4c | 55 | %{?with_java:BuildRequires: jpackage-utils} |
ceddaf82 | 56 | BuildRequires: krb5-devel |
aa509eeb | 57 | BuildRequires: libjpeg-devel |
30d7d426 | 58 | BuildRequires: libpng-devel |
21ee9950 | 59 | BuildRequires: libstdc++-devel |
30d7d426 | 60 | BuildRequires: libtiff-devel |
de9b99ab | 61 | BuildRequires: openldap-devel >= 2.4.6 |
c7103aaa | 62 | BuildRequires: openslp-devel |
373aff1e | 63 | %{!?with_gnutls:BuildRequires: openssl-devel} |
8bdc526e | 64 | BuildRequires: pam-devel |
752c3387 | 65 | %{?with_php:BuildRequires: php-devel >= 4:5.0.0} |
3219126a | 66 | BuildRequires: pkgconfig |
1770fa4c | 67 | %{?with_java:BuildRequires: rpm-javaprov} |
559b7094 | 68 | BuildRequires: rpm-perlprov |
4fc96bcd | 69 | BuildRequires: rpmbuild(macros) >= 1.344 |
9e9d05b7 | 70 | Requires(post,preun): /sbin/chkconfig |
39956f63 | 71 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
6bd9c7f7 | 72 | Requires: pam >= 0.77.3 |
a73a2669 | 73 | Requires: rc-scripts |
09af927c | 74 | Provides: printingdaemon |
1770fa4c | 75 | Obsoletes: printingdaemon |
a73a2669 | 76 | Conflicts: ghostscript < 7.05.4 |
9e79f779 | 77 | Conflicts: logrotate < 3.7-4 |
91331aef | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
346112e3 | 79 | |
82f3f074 JK |
80 | %define _ulibdir %{_prefix}/lib |
81 | ||
fb328468 | 82 | %description |
dd843423 | 83 | CUPS provides a portable printing layer for UNIX-based operating |
8bff8fce MP |
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. | |
346112e3 | 93 | |
2f78071d JR |
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 | |
bc9f5ffe | 102 | drukarek. |
30d7d426 | 103 | |
2f78071d JR |
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®. | |
4644dd52 | 107 | |
6ebf74dd | 108 | %package lib |
fd7e4ff1 | 109 | Summary: Common Unix Printing System Libraries |
fb3b4f59 ER |
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 | |
52835768 | 112 | Group: Libraries |
6ebf74dd | 113 | Provides: %{name}-libs = %{epoch}:%{version}-%{release} |
a73a2669 | 114 | Obsoletes: cups-libs |
bf6c7747 | 115 | Obsoletes: libcups1 |
fd7e4ff1 | 116 | |
6ebf74dd | 117 | %description lib |
9625f17f JB |
118 | Common Unix Printing System Libraries. |
119 | ||
2f78071d | 120 | %description lib -l pl.UTF-8 |
9625f17f | 121 | Biblioteki dla CUPS. |
fd7e4ff1 | 122 | |
2f78071d | 123 | %description lib -l pt_BR.UTF-8 |
6ebf74dd AF |
124 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
125 | ||
2da56f05 SZ |
126 | %package clients |
127 | Summary: Common Unix Printing System Clients | |
fb3b4f59 | 128 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS |
2da56f05 | 129 | Group: Applications/Printing |
e055e440 | 130 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
09af927c | 131 | Provides: printingclient |
1770fa4c | 132 | Obsoletes: printingclient |
2da56f05 SZ |
133 | |
134 | %description clients | |
135 | Common Unix Printing System Clients. | |
136 | ||
2f78071d | 137 | %description clients -l pl.UTF-8 |
2da56f05 SZ |
138 | Aplikacje klienckie dla CUPS. |
139 | ||
6ebf74dd AF |
140 | %package image-lib |
141 | Summary: Common Unix Printing System Libraries - images manipulation | |
fb3b4f59 ER |
142 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych |
143 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
52835768 | 144 | Group: Libraries |
039c735c | 145 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
6ebf74dd AF |
146 | Obsoletes: libcups1 |
147 | ||
148 | %description image-lib | |
257636d7 | 149 | Common Unix Printing System Libraries - images manipalation. |
6ebf74dd | 150 | |
2f78071d JR |
151 | %description image-lib -l pl.UTF-8 |
152 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
6ebf74dd | 153 | |
2f78071d | 154 | %description image-lib -l pt_BR.UTF-8 |
4644dd52 | 155 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
156 | ||
980a97fe | 157 | %package devel |
158 | Summary: Common Unix Printing System development files | |
fb3b4f59 ER |
159 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe |
160 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
980a97fe | 161 | Group: Development/Libraries |
cd99fdf9 JB |
162 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} |
163 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
3e2caa76 | 164 | # for libcups |
950cc25f | 165 | %{?with_gnutls:Requires: gnutls-devel} |
3e2caa76 | 166 | Requires: krb5-devel |
950cc25f | 167 | %{!?with_gnutls:Requires: openssl-devel} |
717a8d25 | 168 | Requires: zlib-devel |
3e2caa76 JB |
169 | # for libcupsimage |
170 | Requires: libjpeg-devel | |
171 | Requires: libpng-devel | |
172 | Requires: libtiff-devel | |
bf6c7747 | 173 | Obsoletes: libcups1-devel |
980a97fe | 174 | |
175 | %description devel | |
9625f17f | 176 | Common Unix Printing System development files. |
980a97fe | 177 | |
2f78071d JR |
178 | %description devel -l pl.UTF-8 |
179 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
8bdc526e | 180 | |
2f78071d JR |
181 | %description devel -l pt_BR.UTF-8 |
182 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
183 | para a criação de suporte a novas impressoras e novos serviços ao | |
4644dd52 | 184 | CUPS. |
185 | ||
980a97fe | 186 | %package static |
187 | Summary: Common Unix Printing System static libraries | |
fb3b4f59 ER |
188 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne |
189 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
980a97fe | 190 | Group: Development/Libraries |
cd99fdf9 | 191 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
980a97fe | 192 | |
193 | %description static | |
8bdc526e | 194 | Common Unix Printing System static libraries. |
980a97fe | 195 | |
2f78071d JR |
196 | %description static -l pl.UTF-8 |
197 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
8bdc526e | 198 | |
2f78071d JR |
199 | %description static -l pt_BR.UTF-8 |
200 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
4644dd52 | 201 | bibliotecas do CUPS. |
202 | ||
2e2308c6 | 203 | %package -n perl-cups |
7be5c8e8 | 204 | Summary: Perl module for CUPS |
fb3b4f59 | 205 | Summary(pl.UTF-8): Moduł Perla CUPS |
7be5c8e8 | 206 | Group: Development/Languages/Perl |
cd99fdf9 | 207 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
2e2308c6 AF |
208 | |
209 | %description -n perl-cups | |
7be5c8e8 JB |
210 | Perl module for Common Unix Printing System. |
211 | ||
2f78071d JR |
212 | %description -n perl-cups -l pl.UTF-8 |
213 | Moduł Perla do ogólnego systemu druku dla Uniksa. | |
2e2308c6 AF |
214 | |
215 | %package -n php-cups | |
216 | Summary: PHP module for CUPS | |
fb3b4f59 | 217 | Summary(pl.UTF-8): Moduł PHP CUPS |
7be5c8e8 | 218 | Group: Development/Languages/PHP |
cd99fdf9 | 219 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
ed486845 | 220 | %{?requires_php_extension} |
786665a9 | 221 | Requires: /etc/php/conf.d |
752c3387 | 222 | Requires: php-common >= 4:5.0.0 |
2e2308c6 AF |
223 | |
224 | %description -n php-cups | |
225 | PHP module for Common Unix Printing System. | |
226 | ||
2f78071d JR |
227 | %description -n php-cups -l pl.UTF-8 |
228 | Moduł PHP do ogólnego systemu druku dla Uniksa. | |
7be5c8e8 | 229 | |
84d9a886 JR |
230 | %package -n java-cups |
231 | Summary: CUPS java classes | |
232 | Summary(pl.UTF-8): Klasy javy CUPS | |
233 | Group: Development/Languages/Java | |
1770fa4c | 234 | Requires: jpackage-utils |
84d9a886 JR |
235 | |
236 | %description -n java-cups | |
237 | Common Unix Printing System Java classes. | |
238 | ||
239 | %description -n java-cups -l pl.UTF-8 | |
240 | Klasy javy do ogólnego systemu druku dla Uniksa. | |
241 | ||
1770fa4c ER |
242 | %package -n java-cups-javadoc |
243 | Summary: Online manual for %{name} | |
244 | Summary(pl.UTF-8): Dokumentacja online do %{name} | |
245 | Group: Documentation | |
246 | Requires: jpackage-utils | |
247 | ||
248 | %description -n java-cups-javadoc | |
249 | Documentation for %{name}. | |
250 | ||
251 | %description -n java-cups-javadoc -l pl.UTF-8 | |
252 | Dokumentacja do %{name}. | |
253 | ||
254 | %description -n java-cups-javadoc -l fr.UTF-8 | |
255 | Javadoc pour %{name}. | |
256 | ||
25aeafb8 | 257 | %package backend-usb |
0f8ac12d | 258 | Summary: USB backend for CUPS |
fb3b4f59 | 259 | Summary(pl.UTF-8): Backend USB dla CUPS-a |
0f8ac12d | 260 | Group: Applications/Printing |
cd99fdf9 | 261 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
262 | |
263 | %description backend-usb | |
264 | This package allow CUPS printing on USB printers. | |
265 | ||
2f78071d JR |
266 | %description backend-usb -l pl.UTF-8 |
267 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
71ac0ea6 | 268 | |
25aeafb8 | 269 | %package backend-serial |
71ac0ea6 | 270 | Summary: Serial port backend for CUPS |
fb3b4f59 | 271 | Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a |
0f8ac12d | 272 | Group: Applications/Printing |
cd99fdf9 | 273 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
274 | |
275 | %description backend-serial | |
71ac0ea6 JB |
276 | This package allow CUPS printing on printers connected by serial |
277 | ports. | |
278 | ||
2f78071d JR |
279 | %description backend-serial -l pl.UTF-8 |
280 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
281 | podłączonych do portów szeregowych. | |
0f8ac12d | 282 | |
25aeafb8 | 283 | %package backend-parallel |
71ac0ea6 | 284 | Summary: Parallel port backend for CUPS |
fb3b4f59 | 285 | Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a |
0f8ac12d | 286 | Group: Applications/Printing |
cd99fdf9 | 287 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
288 | |
289 | %description backend-parallel | |
71ac0ea6 JB |
290 | This package allow CUPS printing on printers connected by parallel |
291 | ports. | |
292 | ||
2f78071d JR |
293 | %description backend-parallel -l pl.UTF-8 |
294 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
295 | podłączonych do portów równoległych. | |
0f8ac12d | 296 | |
84d9a886 JR |
297 | %package lpd |
298 | Summary: LPD compatibility support for CUPS print server | |
299 | Summary(pl.UTF-8): Wsparcie dla LPD w serwerze wydruków CUPS | |
300 | Group: Applications/Printing | |
84d9a886 | 301 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1770fa4c | 302 | Requires: rc-inetd |
84d9a886 JR |
303 | |
304 | %description lpd | |
305 | LPD compatibility support for CUPS print server. | |
306 | ||
307 | %description lpd -l pl.UTF-8 | |
308 | Wsparcie dla LPD w serwerze wydruków CUPS. | |
309 | ||
346112e3 | 310 | %prep |
735a5048 | 311 | %setup -q |
73a0798d | 312 | %patch0 -p1 |
8bdc526e | 313 | %patch1 -p1 |
25dfe94f | 314 | %patch2 -p1 |
73a0798d | 315 | %patch3 -p1 |
f75e41c7 | 316 | %patch4 -p1 |
653cdc22 | 317 | %patch5 -p1 |
428f33ff | 318 | %patch6 -p1 |
ceddaf82 | 319 | %patch7 -p1 |
f07f391b | 320 | %patch8 -p1 |
84d9a886 | 321 | %patch9 -p1 |
8bdc526e | 322 | |
346112e3 | 323 | %build |
daf27ba0 | 324 | %{__aclocal} -I config-scripts |
0b9d4622 | 325 | %{__autoconf} |
c6f4ebff | 326 | %configure \ |
82f3f074 | 327 | --libdir=%{_ulibdir} \ |
8d2025a2 | 328 | --enable-shared \ |
ceddaf82 | 329 | --with-cups-user=lp \ |
32eff1a9 | 330 | --with-cups-group=lp \ |
ceddaf82 AM |
331 | --with-system-groups=sys \ |
332 | --with-printcap=/etc/printcap \ | |
373aff1e | 333 | %{?with_static_libs:--enable-static} \ |
faa66800 | 334 | --enable-ssl \ |
373aff1e KK |
335 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ |
336 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ | |
ceddaf82 | 337 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
faa66800 | 338 | --disable-cdsassl \ |
e809c01b | 339 | --enable-dbus \ |
d110f6af | 340 | %{?debug:--enable-debug} \ |
373aff1e | 341 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
ceddaf82 AM |
342 | --with-config-file-perm=0640 \ |
343 | --with-log-file-perm=0640 \ | |
344 | %{?with_dnssd:--with-dnssd-libs=x} \ | |
345 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
346 | %{?with_php:--with-php} \ | |
347 | %{?with_perl:--with-perl} \ | |
348 | %{?with_java:--with-java} \ | |
84d9a886 | 349 | %{?with_python:--with-python} |
373aff1e | 350 | |
346112e3 | 351 | %{__make} |
7be5c8e8 | 352 | |
cad7b106 | 353 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile |
e809c01b | 354 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} |
7be5c8e8 | 355 | |
f07e6182 | 356 | %if %{with perl} |
2e2308c6 | 357 | cd scripting/perl |
7be5c8e8 JB |
358 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL |
359 | %{__perl} Makefile.PL \ | |
360 | INSTALLDIRS=vendor \ | |
361 | OPTIMIZE="%{rpmcflags} -I../.." | |
362 | # avoid rpaths generated by MakeMaker | |
cad7b106 | 363 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile |
7be5c8e8 JB |
364 | |
365 | %{__make} | |
2e2308c6 AF |
366 | cd ../.. |
367 | %endif | |
346112e3 | 368 | |
84d9a886 JR |
369 | %if %{with java} |
370 | cd scripting/java | |
371 | rm -rf classes/* cups.jar | |
1770fa4c | 372 | %javac -d classes src/com/easysw/cups/*.java |
84d9a886 | 373 | cd classes |
1770fa4c | 374 | %jar cvf ../cups.jar com/easysw/cups |
84d9a886 JR |
375 | cd ../../.. |
376 | %endif | |
377 | ||
346112e3 | 378 | %install |
379 | rm -rf $RPM_BUILD_ROOT | |
84d9a886 | 380 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security,sysconfig/rc-inetd} \ |
428f33ff | 381 | $RPM_BUILD_ROOT/var/run/cups \ |
38f5ddf3 | 382 | $RPM_BUILD_ROOT/var/log/{,archive/}cups |
fd7e4ff1 | 383 | |
6133c494 | 384 | %{__make} install \ |
e827011a AM |
385 | BUILDROOT=$RPM_BUILD_ROOT \ |
386 | CUPS_USER=$(id -u) \ | |
387 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 388 | |
82f3f074 JK |
389 | if [ "%{_lib}" != "lib" ] ; then |
390 | install -d $RPM_BUILD_ROOT%{_libdir} | |
391 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
e3bfc8b9 | 392 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
82f3f074 JK |
393 | fi |
394 | ||
f07e6182 | 395 | %if %{with php} |
2e2308c6 | 396 | %{__make} -C scripting/php install \ |
4fc96bcd ER |
397 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} |
398 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
1770fa4c | 399 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF' |
e809c01b | 400 | ; Enable phpcups extension module |
752c3387 ER |
401 | extension=phpcups.so |
402 | EOF | |
2e2308c6 AF |
403 | %endif |
404 | ||
f07e6182 | 405 | %if %{with perl} |
653cdc22 | 406 | %{__make} -C scripting/perl install \ |
6133c494 | 407 | DESTDIR=$RPM_BUILD_ROOT |
2e2308c6 AF |
408 | %endif |
409 | ||
84d9a886 JR |
410 | %if %{with java} |
411 | install -d $RPM_BUILD_ROOT{%{_datadir}/java,%{_examplesdir}/java-cups-%{version}} | |
1770fa4c ER |
412 | # jars |
413 | cp -a scripting/java/cups.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar | |
414 | ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar | |
415 | # examples | |
84d9a886 | 416 | cp -a scripting/java/{CUPSPrinter.java,example} $RPM_BUILD_ROOT%{_examplesdir}/java-cups-%{version} |
1770fa4c ER |
417 | # javadoc |
418 | install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} | |
419 | cp -a scripting/java/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} | |
420 | ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink | |
84d9a886 JR |
421 | %endif |
422 | ||
cad7b106 | 423 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
424 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
425 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
1770fa4c | 426 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf |
84d9a886 | 427 | sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd |
45a67ab9 | 428 | |
de296a9f | 429 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd |
30d7d426 | 430 | |
4d897458 | 431 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 432 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 433 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 434 | |
ef5fe709 ER |
435 | # windows drivers can be put there. |
436 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
437 | ||
748a0bf9 ER |
438 | # dirs for gimp-print-cups-4.2.7-1 |
439 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
440 | ||
daf27ba0 | 441 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 442 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 443 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 444 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 445 | |
eea94f34 | 446 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
447 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
448 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 449 | |
4e75f969 JB |
450 | # fix/update locale names |
451 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/{nb,zh_CN} | |
452 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no/cups_no.po,nb/cups_nb.po} | |
453 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh/cups_zh.po,zh_CN/cups_zh_CN.po} | |
454 | ||
2e2308c6 | 455 | # check-files cleanup |
0ce3cd57 | 456 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 457 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 458 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 459 | |
9625f17f JB |
460 | %clean |
461 | rm -rf $RPM_BUILD_ROOT | |
462 | ||
168e60c2 | 463 | %post |
8a24ec7f | 464 | /sbin/chkconfig --add cups |
a73a2669 | 465 | %service cups restart "cups daemon" |
fb328468 | 466 | |
168e60c2 | 467 | %preun |
fd7e4ff1 | 468 | if [ "$1" = "0" ]; then |
a73a2669 | 469 | %service cups stop |
fd7e4ff1 | 470 | /sbin/chkconfig --del cups |
471 | fi | |
168e60c2 | 472 | |
19e8d1ed | 473 | %post lib -p /sbin/ldconfig |
474 | %postun lib -p /sbin/ldconfig | |
475 | %post image-lib -p /sbin/ldconfig | |
476 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 477 | |
752c3387 | 478 | %post -n php-cups |
572f9a81 | 479 | %php_webserver_restart |
752c3387 ER |
480 | |
481 | %postun -n php-cups | |
482 | if [ "$1" = 0 ]; then | |
572f9a81 | 483 | %php_webserver_restart |
752c3387 ER |
484 | fi |
485 | ||
1770fa4c ER |
486 | %post -n java-cups-javadoc |
487 | ln -nfs %{name}-%{version} %{_javadocdir}/%{name} | |
488 | ||
84d9a886 JR |
489 | %post lpd |
490 | %service -q rc-inetd reload | |
491 | ||
492 | %postun lpd | |
493 | if [ "$1" = 0 ]; then | |
494 | %service -q rc-inetd reload | |
495 | fi | |
496 | ||
fd7e4ff1 | 497 | %files |
346112e3 | 498 | %defattr(644,root,root,755) |
05d8dec5 | 499 | #%doc *.gz doc/*.html doc/*.css doc/images |
4c209b1f | 500 | %doc *.txt |
39956f63 | 501 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 502 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 503 | /etc/dbus-1/system.d/cups.conf |
6139e54a | 504 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 505 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 506 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 507 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
3cb197ff | 508 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf |
39956f63 ER |
509 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs |
510 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types | |
cd29fb20 | 511 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 512 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 513 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 514 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 515 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 516 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 517 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 518 | %attr(755,root,root) %{_bindir}/cupstestdsc |
ceddaf82 | 519 | %attr(755,root,root) %{_sbindir}/cupsctl |
daf27ba0 | 520 | %attr(755,root,root) %{_sbindir}/cupsd |
ceddaf82 | 521 | %attr(755,root,root) %{_sbindir}/cupsfilter |
daf27ba0 | 522 | |
82f3f074 JK |
523 | %dir %{_ulibdir}/cups |
524 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
525 | %{_ulibdir}/cups/cgi-bin/help |
526 | %{_ulibdir}/cups/cgi-bin/images | |
527 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
528 | %{_ulibdir}/cups/cgi-bin/*.css | |
529 | %{_ulibdir}/cups/cgi-bin/*.html | |
530 | %{_ulibdir}/cups/cgi-bin/*.ico | |
531 | %{_ulibdir}/cups/cgi-bin/*.txt | |
21212dc8 | 532 | %lang(de) %{_ulibdir}/cups/cgi-bin/de |
daf27ba0 | 533 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
ce6b0d52 | 534 | %lang(et) %{_ulibdir}/cups/cgi-bin/et |
6692ed4f | 535 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
ceddaf82 | 536 | %lang(he) %{_ulibdir}/cups/cgi-bin/he |
03e64605 | 537 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 KK |
538 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
539 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
540 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
2717f059 | 541 | %lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW |
daf27ba0 | 542 | |
82f3f074 JK |
543 | %exclude %{_ulibdir}/cups/backend/usb |
544 | %exclude %{_ulibdir}/cups/backend/serial | |
545 | %exclude %{_ulibdir}/cups/backend/parallel | |
daf27ba0 | 546 | %attr(755,root,root) %{_ulibdir}/cups/backend/* |
84d9a886 JR |
547 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced |
548 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd | |
549 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-polld | |
daf27ba0 KK |
550 | %attr(755,root,root) %{_ulibdir}/cups/filter/* |
551 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
552 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
553 | ||
54906e64 | 554 | %{_datadir}/cups/banners |
54906e64 ER |
555 | %{_datadir}/cups/charsets |
556 | %{_datadir}/cups/data | |
6139e54a | 557 | %{_datadir}/cups/drivers |
54906e64 | 558 | %{_datadir}/cups/fonts |
748a0bf9 ER |
559 | %dir %{_datadir}/cups/model |
560 | %{_datadir}/cups/model/*.ppd.gz | |
561 | # dirs for gimp-print-cups-4.2.7-1 | |
562 | %dir %{_datadir}/cups/model/C | |
563 | %lang(da) %dir %{_datadir}/cups/model/da | |
564 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
565 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
566 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
567 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
568 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
569 | ||
54906e64 ER |
570 | %dir %{_datadir}/cups/templates |
571 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 572 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 573 | %lang(es) %{_datadir}/cups/templates/es |
ce6b0d52 | 574 | %lang(et) %{_datadir}/cups/templates/et |
6692ed4f | 575 | %lang(fr) %{_datadir}/cups/templates/fr |
ceddaf82 | 576 | %lang(he) %{_datadir}/cups/templates/he |
03e64605 | 577 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 ER |
578 | %lang(ja) %{_datadir}/cups/templates/ja |
579 | %lang(pl) %{_datadir}/cups/templates/pl | |
580 | %lang(sv) %{_datadir}/cups/templates/sv | |
2717f059 | 581 | %lang(zh_TW) %{_datadir}/cups/templates/zh_TW |
c1555e94 | 582 | %{_mandir}/man1/cupstestppd.1* |
e809c01b | 583 | %{_mandir}/man1/cupstestdsc.1* |
0366ccc3 | 584 | %{_mandir}/man1/lppasswd.1* |
4e75f969 JB |
585 | %{_mandir}/man7/backend.7* |
586 | %{_mandir}/man7/filter.7* | |
84d9a886 JR |
587 | %{_mandir}/man5/* |
588 | %{_mandir}/man8/accept.8* | |
589 | %{_mandir}/man8/cups-deviced.8* | |
590 | %{_mandir}/man8/cups-driverd.8* | |
591 | %{_mandir}/man8/cups-polld.8* | |
592 | %{_mandir}/man8/cupsaddsmb.8* | |
593 | %{_mandir}/man8/cupsctl.8* | |
594 | %{_mandir}/man8/cupsd.8* | |
595 | %{_mandir}/man8/cupsenable.8* | |
596 | %{_mandir}/man8/cupsfilter.8* | |
597 | %{_mandir}/man8/lp* | |
daf27ba0 KK |
598 | |
599 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
600 | %dir %attr(755,root,lp) /var/lib/cups |
601 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 602 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
603 | %dir %attr(710,root,lp) /var/spool/cups |
604 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 605 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 606 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 607 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 608 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
081a50cb | 609 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
610 | %attr(750,root,logs) %dir /var/log/cups |
611 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
612 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
613 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 614 | |
6ebf74dd AF |
615 | %files lib |
616 | %defattr(644,root,root,755) | |
3c247a25 | 617 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd | 618 | %attr(755,root,root) %{_libdir}/libcups.so.* |
a57fa410 KK |
619 | %dir %{_datadir}/cups |
620 | %{_datadir}/cups/charmaps | |
621 | %lang(da) %{_datadir}/locale/da/cups_da.po | |
622 | %lang(de) %{_datadir}/locale/de/cups_de.po | |
623 | %lang(es) %{_datadir}/locale/es/cups_es.po | |
624 | %lang(et) %{_datadir}/locale/et/cups_et.po | |
625 | %lang(fi) %{_datadir}/locale/fi/cups_fi.po | |
626 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po | |
627 | %lang(he) %{_datadir}/locale/he/cups_he.po | |
628 | %lang(it) %{_datadir}/locale/it/cups_it.po | |
629 | %lang(ko) %{_datadir}/locale/ko/cups_ko.po | |
630 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po | |
631 | %lang(nl) %{_datadir}/locale/nl/cups_nl.po | |
4e75f969 | 632 | %lang(nb) %{_datadir}/locale/nb/cups_nb.po |
a57fa410 KK |
633 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
634 | %lang(pt) %{_datadir}/locale/pt/cups_pt.po | |
635 | %lang(pt_BR) %{_datadir}/locale/pt_BR/cups_pt_BR.po | |
a57fa410 KK |
636 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po |
637 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po | |
4e75f969 | 638 | %lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN.po |
a57fa410 | 639 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po |
6ebf74dd | 640 | |
2da56f05 SZ |
641 | %files clients |
642 | %defattr(644,root,root,755) | |
8d2025a2 | 643 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 644 | %attr(755,root,root) %{_bindir}/cancel |
2da56f05 SZ |
645 | %attr(755,root,root) %{_bindir}/lp |
646 | %attr(755,root,root) %{_bindir}/lpoptions | |
647 | %attr(755,root,root) %{_bindir}/lpq | |
648 | %attr(755,root,root) %{_bindir}/lpr | |
649 | %attr(755,root,root) %{_bindir}/lprm | |
650 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e AM |
651 | %attr(755,root,root) %{_sbindir}/accept |
652 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
eea94f34 | 653 | %attr(755,root,root) %{_sbindir}/cupsenable |
654 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
655 | %attr(755,root,root) %{_sbindir}/disable | |
656 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
657 | %attr(755,root,root) %{_sbindir}/lpadmin |
658 | %attr(755,root,root) %{_sbindir}/lpc | |
659 | %attr(755,root,root) %{_sbindir}/lpinfo | |
660 | %attr(755,root,root) %{_sbindir}/lpmove | |
661 | %attr(755,root,root) %{_sbindir}/reject | |
1770fa4c ER |
662 | %{_desktopdir}/cups.desktop |
663 | %{_iconsdir}/hicolor/*/apps/cups.png | |
93040bdf | 664 | %{_mandir}/man1/cancel.1* |
0366ccc3 AF |
665 | %{_mandir}/man1/lp.1* |
666 | %{_mandir}/man1/lpoptions.1* | |
667 | %{_mandir}/man1/lpq.1* | |
668 | %{_mandir}/man1/lpr.1* | |
669 | %{_mandir}/man1/lprm.1* | |
670 | %{_mandir}/man1/lpstat.1* | |
e809c01b AM |
671 | #%lang(fr) %{_mandir}/fr/man1/cancel.1* |
672 | #%lang(fr) %{_mandir}/fr/man1/lp.1* | |
673 | #%lang(fr) %{_mandir}/fr/man1/lpoptions.1* | |
674 | #%lang(fr) %{_mandir}/fr/man1/lpq.1* | |
675 | #%lang(fr) %{_mandir}/fr/man1/lpr.1* | |
676 | #%lang(fr) %{_mandir}/fr/man1/lprm.1* | |
677 | #%lang(fr) %{_mandir}/fr/man1/lpstat.1* | |
678 | #%lang(es) %{_mandir}/es/man1/lp.1* | |
679 | #%lang(es) %{_mandir}/es/man1/lpoptions.1* | |
680 | #%lang(es) %{_mandir}/es/man1/lpq.1* | |
681 | #%lang(es) %{_mandir}/es/man1/lpr.1* | |
682 | #%lang(es) %{_mandir}/es/man1/lprm.1* | |
683 | #%lang(es) %{_mandir}/es/man1/lpstat.1* | |
2da56f05 | 684 | |
6ebf74dd | 685 | %files image-lib |
fd7e4ff1 | 686 | %defattr(644,root,root,755) |
6ebf74dd | 687 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 688 | |
980a97fe | 689 | %files devel |
690 | %defattr(644,root,root,755) | |
6e2c2519 | 691 | %attr(755,root,root) %{_bindir}/cups-config |
4e75f969 JB |
692 | %attr(755,root,root) %{_libdir}/libcups.so |
693 | %attr(755,root,root) %{_libdir}/libcupsimage.so | |
980a97fe | 694 | %{_includedir}/cups |
4e75f969 JB |
695 | %{_mandir}/man1/cups-config.1* |
696 | #%lang(fr) %{_mandir}/fr/man1/cups-config.1* | |
697 | #%lang(es) %{_mandir}/es/man1/cups-config.1* | |
980a97fe | 698 | |
373aff1e | 699 | %if %{with static_libs} |
8d2025a2 AM |
700 | %files static |
701 | %defattr(644,root,root,755) | |
4e75f969 JB |
702 | %{_libdir}/libcups.a |
703 | %{_libdir}/libcupsimage.a | |
373aff1e | 704 | %endif |
2e2308c6 | 705 | |
f07e6182 | 706 | %if %{with perl} |
2e2308c6 AF |
707 | %files -n perl-cups |
708 | %defattr(644,root,root,755) | |
4e75f969 | 709 | %{perl_vendorarch}/CUPS.pm |
2e2308c6 | 710 | %dir %{perl_vendorarch}/auto/CUPS |
4e75f969 | 711 | %{perl_vendorarch}/auto/CUPS/CUPS.bs |
2e2308c6 | 712 | %{perl_vendorarch}/auto/CUPS/autosplit.ix |
4e75f969 JB |
713 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so |
714 | %{_mandir}/man3/CUPS.3pm* | |
83bc4a43 | 715 | %endif |
2e2308c6 | 716 | |
f07e6182 | 717 | %if %{with php} |
2e2308c6 AF |
718 | %files -n php-cups |
719 | %defattr(644,root,root,755) | |
44b3e11b | 720 | %doc scripting/php/README |
4e75f969 | 721 | %attr(755,root,root) %{php_extensiondir}/phpcups.so |
4fc96bcd | 722 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini |
83bc4a43 | 723 | %endif |
0f8ac12d | 724 | |
84d9a886 JR |
725 | %if %{with java} |
726 | %files -n java-cups | |
727 | %defattr(644,root,root,755) | |
1770fa4c | 728 | %{_javadir}/*.jar |
84d9a886 | 729 | %{_examplesdir}/java-cups-%{version} |
1770fa4c ER |
730 | |
731 | %files -n java-cups-javadoc | |
732 | %defattr(644,root,root,755) | |
733 | %{_javadocdir}/%{name}-%{version} | |
734 | %ghost %{_javadocdir}/%{name} | |
84d9a886 JR |
735 | %endif |
736 | ||
0f8ac12d AF |
737 | %files backend-usb |
738 | %defattr(644,root,root,755) | |
82f3f074 | 739 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
0f8ac12d AF |
740 | |
741 | %files backend-serial | |
742 | %defattr(644,root,root,755) | |
82f3f074 | 743 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial |
0f8ac12d AF |
744 | |
745 | %files backend-parallel | |
746 | %defattr(644,root,root,755) | |
82f3f074 | 747 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |
84d9a886 JR |
748 | |
749 | %files lpd | |
750 | %defattr(644,root,root,755) | |
751 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/* | |
752 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd | |
753 | %{_mandir}/man8/cups-lpd.8* |