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