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