]>
Commit | Line | Data |
---|---|---|
6139e54a ER |
1 | # TODO: |
2 | # - build/install java ext ? | |
3 | # - perl BRs | |
daf27ba0 | 4 | # - remove obsolete /etc/cups/certs (trigger?) |
7be5c8e8 JB |
5 | # |
6 | # Conditional build: | |
373aff1e | 7 | %bcond_with gnutls # use GNU TLS for SSL/TLS support (instead of OpenSSL) |
ceddaf82 | 8 | %bcond_without dnssd |
373aff1e KK |
9 | %bcond_without php # don't build PHP extension |
10 | %bcond_without perl # don't build Perl extension | |
ceddaf82 AM |
11 | %bcond_without java |
12 | %bcond_without python | |
373aff1e | 13 | %bcond_without static_libs # don't build static library |
7be5c8e8 | 14 | # |
7be5c8e8 | 15 | %include /usr/lib/rpm/macros.perl |
ef5fe709 | 16 | %define pdir CUPS |
fb328468 | 17 | Summary: Common Unix Printing System |
fb3b4f59 ER |
18 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa |
19 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
346112e3 | 20 | Name: cups |
ceddaf82 AM |
21 | Version: 1.3.0 |
22 | Release: 1 | |
e73da052 | 23 | Epoch: 1 |
346112e3 | 24 | License: GPL/LGPL |
0366ccc3 | 25 | Group: Applications/Printing |
ceddaf82 AM |
26 | Source0: http://dl.sourceforge.net/cups/%{name}-%{version}-source.tar.bz2 |
27 | # Source0-md5: ae2855d5d1ab5b5fcbb8a2613cefec14 | |
168e60c2 | 28 | Source1: %{name}.init |
fd7e4ff1 | 29 | Source2: %{name}.pamd |
fd4436b5 | 30 | Source3: %{name}.logrotate |
60e0cb5a | 31 | Source4: %{name}.mailto.conf |
25dfe94f JB |
32 | Patch0: %{name}-config.patch |
33 | Patch1: %{name}-lp-lpr.patch | |
34 | Patch2: %{name}-options.patch | |
73a0798d | 35 | Patch3: %{name}-man_pages_linking.patch |
f75e41c7 | 36 | Patch4: %{name}-nostrip.patch |
428f33ff KK |
37 | Patch5: %{name}-templates.patch |
38 | Patch6: %{name}-certs_FHS.patch | |
ceddaf82 | 39 | Patch7: %{name}-direct_usb.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 |
373aff1e | 47 | %{?with_gnutls:BuildRequires: gnutls-devel} |
ceddaf82 | 48 | BuildRequires: krb5-devel |
aa509eeb | 49 | BuildRequires: libjpeg-devel |
30d7d426 | 50 | BuildRequires: libpng-devel |
21ee9950 | 51 | BuildRequires: libstdc++-devel |
30d7d426 | 52 | BuildRequires: libtiff-devel |
dc0f13b3 | 53 | BuildRequires: openldap-devel |
c7103aaa | 54 | BuildRequires: openslp-devel |
373aff1e | 55 | %{!?with_gnutls:BuildRequires: openssl-devel} |
8bdc526e | 56 | BuildRequires: pam-devel |
752c3387 | 57 | %{?with_php:BuildRequires: php-devel >= 4:5.0.0} |
3219126a | 58 | BuildRequires: pkgconfig |
559b7094 | 59 | BuildRequires: rpm-perlprov |
4fc96bcd | 60 | BuildRequires: rpmbuild(macros) >= 1.344 |
9e9d05b7 | 61 | Requires(post,preun): /sbin/chkconfig |
39956f63 | 62 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
6bd9c7f7 | 63 | Requires: pam >= 0.77.3 |
a73a2669 | 64 | Requires: rc-scripts |
09af927c PZ |
65 | Obsoletes: printingdaemon |
66 | Provides: printingdaemon | |
a73a2669 | 67 | Conflicts: ghostscript < 7.05.4 |
91331aef | 68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
346112e3 | 69 | |
82f3f074 JK |
70 | %define _ulibdir %{_prefix}/lib |
71 | ||
fb328468 | 72 | %description |
dd843423 | 73 | CUPS provides a portable printing layer for UNIX-based operating |
8bff8fce MP |
74 | systems. It has been developed by Easy Software Products to promote a |
75 | standard printing solution for all UNIX vendors and users. CUPS | |
76 | provides the System V and Berkeley command-line interfaces. CUPS uses | |
77 | the Internet Printing Protocol ("IPP") as the basis for managing print | |
78 | jobs and queues. The Line Printer Daemon ("LPD") Server Message Block | |
79 | ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported | |
80 | with reduced functionality. CUPS adds network printer browsing and | |
81 | PostScript Printer Description ("PPD") based printing options to | |
82 | support real-world printing under UNIX. | |
346112e3 | 83 | |
2f78071d JR |
84 | %description -l pl.UTF-8 |
85 | CUPS dostarcza standardowy poziom drukowania dla systemów uniksowych. | |
86 | CUPS używa protokołu IPP - Internet Printint Protocol jako podstawy do | |
87 | zarządzania zadaniami i kolejkami druku. W ograniczonym zakresie | |
88 | obsługiwane są także protokoły LPD (Line Printer Daemon), SMB (Server | |
89 | Message Block) i AppSocket (znany także jako JetDirect). CUPS | |
90 | udostępnia przeglądanie drukarek sieciowych i opcje drukowania oparte | |
91 | na PPD (PostScript Printer Description) do obsługi rzeczywistych | |
bc9f5ffe | 92 | drukarek. |
30d7d426 | 93 | |
2f78071d JR |
94 | %description -l pt_BR.UTF-8 |
95 | O sistema Unix de impressão (CUPS) fornece uma camada de impressão | |
96 | portável para os sistemas operacionais baseados no UNIX®. | |
4644dd52 | 97 | |
6ebf74dd | 98 | %package lib |
fd7e4ff1 | 99 | Summary: Common Unix Printing System Libraries |
fb3b4f59 ER |
100 | Summary(pl.UTF-8): Biblioteki dla CUPS |
101 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
52835768 | 102 | Group: Libraries |
6ebf74dd | 103 | Provides: %{name}-libs = %{epoch}:%{version}-%{release} |
a73a2669 | 104 | Obsoletes: cups-libs |
bf6c7747 | 105 | Obsoletes: libcups1 |
fd7e4ff1 | 106 | |
6ebf74dd | 107 | %description lib |
9625f17f JB |
108 | Common Unix Printing System Libraries. |
109 | ||
2f78071d | 110 | %description lib -l pl.UTF-8 |
9625f17f | 111 | Biblioteki dla CUPS. |
fd7e4ff1 | 112 | |
2f78071d | 113 | %description lib -l pt_BR.UTF-8 |
6ebf74dd AF |
114 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
115 | ||
2da56f05 SZ |
116 | %package clients |
117 | Summary: Common Unix Printing System Clients | |
fb3b4f59 | 118 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS |
2da56f05 | 119 | Group: Applications/Printing |
e055e440 | 120 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
09af927c PZ |
121 | Obsoletes: printingclient |
122 | Provides: printingclient | |
2da56f05 SZ |
123 | |
124 | %description clients | |
125 | Common Unix Printing System Clients. | |
126 | ||
2f78071d | 127 | %description clients -l pl.UTF-8 |
2da56f05 SZ |
128 | Aplikacje klienckie dla CUPS. |
129 | ||
6ebf74dd AF |
130 | %package image-lib |
131 | Summary: Common Unix Printing System Libraries - images manipulation | |
fb3b4f59 ER |
132 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych |
133 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
52835768 | 134 | Group: Libraries |
039c735c | 135 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
6ebf74dd AF |
136 | Obsoletes: libcups1 |
137 | ||
138 | %description image-lib | |
139 | Common Unix Printing System Libraries - images manupalation. | |
140 | ||
2f78071d JR |
141 | %description image-lib -l pl.UTF-8 |
142 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
6ebf74dd | 143 | |
2f78071d | 144 | %description image-lib -l pt_BR.UTF-8 |
4644dd52 | 145 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
146 | ||
980a97fe | 147 | %package devel |
148 | Summary: Common Unix Printing System development files | |
fb3b4f59 ER |
149 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe |
150 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
980a97fe | 151 | Group: Development/Libraries |
cd99fdf9 JB |
152 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} |
153 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
950cc25f KK |
154 | %{?with_gnutls:Requires: gnutls-devel} |
155 | %{!?with_gnutls:Requires: openssl-devel} | |
717a8d25 | 156 | Requires: zlib-devel |
bf6c7747 | 157 | Obsoletes: libcups1-devel |
980a97fe | 158 | |
159 | %description devel | |
9625f17f | 160 | Common Unix Printing System development files. |
980a97fe | 161 | |
2f78071d JR |
162 | %description devel -l pl.UTF-8 |
163 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
8bdc526e | 164 | |
2f78071d JR |
165 | %description devel -l pt_BR.UTF-8 |
166 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
167 | para a criação de suporte a novas impressoras e novos serviços ao | |
4644dd52 | 168 | CUPS. |
169 | ||
980a97fe | 170 | %package static |
171 | Summary: Common Unix Printing System static libraries | |
fb3b4f59 ER |
172 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne |
173 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
980a97fe | 174 | Group: Development/Libraries |
cd99fdf9 | 175 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
980a97fe | 176 | |
177 | %description static | |
8bdc526e | 178 | Common Unix Printing System static libraries. |
980a97fe | 179 | |
2f78071d JR |
180 | %description static -l pl.UTF-8 |
181 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
8bdc526e | 182 | |
2f78071d JR |
183 | %description static -l pt_BR.UTF-8 |
184 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
4644dd52 | 185 | bibliotecas do CUPS. |
186 | ||
2e2308c6 | 187 | %package -n perl-cups |
7be5c8e8 | 188 | Summary: Perl module for CUPS |
fb3b4f59 | 189 | Summary(pl.UTF-8): Moduł Perla CUPS |
7be5c8e8 | 190 | Group: Development/Languages/Perl |
cd99fdf9 | 191 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
2e2308c6 AF |
192 | |
193 | %description -n perl-cups | |
7be5c8e8 JB |
194 | Perl module for Common Unix Printing System. |
195 | ||
2f78071d JR |
196 | %description -n perl-cups -l pl.UTF-8 |
197 | Moduł Perla do ogólnego systemu druku dla Uniksa. | |
2e2308c6 AF |
198 | |
199 | %package -n php-cups | |
200 | Summary: PHP module for CUPS | |
fb3b4f59 | 201 | Summary(pl.UTF-8): Moduł PHP CUPS |
7be5c8e8 | 202 | Group: Development/Languages/PHP |
cd99fdf9 | 203 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
ed486845 | 204 | %{?requires_php_extension} |
786665a9 | 205 | Requires: /etc/php/conf.d |
752c3387 | 206 | Requires: php-common >= 4:5.0.0 |
2e2308c6 AF |
207 | |
208 | %description -n php-cups | |
209 | PHP module for Common Unix Printing System. | |
210 | ||
2f78071d JR |
211 | %description -n php-cups -l pl.UTF-8 |
212 | Moduł PHP do ogólnego systemu druku dla Uniksa. | |
7be5c8e8 | 213 | |
25aeafb8 | 214 | %package backend-usb |
0f8ac12d | 215 | Summary: USB backend for CUPS |
fb3b4f59 | 216 | Summary(pl.UTF-8): Backend USB dla CUPS-a |
0f8ac12d | 217 | Group: Applications/Printing |
cd99fdf9 | 218 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
219 | |
220 | %description backend-usb | |
221 | This package allow CUPS printing on USB printers. | |
222 | ||
2f78071d JR |
223 | %description backend-usb -l pl.UTF-8 |
224 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
71ac0ea6 | 225 | |
25aeafb8 | 226 | %package backend-serial |
71ac0ea6 | 227 | Summary: Serial port backend for CUPS |
fb3b4f59 | 228 | Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a |
0f8ac12d | 229 | Group: Applications/Printing |
cd99fdf9 | 230 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
231 | |
232 | %description backend-serial | |
71ac0ea6 JB |
233 | This package allow CUPS printing on printers connected by serial |
234 | ports. | |
235 | ||
2f78071d JR |
236 | %description backend-serial -l pl.UTF-8 |
237 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
238 | podłączonych do portów szeregowych. | |
0f8ac12d | 239 | |
25aeafb8 | 240 | %package backend-parallel |
71ac0ea6 | 241 | Summary: Parallel port backend for CUPS |
fb3b4f59 | 242 | Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a |
0f8ac12d | 243 | Group: Applications/Printing |
cd99fdf9 | 244 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
245 | |
246 | %description backend-parallel | |
71ac0ea6 JB |
247 | This package allow CUPS printing on printers connected by parallel |
248 | ports. | |
249 | ||
2f78071d JR |
250 | %description backend-parallel -l pl.UTF-8 |
251 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
252 | podłączonych do portów równoległych. | |
0f8ac12d | 253 | |
346112e3 | 254 | %prep |
735a5048 | 255 | %setup -q |
73a0798d | 256 | %patch0 -p1 |
8bdc526e | 257 | %patch1 -p1 |
25dfe94f | 258 | %patch2 -p1 |
73a0798d | 259 | %patch3 -p1 |
f75e41c7 | 260 | %patch4 -p1 |
653cdc22 | 261 | %patch5 -p1 |
428f33ff | 262 | %patch6 -p1 |
ceddaf82 | 263 | %patch7 -p1 |
8bdc526e | 264 | |
346112e3 | 265 | %build |
daf27ba0 | 266 | %{__aclocal} -I config-scripts |
0b9d4622 | 267 | %{__autoconf} |
c6f4ebff | 268 | %configure \ |
82f3f074 | 269 | --libdir=%{_ulibdir} \ |
8d2025a2 | 270 | --enable-shared \ |
ceddaf82 AM |
271 | --with-cups-user=lp \ |
272 | --with-cups-group=sys \ | |
273 | --with-system-groups=sys \ | |
274 | --with-printcap=/etc/printcap \ | |
373aff1e | 275 | %{?with_static_libs:--enable-static} \ |
faa66800 | 276 | --enable-ssl \ |
373aff1e KK |
277 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ |
278 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ | |
ceddaf82 | 279 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
faa66800 | 280 | --disable-cdsassl \ |
e809c01b | 281 | --enable-dbus \ |
d110f6af | 282 | %{?debug:--enable-debug} \ |
373aff1e | 283 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
ceddaf82 AM |
284 | --with-config-file-perm=0640 \ |
285 | --with-log-file-perm=0640 \ | |
286 | %{?with_dnssd:--with-dnssd-libs=x} \ | |
287 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
288 | %{?with_php:--with-php} \ | |
289 | %{?with_perl:--with-perl} \ | |
290 | %{?with_java:--with-java} \ | |
291 | %{?with_php:--with-python} | |
373aff1e | 292 | |
346112e3 | 293 | %{__make} |
7be5c8e8 | 294 | |
cad7b106 | 295 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile |
e809c01b | 296 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} |
7be5c8e8 | 297 | |
f07e6182 | 298 | %if %{with perl} |
2e2308c6 | 299 | cd scripting/perl |
7be5c8e8 JB |
300 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL |
301 | %{__perl} Makefile.PL \ | |
302 | INSTALLDIRS=vendor \ | |
303 | OPTIMIZE="%{rpmcflags} -I../.." | |
304 | # avoid rpaths generated by MakeMaker | |
cad7b106 | 305 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile |
7be5c8e8 JB |
306 | |
307 | %{__make} | |
2e2308c6 AF |
308 | cd ../.. |
309 | %endif | |
346112e3 | 310 | |
311 | %install | |
312 | rm -rf $RPM_BUILD_ROOT | |
a73a2669 | 313 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security} \ |
428f33ff | 314 | $RPM_BUILD_ROOT/var/run/cups \ |
38f5ddf3 | 315 | $RPM_BUILD_ROOT/var/log/{,archive/}cups |
fd7e4ff1 | 316 | |
6133c494 | 317 | %{__make} install \ |
e827011a AM |
318 | BUILDROOT=$RPM_BUILD_ROOT \ |
319 | CUPS_USER=$(id -u) \ | |
320 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 321 | |
82f3f074 JK |
322 | if [ "%{_lib}" != "lib" ] ; then |
323 | install -d $RPM_BUILD_ROOT%{_libdir} | |
324 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
e3bfc8b9 | 325 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
82f3f074 JK |
326 | fi |
327 | ||
f07e6182 | 328 | %if %{with php} |
2e2308c6 | 329 | %{__make} -C scripting/php install \ |
4fc96bcd ER |
330 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} |
331 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
332 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << EOF | |
e809c01b | 333 | ; Enable phpcups extension module |
752c3387 ER |
334 | extension=phpcups.so |
335 | EOF | |
2e2308c6 AF |
336 | %endif |
337 | ||
f07e6182 | 338 | %if %{with perl} |
653cdc22 | 339 | %{__make} -C scripting/perl install \ |
6133c494 | 340 | DESTDIR=$RPM_BUILD_ROOT |
2e2308c6 AF |
341 | %endif |
342 | ||
cad7b106 | 343 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
344 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
345 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
60e0cb5a | 346 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cups/mailto.conf |
45a67ab9 | 347 | |
de296a9f | 348 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd |
30d7d426 | 349 | |
4d897458 | 350 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 351 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 352 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 353 | |
ef5fe709 ER |
354 | # windows drivers can be put there. |
355 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
356 | ||
748a0bf9 ER |
357 | # dirs for gimp-print-cups-4.2.7-1 |
358 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
359 | ||
daf27ba0 | 360 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 361 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 362 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 363 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 364 | |
eea94f34 | 365 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
366 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
367 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 368 | |
2e2308c6 | 369 | # check-files cleanup |
0ce3cd57 | 370 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 371 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 372 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 373 | |
9625f17f JB |
374 | %clean |
375 | rm -rf $RPM_BUILD_ROOT | |
376 | ||
168e60c2 | 377 | %post |
8a24ec7f | 378 | /sbin/chkconfig --add cups |
a73a2669 | 379 | %service cups restart "cups daemon" |
fb328468 | 380 | |
168e60c2 | 381 | %preun |
fd7e4ff1 | 382 | if [ "$1" = "0" ]; then |
a73a2669 | 383 | %service cups stop |
fd7e4ff1 | 384 | /sbin/chkconfig --del cups |
385 | fi | |
168e60c2 | 386 | |
19e8d1ed | 387 | %post lib -p /sbin/ldconfig |
388 | %postun lib -p /sbin/ldconfig | |
389 | %post image-lib -p /sbin/ldconfig | |
390 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 391 | |
752c3387 | 392 | %post -n php-cups |
572f9a81 | 393 | %php_webserver_restart |
752c3387 ER |
394 | |
395 | %postun -n php-cups | |
396 | if [ "$1" = 0 ]; then | |
572f9a81 | 397 | %php_webserver_restart |
752c3387 ER |
398 | fi |
399 | ||
fd7e4ff1 | 400 | %files |
346112e3 | 401 | %defattr(644,root,root,755) |
05d8dec5 | 402 | #%doc *.gz doc/*.html doc/*.css doc/images |
4c209b1f | 403 | %doc *.txt |
39956f63 | 404 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 405 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 406 | /etc/dbus-1/system.d/cups.conf |
6139e54a | 407 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 408 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 409 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 410 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
39956f63 ER |
411 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs |
412 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types | |
cd29fb20 | 413 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 414 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 415 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 416 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 417 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 418 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 419 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 420 | %attr(755,root,root) %{_bindir}/cupstestdsc |
ceddaf82 | 421 | %attr(755,root,root) %{_sbindir}/cupsctl |
daf27ba0 | 422 | %attr(755,root,root) %{_sbindir}/cupsd |
ceddaf82 | 423 | %attr(755,root,root) %{_sbindir}/cupsfilter |
daf27ba0 | 424 | |
82f3f074 JK |
425 | %dir %{_ulibdir}/cups |
426 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
427 | %{_ulibdir}/cups/cgi-bin/help |
428 | %{_ulibdir}/cups/cgi-bin/images | |
429 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
430 | %{_ulibdir}/cups/cgi-bin/*.css | |
431 | %{_ulibdir}/cups/cgi-bin/*.html | |
432 | %{_ulibdir}/cups/cgi-bin/*.ico | |
433 | %{_ulibdir}/cups/cgi-bin/*.txt | |
21212dc8 | 434 | %lang(de) %{_ulibdir}/cups/cgi-bin/de |
daf27ba0 | 435 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
ce6b0d52 | 436 | %lang(et) %{_ulibdir}/cups/cgi-bin/et |
6692ed4f | 437 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
ceddaf82 | 438 | %lang(he) %{_ulibdir}/cups/cgi-bin/he |
03e64605 | 439 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 KK |
440 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
441 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
442 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
2717f059 | 443 | %lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW |
daf27ba0 | 444 | |
82f3f074 JK |
445 | %exclude %{_ulibdir}/cups/backend/usb |
446 | %exclude %{_ulibdir}/cups/backend/serial | |
447 | %exclude %{_ulibdir}/cups/backend/parallel | |
daf27ba0 KK |
448 | %attr(755,root,root) %{_ulibdir}/cups/backend/* |
449 | %attr(755,root,root) %{_ulibdir}/cups/daemon/* | |
450 | %attr(755,root,root) %{_ulibdir}/cups/filter/* | |
451 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
452 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
453 | ||
54906e64 ER |
454 | %dir %{_datadir}/cups |
455 | %{_datadir}/cups/banners | |
456 | %{_datadir}/cups/charmaps | |
457 | %{_datadir}/cups/charsets | |
458 | %{_datadir}/cups/data | |
6139e54a | 459 | %{_datadir}/cups/drivers |
54906e64 | 460 | %{_datadir}/cups/fonts |
748a0bf9 ER |
461 | %dir %{_datadir}/cups/model |
462 | %{_datadir}/cups/model/*.ppd.gz | |
463 | # dirs for gimp-print-cups-4.2.7-1 | |
464 | %dir %{_datadir}/cups/model/C | |
465 | %lang(da) %dir %{_datadir}/cups/model/da | |
466 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
467 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
468 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
469 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
470 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
471 | ||
54906e64 ER |
472 | %dir %{_datadir}/cups/templates |
473 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 474 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 475 | %lang(es) %{_datadir}/cups/templates/es |
ce6b0d52 | 476 | %lang(et) %{_datadir}/cups/templates/et |
6692ed4f | 477 | %lang(fr) %{_datadir}/cups/templates/fr |
ceddaf82 | 478 | %lang(he) %{_datadir}/cups/templates/he |
03e64605 | 479 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 ER |
480 | %lang(ja) %{_datadir}/cups/templates/ja |
481 | %lang(pl) %{_datadir}/cups/templates/pl | |
482 | %lang(sv) %{_datadir}/cups/templates/sv | |
2717f059 | 483 | %lang(zh_TW) %{_datadir}/cups/templates/zh_TW |
e809c01b | 484 | %{_mandir}/man7/backend.7* |
c1555e94 | 485 | %{_mandir}/man1/cupstestppd.1* |
e809c01b AM |
486 | %{_mandir}/man1/cupstestdsc.1* |
487 | %{_mandir}/man7/filter.7* | |
0366ccc3 | 488 | %{_mandir}/man1/lppasswd.1* |
2bb4485b | 489 | %{_mandir}/man[58]/* |
ceddaf82 | 490 | %lang(da) %{_datadir}/locale/da/cups_da.po |
217f5641 | 491 | %lang(de) %{_datadir}/locale/de/cups_de.po |
e809c01b | 492 | %lang(es) %{_datadir}/locale/es/cups_es.po |
ce6b0d52 | 493 | %lang(et) %{_datadir}/locale/et/cups_et.po |
ceddaf82 | 494 | %lang(fi) %{_datadir}/locale/fi/cups_fi.po |
6692ed4f | 495 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po |
ceddaf82 | 496 | %lang(he) %{_datadir}/locale/he/cups_he.po |
03e64605 | 497 | %lang(it) %{_datadir}/locale/it/cups_it.po |
ceddaf82 | 498 | %lang(ko) %{_datadir}/locale/ko/cups_ko.po |
e809c01b | 499 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po |
ceddaf82 | 500 | %lang(nl) %{_datadir}/locale/nl/cups_nl.po |
af3419b3 | 501 | #%lang(no) %{_datadir}/locale/no/cups_no.po |
cc4221f2 | 502 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
ceddaf82 AM |
503 | %lang(pt) %{_datadir}/locale/pt/cups_pt.po |
504 | %lang(pt_BR) %{_datadir}/locale/pt_BR/cups_pt_BR.po | |
af3419b3 | 505 | #%lang(pt_PT) %{_datadir}/locale/pt_PT/cups_pt_PT.po |
ceddaf82 | 506 | %lang(ru) %{_datadir}/locale/ru/cups_ru.po |
e809c01b | 507 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po |
af3419b3 | 508 | #%lang(zh) %{_datadir}/locale/zh/cups_zh.po |
2717f059 | 509 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.po |
daf27ba0 KK |
510 | |
511 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
512 | %dir %attr(755,root,lp) /var/lib/cups |
513 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 514 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
515 | %dir %attr(710,root,lp) /var/spool/cups |
516 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 517 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 518 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 519 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 520 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
081a50cb | 521 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
522 | %attr(750,root,logs) %dir /var/log/cups |
523 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
524 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
525 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 526 | |
6ebf74dd AF |
527 | %files lib |
528 | %defattr(644,root,root,755) | |
3c247a25 | 529 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd AF |
530 | %attr(755,root,root) %{_libdir}/libcups.so.* |
531 | ||
2da56f05 SZ |
532 | %files clients |
533 | %defattr(644,root,root,755) | |
8d2025a2 | 534 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 535 | %attr(755,root,root) %{_bindir}/cancel |
2da56f05 SZ |
536 | %attr(755,root,root) %{_bindir}/lp |
537 | %attr(755,root,root) %{_bindir}/lpoptions | |
538 | %attr(755,root,root) %{_bindir}/lpq | |
539 | %attr(755,root,root) %{_bindir}/lpr | |
540 | %attr(755,root,root) %{_bindir}/lprm | |
541 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e AM |
542 | %attr(755,root,root) %{_sbindir}/accept |
543 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
eea94f34 | 544 | %attr(755,root,root) %{_sbindir}/cupsenable |
545 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
546 | %attr(755,root,root) %{_sbindir}/disable | |
547 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
548 | %attr(755,root,root) %{_sbindir}/lpadmin |
549 | %attr(755,root,root) %{_sbindir}/lpc | |
550 | %attr(755,root,root) %{_sbindir}/lpinfo | |
551 | %attr(755,root,root) %{_sbindir}/lpmove | |
552 | %attr(755,root,root) %{_sbindir}/reject | |
93040bdf | 553 | %{_mandir}/man1/cancel.1* |
0366ccc3 AF |
554 | %{_mandir}/man1/lp.1* |
555 | %{_mandir}/man1/lpoptions.1* | |
556 | %{_mandir}/man1/lpq.1* | |
557 | %{_mandir}/man1/lpr.1* | |
558 | %{_mandir}/man1/lprm.1* | |
559 | %{_mandir}/man1/lpstat.1* | |
e809c01b AM |
560 | #%lang(fr) %{_mandir}/fr/man1/cancel.1* |
561 | #%lang(fr) %{_mandir}/fr/man1/lp.1* | |
562 | #%lang(fr) %{_mandir}/fr/man1/lpoptions.1* | |
563 | #%lang(fr) %{_mandir}/fr/man1/lpq.1* | |
564 | #%lang(fr) %{_mandir}/fr/man1/lpr.1* | |
565 | #%lang(fr) %{_mandir}/fr/man1/lprm.1* | |
566 | #%lang(fr) %{_mandir}/fr/man1/lpstat.1* | |
567 | #%lang(es) %{_mandir}/es/man1/lp.1* | |
568 | #%lang(es) %{_mandir}/es/man1/lpoptions.1* | |
569 | #%lang(es) %{_mandir}/es/man1/lpq.1* | |
570 | #%lang(es) %{_mandir}/es/man1/lpr.1* | |
571 | #%lang(es) %{_mandir}/es/man1/lprm.1* | |
572 | #%lang(es) %{_mandir}/es/man1/lpstat.1* | |
2da56f05 | 573 | |
6ebf74dd | 574 | %files image-lib |
fd7e4ff1 | 575 | %defattr(644,root,root,755) |
6ebf74dd | 576 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 577 | |
980a97fe | 578 | %files devel |
579 | %defattr(644,root,root,755) | |
6e2c2519 | 580 | %attr(755,root,root) %{_bindir}/cups-config |
980a97fe | 581 | %{_includedir}/cups |
fd7e4ff1 | 582 | %{_libdir}/lib*.so |
835fcb44 | 583 | %{_mandir}/man1/cups-config* |
6ebf74dd | 584 | %{_mandir}/man3/* |
e809c01b AM |
585 | #%lang(fr) %{_mandir}/fr/man1/cups-config* |
586 | #%lang(es) %{_mandir}/es/man1/cups-config* | |
980a97fe | 587 | |
373aff1e | 588 | %if %{with static_libs} |
8d2025a2 AM |
589 | %files static |
590 | %defattr(644,root,root,755) | |
591 | %{_libdir}/*.a | |
373aff1e | 592 | %endif |
2e2308c6 | 593 | |
f07e6182 | 594 | %if %{with perl} |
2e2308c6 AF |
595 | %files -n perl-cups |
596 | %defattr(644,root,root,755) | |
597 | %{perl_vendorarch}/*.pm | |
598 | %dir %{perl_vendorarch}/auto/CUPS | |
599 | %{perl_vendorarch}/auto/CUPS/*.bs | |
600 | %{perl_vendorarch}/auto/CUPS/autosplit.ix | |
601 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/*.so | |
83bc4a43 | 602 | %endif |
2e2308c6 | 603 | |
f07e6182 | 604 | %if %{with php} |
2e2308c6 AF |
605 | %files -n php-cups |
606 | %defattr(644,root,root,755) | |
44b3e11b | 607 | %doc scripting/php/README |
4fc96bcd ER |
608 | %attr(755,root,root) %{php_extensiondir}/* |
609 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini | |
83bc4a43 | 610 | %endif |
0f8ac12d AF |
611 | |
612 | %files backend-usb | |
613 | %defattr(644,root,root,755) | |
82f3f074 | 614 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
0f8ac12d AF |
615 | |
616 | %files backend-serial | |
617 | %defattr(644,root,root,755) | |
82f3f074 | 618 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial |
0f8ac12d AF |
619 | |
620 | %files backend-parallel | |
621 | %defattr(644,root,root,755) | |
82f3f074 | 622 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |