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