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