]>
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 |
ec7a81b2 JR |
19 | Version: 1.5.3 |
20 | Release: 1 | |
e73da052 | 21 | Epoch: 1 |
948a3d9c | 22 | License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception |
0366ccc3 | 23 | Group: Applications/Printing |
3cb197ff | 24 | Source0: http://ftp.easysw.com/pub/cups/%{version}/%{name}-%{version}-source.tar.bz2 |
ec7a81b2 | 25 | # Source0-md5: e1ad15257aa6f162414ea3beae0c5df8 |
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 |
9158c4a7 | 70 | BuildRequires: libusb-devel >= 1.0 |
c52ab2b7 JK |
71 | %{?with_ldap:BuildRequires: openldap-devel} |
72 | %{?with_slp:BuildRequires: openslp-devel} | |
373aff1e | 73 | %{!?with_gnutls:BuildRequires: openssl-devel} |
8bdc526e | 74 | BuildRequires: pam-devel |
afb74796 | 75 | %{?with_php:BuildRequires: php-devel >= 4:5.0.0} |
3219126a | 76 | BuildRequires: pkgconfig |
afb74796 | 77 | BuildRequires: rpm-perlprov |
cdbbf080 | 78 | BuildRequires: rpmbuild(macros) >= 1.641 |
b65c711b | 79 | BuildRequires: systemd-devel |
9e9d05b7 | 80 | Requires(post,preun): /sbin/chkconfig |
b7adbbe1 | 81 | Requires(post,preun,postun): systemd-units >= 38 |
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 |
b7adbbe1 | 87 | Requires: systemd-units >= 38 |
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 |
ec7a81b2 JR |
328 | # 1.5.3 shows it may have a chance of working without this |
329 | #%patch14 -p1 | |
8bdc526e | 330 | |
84371ffc | 331 | %if %{with avahi} |
d07e62b1 ER |
332 | %patch100 -p1 |
333 | %patch101 -p1 | |
334 | %patch102 -p1 | |
335 | %patch103 -p1 | |
336 | %patch104 -p1 | |
84371ffc | 337 | %endif |
d07e62b1 | 338 | |
346112e3 | 339 | %build |
daf27ba0 | 340 | %{__aclocal} -I config-scripts |
0b9d4622 | 341 | %{__autoconf} |
c6f4ebff | 342 | %configure \ |
82f3f074 | 343 | --libdir=%{_ulibdir} \ |
5aac26ac | 344 | --disable-cdsassl \ |
d5391671 AM |
345 | --enable-libpaper \ |
346 | --enable-libusb \ | |
347 | --enable-acl \ | |
5aac26ac | 348 | --enable-dbus \ |
d5391671 AM |
349 | --enable-image \ |
350 | --enable-bannertops \ | |
351 | --enable-texttops \ | |
8d2025a2 | 352 | --enable-shared \ |
5aac26ac KK |
353 | --enable-ssl \ |
354 | %{?debug:--enable-debug} \ | |
d07e62b1 | 355 | --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi \ |
5aac26ac | 356 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
c52ab2b7 JK |
357 | --%{!?with_ldap:dis}%{?with_ldap:en}able-ldap \ |
358 | --%{!?with_gssapi:dis}%{?with_gssapi:en}able-gssapi \ | |
5aac26ac KK |
359 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ |
360 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ | |
c52ab2b7 | 361 | --%{!?with_slp:dis}%{?with_slp:en}able-slp \ |
5aac26ac | 362 | %{?with_static_libs:--enable-static} \ |
ceddaf82 | 363 | --with-cups-user=lp \ |
32eff1a9 | 364 | --with-cups-group=lp \ |
ceddaf82 AM |
365 | --with-system-groups=sys \ |
366 | --with-printcap=/etc/printcap \ | |
5aac26ac | 367 | --with-dbusdir=/etc/dbus-1 \ |
373aff1e | 368 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
ceddaf82 AM |
369 | --with-config-file-perm=0640 \ |
370 | --with-log-file-perm=0640 \ | |
5aac26ac | 371 | --with-optim=-Wno-format-y2k \ |
ceddaf82 AM |
372 | %{?with_dnssd:--with-dnssd-libs=x} \ |
373 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
afb74796 JR |
374 | %{?with_perl:--with-perl=%{_bindir}/perl} \ |
375 | %{?with_php:--with-php=%{_bindir}/php} \ | |
b65c711b JR |
376 | %{?with_python:--with-python=%{_bindir}/python} \ |
377 | --with-systemdsystemunitdir=%{systemdunitdir} | |
373aff1e | 378 | |
03dce67c | 379 | %{__make} %{?debug:OPTIONS="-DDEBUG"} |
7be5c8e8 | 380 | |
afb74796 JR |
381 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile |
382 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} | |
383 | ||
384 | %if %{with perl} | |
385 | cd scripting/perl | |
386 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL | |
387 | %{__perl} Makefile.PL \ | |
388 | INSTALLDIRS=vendor \ | |
389 | OPTIMIZE="%{rpmcflags} -I../.." | |
390 | # avoid rpaths generated by MakeMaker | |
391 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile | |
392 | ||
393 | %{__make} | |
394 | cd ../.. | |
395 | %endif | |
396 | ||
346112e3 | 397 | %install |
398 | rm -rf $RPM_BUILD_ROOT | |
19a74fff | 399 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,modprobe.d,security,sysconfig/rc-inetd} \ |
428f33ff | 400 | $RPM_BUILD_ROOT/var/run/cups \ |
33a3fa2f | 401 | $RPM_BUILD_ROOT/var/log/{,archive/}cups \ |
cdbbf080 | 402 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}} |
fd7e4ff1 | 403 | |
6133c494 | 404 | %{__make} install \ |
e827011a AM |
405 | BUILDROOT=$RPM_BUILD_ROOT \ |
406 | CUPS_USER=$(id -u) \ | |
407 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 408 | |
82f3f074 JK |
409 | if [ "%{_lib}" != "lib" ] ; then |
410 | install -d $RPM_BUILD_ROOT%{_libdir} | |
411 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
8a37ac1d | 412 | %if %{with static_libs} |
e3bfc8b9 | 413 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
8a37ac1d | 414 | %endif |
82f3f074 JK |
415 | fi |
416 | ||
bf51f358 JR |
417 | %if %{with avahi} |
418 | ln -s %{_ulibdir}/cups/backend/dnssd $RPM_BUILD_ROOT%{_ulibdir}/cups/backend/mdns | |
419 | %endif | |
420 | ||
afb74796 JR |
421 | %if %{with php} |
422 | %{__make} -C scripting/php install \ | |
423 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} | |
424 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
425 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << 'EOF' | |
426 | ; Enable phpcups extension module | |
427 | extension=phpcups.so | |
428 | EOF | |
429 | %endif | |
430 | ||
431 | %if %{with perl} | |
432 | %{__make} -C scripting/perl install \ | |
433 | DESTDIR=$RPM_BUILD_ROOT | |
434 | %endif | |
435 | ||
33a3fa2f JR |
436 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
437 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
438 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
1770fa4c | 439 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/cups/mailto.conf |
84d9a886 | 440 | sed -e 's|__ULIBDIR__|%{_ulibdir}|g' %{SOURCE5} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cups-lpd |
33a3fa2f | 441 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/modprobe.d/cups.conf |
cdbbf080 | 442 | install %{SOURCE7} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
45a67ab9 | 443 | |
4d897458 | 444 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 445 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 446 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 447 | |
ef5fe709 ER |
448 | # windows drivers can be put there. |
449 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
450 | ||
748a0bf9 ER |
451 | # dirs for gimp-print-cups-4.2.7-1 |
452 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
453 | ||
daf27ba0 | 454 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 455 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 456 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 457 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 458 | |
eea94f34 | 459 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
460 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
461 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 462 | |
4e75f969 JB |
463 | # fix/update locale names |
464 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/{nb,zh_CN} | |
465 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no/cups_no.po,nb/cups_nb.po} | |
466 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh/cups_zh.po,zh_CN/cups_zh_CN.po} | |
467 | ||
2e2308c6 | 468 | # check-files cleanup |
0ce3cd57 | 469 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 470 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 471 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 472 | |
9625f17f JB |
473 | %clean |
474 | rm -rf $RPM_BUILD_ROOT | |
475 | ||
168e60c2 | 476 | %post |
8a24ec7f | 477 | /sbin/chkconfig --add cups |
a73a2669 | 478 | %service cups restart "cups daemon" |
8b6d67b6 | 479 | /sbin/rmmod usblp > /dev/null 2>&1 || : |
304fa3b3 | 480 | %systemd_post cups.service cups.socket cups.path |
fb328468 | 481 | |
168e60c2 | 482 | %preun |
fd7e4ff1 | 483 | if [ "$1" = "0" ]; then |
a73a2669 | 484 | %service cups stop |
fd7e4ff1 | 485 | /sbin/chkconfig --del cups |
486 | fi | |
304fa3b3 | 487 | %systemd_preun cups.service cups.socket cups.path |
cdbbf080 JR |
488 | |
489 | %postun | |
490 | %systemd_reload | |
491 | ||
492 | %triggerpostun -- cups < 1.5.2-1 | |
304fa3b3 | 493 | %systemd_trigger cups.service cups.socket cups.path |
168e60c2 | 494 | |
19e8d1ed | 495 | %post lib -p /sbin/ldconfig |
496 | %postun lib -p /sbin/ldconfig | |
497 | %post image-lib -p /sbin/ldconfig | |
498 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 499 | |
afb74796 JR |
500 | %post -n php-cups |
501 | %php_webserver_restart | |
502 | ||
503 | %postun -n php-cups | |
504 | if [ "$1" = 0 ]; then | |
505 | %php_webserver_restart | |
506 | fi | |
507 | ||
84d9a886 JR |
508 | %post lpd |
509 | %service -q rc-inetd reload | |
510 | ||
511 | %postun lpd | |
512 | if [ "$1" = 0 ]; then | |
513 | %service -q rc-inetd reload | |
514 | fi | |
515 | ||
fd7e4ff1 | 516 | %files |
346112e3 | 517 | %defattr(644,root,root,755) |
4c209b1f | 518 | %doc *.txt |
39956f63 | 519 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 520 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 521 | /etc/dbus-1/system.d/cups.conf |
19a74fff | 522 | /etc/modprobe.d/cups.conf |
cdbbf080 | 523 | %{systemdunitdir}/cups.service |
b65c711b JR |
524 | %{systemdunitdir}/cups.socket |
525 | %{systemdunitdir}/cups.path | |
cdbbf080 | 526 | %{systemdtmpfilesdir}/%{name}.conf |
6139e54a | 527 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 528 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 529 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 530 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
3cb197ff | 531 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/snmp.conf |
cd29fb20 | 532 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 533 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 534 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 535 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 536 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 537 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 538 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 539 | %attr(755,root,root) %{_bindir}/cupstestdsc |
25802dee | 540 | %attr(755,root,root) %{_bindir}/ppd* |
ceddaf82 | 541 | %attr(755,root,root) %{_sbindir}/cupsctl |
daf27ba0 | 542 | %attr(755,root,root) %{_sbindir}/cupsd |
ceddaf82 | 543 | %attr(755,root,root) %{_sbindir}/cupsfilter |
daf27ba0 | 544 | |
82f3f074 JK |
545 | %dir %{_ulibdir}/cups |
546 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
547 | %{_ulibdir}/cups/cgi-bin/help |
548 | %{_ulibdir}/cups/cgi-bin/images | |
549 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
550 | %{_ulibdir}/cups/cgi-bin/*.css | |
551 | %{_ulibdir}/cups/cgi-bin/*.html | |
daf27ba0 | 552 | %{_ulibdir}/cups/cgi-bin/*.txt |
21212dc8 | 553 | %lang(de) %{_ulibdir}/cups/cgi-bin/de |
daf27ba0 | 554 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
afacd72e | 555 | %lang(eu) %{_ulibdir}/cups/cgi-bin/eu |
cdbbf080 JR |
556 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
557 | %lang(hu) %{_ulibdir}/cups/cgi-bin/hu | |
f72ae4ea AM |
558 | %lang(id) %{_ulibdir}/cups/cgi-bin/id |
559 | %lang(it) %{_ulibdir}/cups/cgi-bin/it | |
daf27ba0 KK |
560 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
561 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
afacd72e | 562 | %lang(ru) %{_ulibdir}/cups/cgi-bin/ru |
daf27ba0 | 563 | |
bf51f358 JR |
564 | %if %{with avahi} |
565 | %attr(755,root,root) %{_ulibdir}/cups/backend/dnssd | |
566 | %attr(755,root,root) %{_ulibdir}/cups/backend/mdns | |
567 | %endif | |
ea79d226 ER |
568 | %attr(755,root,root) %{_ulibdir}/cups/backend/http |
569 | %attr(755,root,root) %{_ulibdir}/cups/backend/https | |
570 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipp | |
571 | %attr(755,root,root) %{_ulibdir}/cups/backend/ipps | |
572 | %attr(755,root,root) %{_ulibdir}/cups/backend/lpd | |
573 | %attr(755,root,root) %{_ulibdir}/cups/backend/snmp | |
574 | %attr(755,root,root) %{_ulibdir}/cups/backend/socket | |
84d9a886 JR |
575 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-deviced |
576 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-driverd | |
d15c7d48 | 577 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-exec |
84d9a886 | 578 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-polld |
daf27ba0 KK |
579 | %attr(755,root,root) %{_ulibdir}/cups/filter/* |
580 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
581 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
582 | ||
54906e64 | 583 | %{_datadir}/cups/banners |
54906e64 ER |
584 | %{_datadir}/cups/charsets |
585 | %{_datadir}/cups/data | |
6139e54a | 586 | %{_datadir}/cups/drivers |
25802dee AM |
587 | %{_datadir}/cups/drv |
588 | %{_datadir}/cups/examples | |
54906e64 | 589 | %{_datadir}/cups/fonts |
25802dee | 590 | %{_datadir}/cups/mime |
748a0bf9 | 591 | %dir %{_datadir}/cups/model |
748a0bf9 ER |
592 | # dirs for gimp-print-cups-4.2.7-1 |
593 | %dir %{_datadir}/cups/model/C | |
594 | %lang(da) %dir %{_datadir}/cups/model/da | |
595 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
596 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
597 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
598 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
599 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
600 | ||
25802dee AM |
601 | %{_datadir}/cups/ppdc |
602 | ||
54906e64 ER |
603 | %dir %{_datadir}/cups/templates |
604 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 605 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 606 | %lang(es) %{_datadir}/cups/templates/es |
afacd72e | 607 | %lang(eu) %{_datadir}/cups/templates/eu |
cdbbf080 JR |
608 | %lang(fr) %{_datadir}/cups/templates/fr |
609 | %lang(hu) %{_datadir}/cups/templates/hu | |
f72ae4ea AM |
610 | %lang(id) %{_datadir}/cups/templates/id |
611 | %lang(it) %{_datadir}/cups/templates/it | |
54906e64 ER |
612 | %lang(ja) %{_datadir}/cups/templates/ja |
613 | %lang(pl) %{_datadir}/cups/templates/pl | |
afacd72e | 614 | %lang(ru) %{_datadir}/cups/templates/ru |
c1555e94 | 615 | %{_mandir}/man1/cupstestppd.1* |
e809c01b | 616 | %{_mandir}/man1/cupstestdsc.1* |
0366ccc3 | 617 | %{_mandir}/man1/lppasswd.1* |
25802dee | 618 | %{_mandir}/man1/ppd*.1* |
4e75f969 JB |
619 | %{_mandir}/man7/backend.7* |
620 | %{_mandir}/man7/filter.7* | |
25802dee | 621 | %{_mandir}/man7/notifier.7* |
84d9a886 JR |
622 | %{_mandir}/man5/* |
623 | %{_mandir}/man8/accept.8* | |
624 | %{_mandir}/man8/cups-deviced.8* | |
625 | %{_mandir}/man8/cups-driverd.8* | |
626 | %{_mandir}/man8/cups-polld.8* | |
627 | %{_mandir}/man8/cupsaddsmb.8* | |
628 | %{_mandir}/man8/cupsctl.8* | |
629 | %{_mandir}/man8/cupsd.8* | |
630 | %{_mandir}/man8/cupsenable.8* | |
631 | %{_mandir}/man8/cupsfilter.8* | |
632 | %{_mandir}/man8/lp* | |
daf27ba0 KK |
633 | |
634 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
635 | %dir %attr(755,root,lp) /var/lib/cups |
636 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 637 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
638 | %dir %attr(710,root,lp) /var/spool/cups |
639 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 640 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 641 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 642 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 643 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
081a50cb | 644 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
645 | %attr(750,root,logs) %dir /var/log/cups |
646 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
647 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
648 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 649 | |
6ebf74dd AF |
650 | %files lib |
651 | %defattr(644,root,root,755) | |
3c247a25 | 652 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd | 653 | %attr(755,root,root) %{_libdir}/libcups.so.* |
25802dee AM |
654 | %attr(755,root,root) %{_libdir}/libcupscgi.so.* |
655 | %attr(755,root,root) %{_libdir}/libcupsdriver.so.* | |
656 | %attr(755,root,root) %{_libdir}/libcupsmime.so.* | |
657 | %attr(755,root,root) %{_libdir}/libcupsppdc.so.* | |
a57fa410 | 658 | %dir %{_datadir}/cups |
a57fa410 KK |
659 | %lang(da) %{_datadir}/locale/da/cups_da.po |
660 | %lang(de) %{_datadir}/locale/de/cups_de.po | |
661 | %lang(es) %{_datadir}/locale/es/cups_es.po | |
afacd72e | 662 | %lang(eu) %{_datadir}/locale/eu/cups_eu.po |
a57fa410 KK |
663 | %lang(fi) %{_datadir}/locale/fi/cups_fi.po |
664 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po | |
cdbbf080 | 665 | %lang(hu) %{_datadir}/locale/hu/cups_hu.po |
f72ae4ea | 666 | %lang(id) %{_datadir}/locale/id/cups_id.po |
a57fa410 KK |
667 | %lang(it) %{_datadir}/locale/it/cups_it.po |
668 | %lang(ko) %{_datadir}/locale/ko/cups_ko.po | |
669 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po | |
670 | %lang(nl) %{_datadir}/locale/nl/cups_nl.po | |
4e75f969 | 671 | %lang(nb) %{_datadir}/locale/nb/cups_nb.po |
a57fa410 KK |
672 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
673 | %lang(pt) %{_datadir}/locale/pt/cups_pt.po | |
674 | %lang(pt_BR) %{_datadir}/locale/pt_BR/cups_pt_BR.po | |
a57fa410 KK |
675 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po |
676 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po | |
4e75f969 | 677 | %lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN.po |
a57fa410 | 678 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po |
6ebf74dd | 679 | |
2da56f05 SZ |
680 | %files clients |
681 | %defattr(644,root,root,755) | |
8d2025a2 | 682 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 683 | %attr(755,root,root) %{_bindir}/cancel |
d15c7d48 | 684 | %attr(755,root,root) %{_bindir}/ipptool |
2da56f05 SZ |
685 | %attr(755,root,root) %{_bindir}/lp |
686 | %attr(755,root,root) %{_bindir}/lpoptions | |
687 | %attr(755,root,root) %{_bindir}/lpq | |
688 | %attr(755,root,root) %{_bindir}/lpr | |
689 | %attr(755,root,root) %{_bindir}/lprm | |
690 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e | 691 | %attr(755,root,root) %{_sbindir}/accept |
25802dee | 692 | %attr(755,root,root) %{_sbindir}/cupsaccept |
501ef07e | 693 | %attr(755,root,root) %{_sbindir}/cupsaddsmb |
eea94f34 | 694 | %attr(755,root,root) %{_sbindir}/cupsenable |
695 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
25802dee | 696 | %attr(755,root,root) %{_sbindir}/cupsreject |
eea94f34 | 697 | %attr(755,root,root) %{_sbindir}/disable |
698 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
699 | %attr(755,root,root) %{_sbindir}/lpadmin |
700 | %attr(755,root,root) %{_sbindir}/lpc | |
701 | %attr(755,root,root) %{_sbindir}/lpinfo | |
702 | %attr(755,root,root) %{_sbindir}/lpmove | |
703 | %attr(755,root,root) %{_sbindir}/reject | |
d15c7d48 | 704 | %{_datadir}/cups/ipptool |
1770fa4c ER |
705 | %{_desktopdir}/cups.desktop |
706 | %{_iconsdir}/hicolor/*/apps/cups.png | |
93040bdf | 707 | %{_mandir}/man1/cancel.1* |
d15c7d48 | 708 | %{_mandir}/man1/ipptool.1* |
0366ccc3 AF |
709 | %{_mandir}/man1/lp.1* |
710 | %{_mandir}/man1/lpoptions.1* | |
711 | %{_mandir}/man1/lpq.1* | |
712 | %{_mandir}/man1/lpr.1* | |
713 | %{_mandir}/man1/lprm.1* | |
714 | %{_mandir}/man1/lpstat.1* | |
25802dee AM |
715 | %{_mandir}/man8/cupsaccept.8* |
716 | %{_mandir}/man8/cupsdisable.8* | |
717 | %{_mandir}/man8/cupsreject.8* | |
718 | %{_mandir}/man8/reject.8* | |
2da56f05 | 719 | |
6ebf74dd | 720 | %files image-lib |
fd7e4ff1 | 721 | %defattr(644,root,root,755) |
6ebf74dd | 722 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 723 | |
980a97fe | 724 | %files devel |
725 | %defattr(644,root,root,755) | |
6e2c2519 | 726 | %attr(755,root,root) %{_bindir}/cups-config |
4e75f969 | 727 | %attr(755,root,root) %{_libdir}/libcups.so |
25802dee AM |
728 | %attr(755,root,root) %{_libdir}/libcupscgi.so |
729 | %attr(755,root,root) %{_libdir}/libcupsdriver.so | |
4e75f969 | 730 | %attr(755,root,root) %{_libdir}/libcupsimage.so |
25802dee AM |
731 | %attr(755,root,root) %{_libdir}/libcupsmime.so |
732 | %attr(755,root,root) %{_libdir}/libcupsppdc.so | |
980a97fe | 733 | %{_includedir}/cups |
4e75f969 | 734 | %{_mandir}/man1/cups-config.1* |
980a97fe | 735 | |
373aff1e | 736 | %if %{with static_libs} |
8d2025a2 AM |
737 | %files static |
738 | %defattr(644,root,root,755) | |
4e75f969 | 739 | %{_libdir}/libcups.a |
25802dee AM |
740 | %{_libdir}/libcupscgi.a |
741 | %{_libdir}/libcupsdriver.a | |
4e75f969 | 742 | %{_libdir}/libcupsimage.a |
25802dee AM |
743 | %{_libdir}/libcupsmime.a |
744 | %{_libdir}/libcupsppdc.a | |
373aff1e | 745 | %endif |
2e2308c6 | 746 | |
afb74796 JR |
747 | %if %{with perl} |
748 | %files -n perl-cups | |
749 | %defattr(644,root,root,755) | |
750 | %{perl_vendorarch}/CUPS.pm | |
751 | %dir %{perl_vendorarch}/auto/CUPS | |
752 | %{perl_vendorarch}/auto/CUPS/CUPS.bs | |
753 | %{perl_vendorarch}/auto/CUPS/autosplit.ix | |
754 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/CUPS.so | |
755 | %{_mandir}/man3/CUPS.3pm* | |
756 | %endif | |
757 | ||
758 | %if %{with php} | |
759 | %files -n php-cups | |
760 | %defattr(644,root,root,755) | |
761 | %doc scripting/php/README | |
762 | %attr(755,root,root) %{php_extensiondir}/phpcups.so | |
763 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini | |
764 | %endif | |
765 | ||
0f8ac12d AF |
766 | %files backend-usb |
767 | %defattr(644,root,root,755) | |
82f3f074 | 768 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
0f8ac12d AF |
769 | |
770 | %files backend-serial | |
771 | %defattr(644,root,root,755) | |
82f3f074 | 772 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial |
0f8ac12d AF |
773 | |
774 | %files backend-parallel | |
775 | %defattr(644,root,root,755) | |
82f3f074 | 776 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |
84d9a886 JR |
777 | |
778 | %files lpd | |
779 | %defattr(644,root,root,755) | |
780 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/* | |
781 | %attr(755,root,root) %{_ulibdir}/cups/daemon/cups-lpd | |
782 | %{_mandir}/man8/cups-lpd.8* |