]>
Commit | Line | Data |
---|---|---|
3540b403 | 1 | # |
7be5c8e8 | 2 | # Conditional build: |
373aff1e | 3 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) |
ceddaf82 | 4 | %bcond_without dnssd |
84d9a886 JR |
5 | %bcond_without php # don't build PHP extension/support in web interface |
6 | %bcond_without perl # don't build Perl extension/support in web interface | |
7 | %bcond_without java # don't build Java extension/support in web interface | |
8 | %bcond_without python # don't build Python support in web interface | |
373aff1e | 9 | %bcond_without static_libs # don't build static library |
7be5c8e8 | 10 | # |
7be5c8e8 | 11 | %include /usr/lib/rpm/macros.perl |
1770fa4c | 12 | %include /usr/lib/rpm/macros.java |
ef5fe709 | 13 | %define pdir CUPS |
70ba6cfc JR |
14 | |
15 | %ifarch i386 i486 ppc | |
16 | %undefine with_java | |
17 | %endif | |
18 | ||
fb328468 | 19 | Summary: Common Unix Printing System |
fb3b4f59 ER |
20 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa |
21 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
346112e3 | 22 | Name: cups |
8fa1d57e | 23 | Version: 1.3.7 |
cc001553 | 24 | Release: 2 |
e73da052 | 25 | Epoch: 1 |
948a3d9c | 26 | License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception |
0366ccc3 | 27 | Group: Applications/Printing |
3cb197ff | 28 | Source0: http://ftp.easysw.com/pub/cups/%{version}/%{name}-%{version}-source.tar.bz2 |
8fa1d57e | 29 | # Source0-md5: db4a45a17104f10f3ee599d88267c9e5 |
168e60c2 | 30 | Source1: %{name}.init |
fd7e4ff1 | 31 | Source2: %{name}.pamd |
fd4436b5 | 32 | Source3: %{name}.logrotate |
60e0cb5a | 33 | Source4: %{name}.mailto.conf |
84d9a886 | 34 | Source5: %{name}-lpd.inetd |
25dfe94f JB |
35 | Patch0: %{name}-config.patch |
36 | Patch1: %{name}-lp-lpr.patch | |
37 | Patch2: %{name}-options.patch | |
73a0798d | 38 | Patch3: %{name}-man_pages_linking.patch |
f75e41c7 | 39 | Patch4: %{name}-nostrip.patch |
428f33ff KK |
40 | Patch5: %{name}-templates.patch |
41 | Patch6: %{name}-certs_FHS.patch | |
ceddaf82 | 42 | Patch7: %{name}-direct_usb.patch |
f07f391b | 43 | Patch8: %{name}-satisfy-any.patch |
84d9a886 | 44 | Patch9: %{name}-no-polluted-krb5config.patch |
948a3d9c | 45 | Patch10: %{name}-java-fix.patch |
8fa1d57e | 46 | Patch11: %{name}-verbose-compilation.patch |
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 |
ceddaf82 | 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} \ |
8d2025a2 | 353 | --enable-shared \ |
ceddaf82 | 354 | --with-cups-user=lp \ |
32eff1a9 | 355 | --with-cups-group=lp \ |
ceddaf82 AM |
356 | --with-system-groups=sys \ |
357 | --with-printcap=/etc/printcap \ | |
373aff1e | 358 | %{?with_static_libs:--enable-static} \ |
faa66800 | 359 | --enable-ssl \ |
373aff1e KK |
360 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ |
361 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ | |
ceddaf82 | 362 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
faa66800 | 363 | --disable-cdsassl \ |
e809c01b | 364 | --enable-dbus \ |
d110f6af | 365 | %{?debug:--enable-debug} \ |
373aff1e | 366 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
ceddaf82 AM |
367 | --with-config-file-perm=0640 \ |
368 | --with-log-file-perm=0640 \ | |
369 | %{?with_dnssd:--with-dnssd-libs=x} \ | |
370 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
371 | %{?with_php:--with-php} \ | |
372 | %{?with_perl:--with-perl} \ | |
373 | %{?with_java:--with-java} \ | |
84d9a886 | 374 | %{?with_python:--with-python} |
373aff1e | 375 | |
346112e3 | 376 | %{__make} |
7be5c8e8 | 377 | |
cad7b106 | 378 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile |
e809c01b | 379 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} |
7be5c8e8 | 380 | |
f07e6182 | 381 | %if %{with perl} |
2e2308c6 | 382 | cd scripting/perl |
7be5c8e8 JB |
383 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL |
384 | %{__perl} Makefile.PL \ | |
385 | INSTALLDIRS=vendor \ | |
386 | OPTIMIZE="%{rpmcflags} -I../.." | |
387 | # avoid rpaths generated by MakeMaker | |
cad7b106 | 388 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile |
7be5c8e8 JB |
389 | |
390 | %{__make} | |
2e2308c6 AF |
391 | cd ../.. |
392 | %endif | |
346112e3 | 393 | |
84d9a886 JR |
394 | %if %{with java} |
395 | cd scripting/java | |
396 | rm -rf classes/* cups.jar | |
1770fa4c | 397 | %javac -d classes src/com/easysw/cups/*.java |
84d9a886 | 398 | cd classes |
1770fa4c | 399 | %jar cvf ../cups.jar com/easysw/cups |
84d9a886 JR |
400 | cd ../../.. |
401 | %endif | |
402 | ||
346112e3 | 403 | %install |
404 | rm -rf $RPM_BUILD_ROOT | |
84d9a886 | 405 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security,sysconfig/rc-inetd} \ |
428f33ff | 406 | $RPM_BUILD_ROOT/var/run/cups \ |
38f5ddf3 | 407 | $RPM_BUILD_ROOT/var/log/{,archive/}cups |
fd7e4ff1 | 408 | |
6133c494 | 409 | %{__make} install \ |
e827011a AM |
410 | BUILDROOT=$RPM_BUILD_ROOT \ |
411 | CUPS_USER=$(id -u) \ | |
412 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 413 | |
82f3f074 JK |
414 | if [ "%{_lib}" != "lib" ] ; then |
415 | install -d $RPM_BUILD_ROOT%{_libdir} | |
416 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
e3bfc8b9 | 417 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
82f3f074 JK |
418 | fi |
419 | ||
f07e6182 | 420 | %if %{with php} |
2e2308c6 | 421 | %{__make} -C scripting/php install \ |
4fc96bcd ER |
422 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} |
423 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
1770fa4c | 424 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF' |
e809c01b | 425 | ; Enable phpcups extension module |
752c3387 ER |
426 | extension=phpcups.so |
427 | EOF | |
2e2308c6 AF |
428 | %endif |
429 | ||
f07e6182 | 430 | %if %{with perl} |
653cdc22 | 431 | %{__make} -C scripting/perl install \ |
6133c494 | 432 | DESTDIR=$RPM_BUILD_ROOT |
2e2308c6 AF |
433 | %endif |
434 | ||
84d9a886 JR |
435 | %if %{with java} |
436 | install -d $RPM_BUILD_ROOT{%{_datadir}/java,%{_examplesdir}/java-cups-%{version}} | |
1770fa4c ER |
437 | # jars |
438 | cp -a scripting/java/cups.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar | |
439 | ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar | |
440 | # examples | |
84d9a886 | 441 | cp -a scripting/java/{CUPSPrinter.java,example} $RPM_BUILD_ROOT%{_examplesdir}/java-cups-%{version} |
1770fa4c ER |
442 | # javadoc |
443 | install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} | |
444 | cp -a scripting/java/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} | |
445 | ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink | |
84d9a886 JR |
446 | %endif |
447 | ||
cad7b106 | 448 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
449 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
450 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
1770fa4c | 451 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf |
84d9a886 | 452 | sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd |
45a67ab9 | 453 | |
de296a9f | 454 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd |
30d7d426 | 455 | |
4d897458 | 456 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 457 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 458 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 459 | |
ef5fe709 ER |
460 | # windows drivers can be put there. |
461 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
462 | ||
748a0bf9 ER |
463 | # dirs for gimp-print-cups-4.2.7-1 |
464 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
465 | ||
daf27ba0 | 466 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 467 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 468 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 469 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 470 | |
eea94f34 | 471 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
472 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
473 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 474 | |
4e75f969 JB |
475 | # fix/update locale names |
476 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/{nb,zh_CN} | |
477 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no/cups_no.po,nb/cups_nb.po} | |
478 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh/cups_zh.po,zh_CN/cups_zh_CN.po} | |
479 | ||
2e2308c6 | 480 | # check-files cleanup |
0ce3cd57 | 481 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 482 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 483 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 484 | |
9625f17f JB |
485 | %clean |
486 | rm -rf $RPM_BUILD_ROOT | |
487 | ||
168e60c2 | 488 | %post |
8a24ec7f | 489 | /sbin/chkconfig --add cups |
a73a2669 | 490 | %service cups restart "cups daemon" |
fb328468 | 491 | |
168e60c2 | 492 | %preun |
fd7e4ff1 | 493 | if [ "$1" = "0" ]; then |
a73a2669 | 494 | %service cups stop |
fd7e4ff1 | 495 | /sbin/chkconfig --del cups |
496 | fi | |
168e60c2 | 497 | |
19e8d1ed | 498 | %post lib -p /sbin/ldconfig |
499 | %postun lib -p /sbin/ldconfig | |
500 | %post image-lib -p /sbin/ldconfig | |
501 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 502 | |
752c3387 | 503 | %post -n php-cups |
572f9a81 | 504 | %php_webserver_restart |
752c3387 ER |
505 | |
506 | %postun -n php-cups | |
507 | if [ "$1" = 0 ]; then | |
572f9a81 | 508 | %php_webserver_restart |
752c3387 ER |
509 | fi |
510 | ||
1770fa4c ER |
511 | %post -n java-cups-javadoc |
512 | ln -nfs %{name}-%{version} %{_javadocdir}/%{name} | |
513 | ||
84d9a886 JR |
514 | %post lpd |
515 | %service -q rc-inetd reload | |
516 | ||
517 | %postun lpd | |
518 | if [ "$1" = 0 ]; then | |
519 | %service -q rc-inetd reload | |
520 | fi | |
521 | ||
fd7e4ff1 | 522 | %files |
346112e3 | 523 | %defattr(644,root,root,755) |
05d8dec5 | 524 | #%doc *.gz doc/*.html doc/*.css doc/images |
4c209b1f | 525 | %doc *.txt |
39956f63 | 526 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 527 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 528 | /etc/dbus-1/system.d/cups.conf |
6139e54a | 529 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 530 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 531 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 532 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
3cb197ff | 533 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf |
39956f63 ER |
534 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs |
535 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types | |
cd29fb20 | 536 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 537 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 538 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 539 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 540 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 541 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 542 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 543 | %attr(755,root,root) %{_bindir}/cupstestdsc |
ceddaf82 | 544 | %attr(755,root,root) %{_sbindir}/cupsctl |
daf27ba0 | 545 | %attr(755,root,root) %{_sbindir}/cupsd |
ceddaf82 | 546 | %attr(755,root,root) %{_sbindir}/cupsfilter |
daf27ba0 | 547 | |
82f3f074 JK |
548 | %dir %{_ulibdir}/cups |
549 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
550 | %{_ulibdir}/cups/cgi-bin/help |
551 | %{_ulibdir}/cups/cgi-bin/images | |
552 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
553 | %{_ulibdir}/cups/cgi-bin/*.css | |
554 | %{_ulibdir}/cups/cgi-bin/*.html | |
555 | %{_ulibdir}/cups/cgi-bin/*.ico | |
556 | %{_ulibdir}/cups/cgi-bin/*.txt | |
21212dc8 | 557 | %lang(de) %{_ulibdir}/cups/cgi-bin/de |
daf27ba0 | 558 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
ce6b0d52 | 559 | %lang(et) %{_ulibdir}/cups/cgi-bin/et |
6692ed4f | 560 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
ceddaf82 | 561 | %lang(he) %{_ulibdir}/cups/cgi-bin/he |
03e64605 | 562 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 KK |
563 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
564 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
565 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
2717f059 | 566 | %lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW |
daf27ba0 | 567 | |
82f3f074 JK |
568 | %exclude %{_ulibdir}/cups/backend/usb |
569 | %exclude %{_ulibdir}/cups/backend/serial | |
570 | %exclude %{_ulibdir}/cups/backend/parallel | |
daf27ba0 | 571 | %attr(755,root,root) %{_ulibdir}/cups/backend/* |
84d9a886 JR |
572 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced |
573 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd | |
574 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-polld | |
daf27ba0 KK |
575 | %attr(755,root,root) %{_ulibdir}/cups/filter/* |
576 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
577 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
578 | ||
54906e64 | 579 | %{_datadir}/cups/banners |
54906e64 ER |
580 | %{_datadir}/cups/charsets |
581 | %{_datadir}/cups/data | |
6139e54a | 582 | %{_datadir}/cups/drivers |
54906e64 | 583 | %{_datadir}/cups/fonts |
748a0bf9 ER |
584 | %dir %{_datadir}/cups/model |
585 | %{_datadir}/cups/model/*.ppd.gz | |
586 | # dirs for gimp-print-cups-4.2.7-1 | |
587 | %dir %{_datadir}/cups/model/C | |
588 | %lang(da) %dir %{_datadir}/cups/model/da | |
589 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
590 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
591 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
592 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
593 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
594 | ||
54906e64 ER |
595 | %dir %{_datadir}/cups/templates |
596 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 597 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 598 | %lang(es) %{_datadir}/cups/templates/es |
ce6b0d52 | 599 | %lang(et) %{_datadir}/cups/templates/et |
6692ed4f | 600 | %lang(fr) %{_datadir}/cups/templates/fr |
ceddaf82 | 601 | %lang(he) %{_datadir}/cups/templates/he |
03e64605 | 602 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 ER |
603 | %lang(ja) %{_datadir}/cups/templates/ja |
604 | %lang(pl) %{_datadir}/cups/templates/pl | |
605 | %lang(sv) %{_datadir}/cups/templates/sv | |
2717f059 | 606 | %lang(zh_TW) %{_datadir}/cups/templates/zh_TW |
c1555e94 | 607 | %{_mandir}/man1/cupstestppd.1* |
e809c01b | 608 | %{_mandir}/man1/cupstestdsc.1* |
0366ccc3 | 609 | %{_mandir}/man1/lppasswd.1* |
4e75f969 JB |
610 | %{_mandir}/man7/backend.7* |
611 | %{_mandir}/man7/filter.7* | |
84d9a886 JR |
612 | %{_mandir}/man5/* |
613 | %{_mandir}/man8/accept.8* | |
614 | %{_mandir}/man8/cups-deviced.8* | |
615 | %{_mandir}/man8/cups-driverd.8* | |
616 | %{_mandir}/man8/cups-polld.8* | |
617 | %{_mandir}/man8/cupsaddsmb.8* | |
618 | %{_mandir}/man8/cupsctl.8* | |
619 | %{_mandir}/man8/cupsd.8* | |
620 | %{_mandir}/man8/cupsenable.8* | |
621 | %{_mandir}/man8/cupsfilter.8* | |
622 | %{_mandir}/man8/lp* | |
daf27ba0 KK |
623 | |
624 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
625 | %dir %attr(755,root,lp) /var/lib/cups |
626 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 627 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
628 | %dir %attr(710,root,lp) /var/spool/cups |
629 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 630 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 631 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 632 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 633 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
081a50cb | 634 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
635 | %attr(750,root,logs) %dir /var/log/cups |
636 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
637 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
638 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 639 | |
6ebf74dd AF |
640 | %files lib |
641 | %defattr(644,root,root,755) | |
3c247a25 | 642 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd | 643 | %attr(755,root,root) %{_libdir}/libcups.so.* |
a57fa410 KK |
644 | %dir %{_datadir}/cups |
645 | %{_datadir}/cups/charmaps | |
646 | %lang(da) %{_datadir}/locale/da/cups_da.po | |
647 | %lang(de) %{_datadir}/locale/de/cups_de.po | |
648 | %lang(es) %{_datadir}/locale/es/cups_es.po | |
649 | %lang(et) %{_datadir}/locale/et/cups_et.po | |
650 | %lang(fi) %{_datadir}/locale/fi/cups_fi.po | |
651 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po | |
652 | %lang(he) %{_datadir}/locale/he/cups_he.po | |
653 | %lang(it) %{_datadir}/locale/it/cups_it.po | |
654 | %lang(ko) %{_datadir}/locale/ko/cups_ko.po | |
655 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po | |
656 | %lang(nl) %{_datadir}/locale/nl/cups_nl.po | |
4e75f969 | 657 | %lang(nb) %{_datadir}/locale/nb/cups_nb.po |
a57fa410 KK |
658 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
659 | %lang(pt) %{_datadir}/locale/pt/cups_pt.po | |
660 | %lang(pt_BR) %{_datadir}/locale/pt_BR/cups_pt_BR.po | |
a57fa410 KK |
661 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po |
662 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po | |
4e75f969 | 663 | %lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN.po |
a57fa410 | 664 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po |
6ebf74dd | 665 | |
2da56f05 SZ |
666 | %files clients |
667 | %defattr(644,root,root,755) | |
8d2025a2 | 668 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 669 | %attr(755,root,root) %{_bindir}/cancel |
2da56f05 SZ |
670 | %attr(755,root,root) %{_bindir}/lp |
671 | %attr(755,root,root) %{_bindir}/lpoptions | |
672 | %attr(755,root,root) %{_bindir}/lpq | |
673 | %attr(755,root,root) %{_bindir}/lpr | |
674 | %attr(755,root,root) %{_bindir}/lprm | |
675 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e AM |
676 | %attr(755,root,root) %{_sbindir}/accept |
677 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
eea94f34 | 678 | %attr(755,root,root) %{_sbindir}/cupsenable |
679 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
680 | %attr(755,root,root) %{_sbindir}/disable | |
681 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
682 | %attr(755,root,root) %{_sbindir}/lpadmin |
683 | %attr(755,root,root) %{_sbindir}/lpc | |
684 | %attr(755,root,root) %{_sbindir}/lpinfo | |
685 | %attr(755,root,root) %{_sbindir}/lpmove | |
686 | %attr(755,root,root) %{_sbindir}/reject | |
1770fa4c ER |
687 | %{_desktopdir}/cups.desktop |
688 | %{_iconsdir}/hicolor/*/apps/cups.png | |
93040bdf | 689 | %{_mandir}/man1/cancel.1* |
0366ccc3 AF |
690 | %{_mandir}/man1/lp.1* |
691 | %{_mandir}/man1/lpoptions.1* | |
692 | %{_mandir}/man1/lpq.1* | |
693 | %{_mandir}/man1/lpr.1* | |
694 | %{_mandir}/man1/lprm.1* | |
695 | %{_mandir}/man1/lpstat.1* | |
e809c01b AM |
696 | #%lang(fr) %{_mandir}/fr/man1/cancel.1* |
697 | #%lang(fr) %{_mandir}/fr/man1/lp.1* | |
698 | #%lang(fr) %{_mandir}/fr/man1/lpoptions.1* | |
699 | #%lang(fr) %{_mandir}/fr/man1/lpq.1* | |
700 | #%lang(fr) %{_mandir}/fr/man1/lpr.1* | |
701 | #%lang(fr) %{_mandir}/fr/man1/lprm.1* | |
702 | #%lang(fr) %{_mandir}/fr/man1/lpstat.1* | |
703 | #%lang(es) %{_mandir}/es/man1/lp.1* | |
704 | #%lang(es) %{_mandir}/es/man1/lpoptions.1* | |
705 | #%lang(es) %{_mandir}/es/man1/lpq.1* | |
706 | #%lang(es) %{_mandir}/es/man1/lpr.1* | |
707 | #%lang(es) %{_mandir}/es/man1/lprm.1* | |
708 | #%lang(es) %{_mandir}/es/man1/lpstat.1* | |
2da56f05 | 709 | |
6ebf74dd | 710 | %files image-lib |
fd7e4ff1 | 711 | %defattr(644,root,root,755) |
6ebf74dd | 712 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 713 | |
980a97fe | 714 | %files devel |
715 | %defattr(644,root,root,755) | |
6e2c2519 | 716 | %attr(755,root,root) %{_bindir}/cups-config |
4e75f969 JB |
717 | %attr(755,root,root) %{_libdir}/libcups.so |
718 | %attr(755,root,root) %{_libdir}/libcupsimage.so | |
980a97fe | 719 | %{_includedir}/cups |
4e75f969 JB |
720 | %{_mandir}/man1/cups-config.1* |
721 | #%lang(fr) %{_mandir}/fr/man1/cups-config.1* | |
722 | #%lang(es) %{_mandir}/es/man1/cups-config.1* | |
980a97fe | 723 | |
373aff1e | 724 | %if %{with static_libs} |
8d2025a2 AM |
725 | %files static |
726 | %defattr(644,root,root,755) | |
4e75f969 JB |
727 | %{_libdir}/libcups.a |
728 | %{_libdir}/libcupsimage.a | |
373aff1e | 729 | %endif |
2e2308c6 | 730 | |
f07e6182 | 731 | %if %{with perl} |
2e2308c6 AF |
732 | %files -n perl-cups |
733 | %defattr(644,root,root,755) | |
4e75f969 | 734 | %{perl_vendorarch}/CUPS.pm |
2e2308c6 | 735 | %dir %{perl_vendorarch}/auto/CUPS |
4e75f969 | 736 | %{perl_vendorarch}/auto/CUPS/CUPS.bs |
2e2308c6 | 737 | %{perl_vendorarch}/auto/CUPS/autosplit.ix |
4e75f969 JB |
738 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so |
739 | %{_mandir}/man3/CUPS.3pm* | |
83bc4a43 | 740 | %endif |
2e2308c6 | 741 | |
f07e6182 | 742 | %if %{with php} |
2e2308c6 AF |
743 | %files -n php-cups |
744 | %defattr(644,root,root,755) | |
44b3e11b | 745 | %doc scripting/php/README |
4e75f969 | 746 | %attr(755,root,root) %{php_extensiondir}/phpcups.so |
4fc96bcd | 747 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini |
83bc4a43 | 748 | %endif |
0f8ac12d | 749 | |
84d9a886 JR |
750 | %if %{with java} |
751 | %files -n java-cups | |
752 | %defattr(644,root,root,755) | |
1770fa4c | 753 | %{_javadir}/*.jar |
84d9a886 | 754 | %{_examplesdir}/java-cups-%{version} |
1770fa4c ER |
755 | |
756 | %files -n java-cups-javadoc | |
757 | %defattr(644,root,root,755) | |
758 | %{_javadocdir}/%{name}-%{version} | |
759 | %ghost %{_javadocdir}/%{name} | |
84d9a886 JR |
760 | %endif |
761 | ||
0f8ac12d AF |
762 | %files backend-usb |
763 | %defattr(644,root,root,755) | |
82f3f074 | 764 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
0f8ac12d AF |
765 | |
766 | %files backend-serial | |
767 | %defattr(644,root,root,755) | |
82f3f074 | 768 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial |
0f8ac12d AF |
769 | |
770 | %files backend-parallel | |
771 | %defattr(644,root,root,755) | |
82f3f074 | 772 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |
84d9a886 JR |
773 | |
774 | %files lpd | |
775 | %defattr(644,root,root,755) | |
776 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/* | |
777 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd | |
778 | %{_mandir}/man8/cups-lpd.8* |