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