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