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