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