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