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