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