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