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