]>
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) |
2973e449 | 8 | %bcond_with dnssd |
373aff1e KK |
9 | %bcond_without php # don't build PHP extension |
10 | %bcond_without perl # don't build Perl extension | |
2973e449 MWP |
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 |
7509c932 ER |
17 | %define _svn r6309 |
18 | %define _rel 0.1 | |
fb328468 | 19 | Summary: Common Unix Printing System |
fb3b4f59 ER |
20 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa |
21 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão | |
346112e3 | 22 | Name: cups |
2973e449 | 23 | Version: 1.3 |
7509c932 | 24 | Release: 0.%{svn}.%{_rel} |
e73da052 | 25 | Epoch: 1 |
346112e3 | 26 | License: GPL/LGPL |
0366ccc3 | 27 | Group: Applications/Printing |
7509c932 | 28 | Source0: http://dl.sourceforge.net/cups/%{name}-%{version}svn-%{_svn}-source.tar.bz2 |
2973e449 | 29 | # Source0-md5: c819a5eca9f2434c5f51fd01df00c38d |
168e60c2 | 30 | Source1: %{name}.init |
fd7e4ff1 | 31 | Source2: %{name}.pamd |
fd4436b5 | 32 | Source3: %{name}.logrotate |
60e0cb5a | 33 | Source4: %{name}.mailto.conf |
25dfe94f JB |
34 | Patch0: %{name}-config.patch |
35 | Patch1: %{name}-lp-lpr.patch | |
36 | Patch2: %{name}-options.patch | |
73a0798d | 37 | Patch3: %{name}-man_pages_linking.patch |
f75e41c7 | 38 | Patch4: %{name}-nostrip.patch |
428f33ff KK |
39 | Patch5: %{name}-templates.patch |
40 | Patch6: %{name}-certs_FHS.patch | |
2f2c6dd7 | 41 | Patch7: %{name}-direct_usb.patch |
fb328468 | 42 | URL: http://www.cups.org/ |
daf27ba0 | 43 | BuildRequires: acl-devel |
e73da052 | 44 | BuildRequires: autoconf |
45 | BuildRequires: automake | |
e809c01b | 46 | BuildRequires: dbus-devel |
7509c932 | 47 | BuildRequires: glibc-headers |
373aff1e | 48 | %{?with_gnutls:BuildRequires: gnutls-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 |
38c84f40 | 65 | Obsoletes: LPRng |
de296a9f | 66 | Obsoletes: lpr |
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} |
8d713f3f | 121 | Conflicts: LPRng |
2da56f05 SZ |
122 | |
123 | %description clients | |
124 | Common Unix Printing System Clients. | |
125 | ||
2f78071d | 126 | %description clients -l pl.UTF-8 |
2da56f05 SZ |
127 | Aplikacje klienckie dla CUPS. |
128 | ||
6ebf74dd AF |
129 | %package image-lib |
130 | Summary: Common Unix Printing System Libraries - images manipulation | |
fb3b4f59 ER |
131 | Summary(pl.UTF-8): Biblioteki dla CUPS - obsługa formatów graficznych |
132 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - bibliotecas para uso em clientes cups | |
52835768 | 133 | Group: Libraries |
039c735c | 134 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
6ebf74dd AF |
135 | Obsoletes: libcups1 |
136 | ||
137 | %description image-lib | |
138 | Common Unix Printing System Libraries - images manupalation. | |
139 | ||
2f78071d JR |
140 | %description image-lib -l pl.UTF-8 |
141 | Biblioteki dla CUPS - obsługa formatów graficznych. | |
6ebf74dd | 142 | |
2f78071d | 143 | %description image-lib -l pt_BR.UTF-8 |
4644dd52 | 144 | Bibliotecas CUPS requeridas pelos clientes CUPS. |
145 | ||
980a97fe | 146 | %package devel |
147 | Summary: Common Unix Printing System development files | |
fb3b4f59 ER |
148 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - pliki nagłówkowe |
149 | Summary(pt_BR.UTF-8): Sistema Unix de Impressão - ambiente de desenvolvimento | |
980a97fe | 150 | Group: Development/Libraries |
cd99fdf9 JB |
151 | Requires: %{name}-image-lib = %{epoch}:%{version}-%{release} |
152 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
950cc25f KK |
153 | %{?with_gnutls:Requires: gnutls-devel} |
154 | %{!?with_gnutls:Requires: openssl-devel} | |
717a8d25 | 155 | Requires: zlib-devel |
bf6c7747 | 156 | Obsoletes: libcups1-devel |
980a97fe | 157 | |
158 | %description devel | |
9625f17f | 159 | Common Unix Printing System development files. |
980a97fe | 160 | |
2f78071d JR |
161 | %description devel -l pl.UTF-8 |
162 | Ogólny system druku dla Uniksa - pliki nagłówkowe. | |
8bdc526e | 163 | |
2f78071d JR |
164 | %description devel -l pt_BR.UTF-8 |
165 | Este pacote é um adicional que contem um ambiente de desenvolvimento | |
166 | para a criação de suporte a novas impressoras e novos serviços ao | |
4644dd52 | 167 | CUPS. |
168 | ||
980a97fe | 169 | %package static |
170 | Summary: Common Unix Printing System static libraries | |
fb3b4f59 ER |
171 | Summary(pl.UTF-8): Ogólny system druku dla Uniksa - biblioteki statyczne |
172 | Summary(pt_BR.UTF-8): Common Unix Printing System - bibliotecas estáticas | |
980a97fe | 173 | Group: Development/Libraries |
cd99fdf9 | 174 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
980a97fe | 175 | |
176 | %description static | |
8bdc526e | 177 | Common Unix Printing System static libraries. |
980a97fe | 178 | |
2f78071d JR |
179 | %description static -l pl.UTF-8 |
180 | Ogólny system druku dla Uniksa - biblioteki statyczne. | |
8bdc526e | 181 | |
2f78071d JR |
182 | %description static -l pt_BR.UTF-8 |
183 | Bibliotecas estáticas para desenvolvimento de programas que usam as | |
4644dd52 | 184 | bibliotecas do CUPS. |
185 | ||
2e2308c6 | 186 | %package -n perl-cups |
7be5c8e8 | 187 | Summary: Perl module for CUPS |
fb3b4f59 | 188 | Summary(pl.UTF-8): Moduł Perla CUPS |
7be5c8e8 | 189 | Group: Development/Languages/Perl |
cd99fdf9 | 190 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
2e2308c6 AF |
191 | |
192 | %description -n perl-cups | |
7be5c8e8 JB |
193 | Perl module for Common Unix Printing System. |
194 | ||
2f78071d JR |
195 | %description -n perl-cups -l pl.UTF-8 |
196 | Moduł Perla do ogólnego systemu druku dla Uniksa. | |
2e2308c6 AF |
197 | |
198 | %package -n php-cups | |
199 | Summary: PHP module for CUPS | |
fb3b4f59 | 200 | Summary(pl.UTF-8): Moduł PHP CUPS |
7be5c8e8 | 201 | Group: Development/Languages/PHP |
cd99fdf9 | 202 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} |
ed486845 | 203 | %{?requires_php_extension} |
786665a9 | 204 | Requires: /etc/php/conf.d |
752c3387 | 205 | Requires: php-common >= 4:5.0.0 |
2e2308c6 AF |
206 | |
207 | %description -n php-cups | |
208 | PHP module for Common Unix Printing System. | |
209 | ||
2f78071d JR |
210 | %description -n php-cups -l pl.UTF-8 |
211 | Moduł PHP do ogólnego systemu druku dla Uniksa. | |
7be5c8e8 | 212 | |
25aeafb8 | 213 | %package backend-usb |
0f8ac12d | 214 | Summary: USB backend for CUPS |
fb3b4f59 | 215 | Summary(pl.UTF-8): Backend USB dla CUPS-a |
0f8ac12d | 216 | Group: Applications/Printing |
cd99fdf9 | 217 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
218 | |
219 | %description backend-usb | |
220 | This package allow CUPS printing on USB printers. | |
221 | ||
2f78071d JR |
222 | %description backend-usb -l pl.UTF-8 |
223 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach USB. | |
71ac0ea6 | 224 | |
25aeafb8 | 225 | %package backend-serial |
71ac0ea6 | 226 | Summary: Serial port backend for CUPS |
fb3b4f59 | 227 | Summary(pl.UTF-8): Backend obsługujący porty szeregowe dla CUPS-a |
0f8ac12d | 228 | Group: Applications/Printing |
cd99fdf9 | 229 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
230 | |
231 | %description backend-serial | |
71ac0ea6 JB |
232 | This package allow CUPS printing on printers connected by serial |
233 | ports. | |
234 | ||
2f78071d JR |
235 | %description backend-serial -l pl.UTF-8 |
236 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
237 | podłączonych do portów szeregowych. | |
0f8ac12d | 238 | |
25aeafb8 | 239 | %package backend-parallel |
71ac0ea6 | 240 | Summary: Parallel port backend for CUPS |
fb3b4f59 | 241 | Summary(pl.UTF-8): Backend obsługujący porty równoległe dla CUPS-a |
0f8ac12d | 242 | Group: Applications/Printing |
cd99fdf9 | 243 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0f8ac12d AF |
244 | |
245 | %description backend-parallel | |
71ac0ea6 JB |
246 | This package allow CUPS printing on printers connected by parallel |
247 | ports. | |
248 | ||
2f78071d JR |
249 | %description backend-parallel -l pl.UTF-8 |
250 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach | |
251 | podłączonych do portów równoległych. | |
0f8ac12d | 252 | |
346112e3 | 253 | %prep |
7509c932 | 254 | %setup -q -n %{name}-%{version}svn-%{_svn} |
73a0798d | 255 | %patch0 -p1 |
8bdc526e | 256 | %patch1 -p1 |
25dfe94f | 257 | %patch2 -p1 |
73a0798d | 258 | %patch3 -p1 |
f75e41c7 | 259 | %patch4 -p1 |
03e64605 | 260 | %patch5 -p1 |
428f33ff | 261 | %patch6 -p1 |
2f2c6dd7 | 262 | %patch7 -p1 |
8bdc526e | 263 | |
346112e3 | 264 | %build |
daf27ba0 | 265 | %{__aclocal} -I config-scripts |
0b9d4622 | 266 | %{__autoconf} |
c6f4ebff | 267 | %configure \ |
82f3f074 | 268 | --libdir=%{_ulibdir} \ |
8d2025a2 | 269 | --enable-shared \ |
2973e449 MWP |
270 | --with-cups-user=lp \ |
271 | --with-cups-group=sys \ | |
272 | --with-system-groups=sys \ | |
273 | --with-printcap=/etc/printcap \ | |
373aff1e | 274 | %{?with_static_libs:--enable-static} \ |
faa66800 | 275 | --enable-ssl \ |
373aff1e KK |
276 | --%{?with_gnutls:dis}%{!?with_gnutls:en}able-openssl \ |
277 | --%{!?with_gnutls:dis}%{?with_gnutls:en}able-gnutls \ | |
2973e449 | 278 | --%{!?with_dnssd:dis}%{?with_dnssd:en}able-dnssd \ |
faa66800 | 279 | --disable-cdsassl \ |
e809c01b | 280 | --enable-dbus \ |
d110f6af | 281 | %{?debug:--enable-debug} \ |
373aff1e | 282 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
2973e449 MWP |
283 | --with-config-file-perm=0640 \ |
284 | --with-log-file-perm=0640 \ | |
285 | %{?with_dnssd:--with-dnssd-libs=x} \ | |
286 | %{?with_dnssd:--with-dnssd-includes=x} \ | |
287 | %{?with_php:--with-php} \ | |
288 | %{?with_perl:--with-perl} \ | |
289 | %{?with_java:--with-java} \ | |
290 | %{?with_php:--with-python} | |
373aff1e | 291 | |
346112e3 | 292 | %{__make} |
7be5c8e8 | 293 | |
cad7b106 | 294 | %{__perl} -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile |
e809c01b | 295 | %{?with_php:%{__make} -C scripting/php PHPCONFIG=%{_bindir}/php-config} |
7be5c8e8 | 296 | |
f07e6182 | 297 | %if %{with perl} |
2e2308c6 | 298 | cd scripting/perl |
7be5c8e8 JB |
299 | %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL |
300 | %{__perl} Makefile.PL \ | |
301 | INSTALLDIRS=vendor \ | |
302 | OPTIMIZE="%{rpmcflags} -I../.." | |
303 | # avoid rpaths generated by MakeMaker | |
cad7b106 | 304 | %{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' Makefile |
7be5c8e8 JB |
305 | |
306 | %{__make} | |
2e2308c6 AF |
307 | cd ../.. |
308 | %endif | |
346112e3 | 309 | |
310 | %install | |
311 | rm -rf $RPM_BUILD_ROOT | |
a73a2669 | 312 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d,security} \ |
428f33ff | 313 | $RPM_BUILD_ROOT/var/run/cups \ |
4d897458 | 314 | $RPM_BUILD_ROOT/var/log/{,archiv/}cups |
fd7e4ff1 | 315 | |
6133c494 | 316 | %{__make} install \ |
e827011a AM |
317 | BUILDROOT=$RPM_BUILD_ROOT \ |
318 | CUPS_USER=$(id -u) \ | |
319 | CUPS_GROUP=$(id -g) | |
fd7e4ff1 | 320 | |
82f3f074 JK |
321 | if [ "%{_lib}" != "lib" ] ; then |
322 | install -d $RPM_BUILD_ROOT%{_libdir} | |
323 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
e3bfc8b9 | 324 | mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir} |
82f3f074 JK |
325 | fi |
326 | ||
f07e6182 | 327 | %if %{with php} |
2e2308c6 | 328 | %{__make} -C scripting/php install \ |
4fc96bcd ER |
329 | PHPDIR=$RPM_BUILD_ROOT%{php_extensiondir} |
330 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
331 | cat > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/phpcups.ini << EOF | |
e809c01b | 332 | ; Enable phpcups extension module |
752c3387 ER |
333 | extension=phpcups.so |
334 | EOF | |
2e2308c6 AF |
335 | %endif |
336 | ||
f07e6182 | 337 | %if %{with perl} |
2e2308c6 | 338 | cd scripting/perl |
6133c494 PG |
339 | %{__make} install \ |
340 | DESTDIR=$RPM_BUILD_ROOT | |
2e2308c6 AF |
341 | cd ../.. |
342 | %endif | |
343 | ||
cad7b106 | 344 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
345 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
346 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
60e0cb5a | 347 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cups/mailto.conf |
45a67ab9 | 348 | |
de296a9f | 349 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd |
30d7d426 | 350 | |
4d897458 | 351 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 352 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 353 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 354 | |
ef5fe709 ER |
355 | # windows drivers can be put there. |
356 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
357 | ||
748a0bf9 ER |
358 | # dirs for gimp-print-cups-4.2.7-1 |
359 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
360 | ||
daf27ba0 | 361 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 362 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 363 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 364 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 365 | |
eea94f34 | 366 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
367 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
368 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 369 | |
2e2308c6 | 370 | # check-files cleanup |
0ce3cd57 | 371 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 372 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 373 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 374 | |
9625f17f JB |
375 | %clean |
376 | rm -rf $RPM_BUILD_ROOT | |
377 | ||
168e60c2 | 378 | %post |
8a24ec7f | 379 | /sbin/chkconfig --add cups |
a73a2669 | 380 | %service cups restart "cups daemon" |
fb328468 | 381 | |
168e60c2 | 382 | %preun |
fd7e4ff1 | 383 | if [ "$1" = "0" ]; then |
a73a2669 | 384 | %service cups stop |
fd7e4ff1 | 385 | /sbin/chkconfig --del cups |
386 | fi | |
168e60c2 | 387 | |
19e8d1ed | 388 | %post lib -p /sbin/ldconfig |
389 | %postun lib -p /sbin/ldconfig | |
390 | %post image-lib -p /sbin/ldconfig | |
391 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 392 | |
752c3387 | 393 | %post -n php-cups |
572f9a81 | 394 | %php_webserver_restart |
752c3387 ER |
395 | |
396 | %postun -n php-cups | |
397 | if [ "$1" = 0 ]; then | |
572f9a81 | 398 | %php_webserver_restart |
752c3387 ER |
399 | fi |
400 | ||
fd7e4ff1 | 401 | %files |
346112e3 | 402 | %defattr(644,root,root,755) |
05d8dec5 | 403 | #%doc *.gz doc/*.html doc/*.css doc/images |
4c209b1f | 404 | %doc *.txt |
39956f63 | 405 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 406 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 407 | /etc/dbus-1/system.d/cups.conf |
6139e54a | 408 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 409 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 410 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 411 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.conf |
39956f63 ER |
412 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.convs |
413 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.types | |
cd29fb20 | 414 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups |
4017839a | 415 | %dir %attr(700,root,lp) %{_sysconfdir}/%{name}/ssl |
934a05d8 | 416 | %dir %{_sysconfdir}/%{name}/interfaces |
6139e54a | 417 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name}/ppd |
39956f63 | 418 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
fd7e4ff1 | 419 | %attr(4755,lp,root) %{_bindir}/lppasswd |
3ddab923 | 420 | %attr(755,root,root) %{_bindir}/cupstestppd |
e809c01b | 421 | %attr(755,root,root) %{_bindir}/cupstestdsc |
daf27ba0 KK |
422 | %attr(755,root,root) %{_sbindir}/cupsd |
423 | ||
82f3f074 JK |
424 | %dir %{_ulibdir}/cups |
425 | %dir %{_ulibdir}/cups/* | |
daf27ba0 KK |
426 | %{_ulibdir}/cups/cgi-bin/help |
427 | %{_ulibdir}/cups/cgi-bin/images | |
428 | %attr(755,root,root) %{_ulibdir}/cups/cgi-bin/*.cgi | |
429 | %{_ulibdir}/cups/cgi-bin/*.css | |
430 | %{_ulibdir}/cups/cgi-bin/*.html | |
431 | %{_ulibdir}/cups/cgi-bin/*.ico | |
432 | %{_ulibdir}/cups/cgi-bin/*.txt | |
21212dc8 | 433 | %lang(de) %{_ulibdir}/cups/cgi-bin/de |
daf27ba0 | 434 | %lang(es) %{_ulibdir}/cups/cgi-bin/es |
ce6b0d52 | 435 | %lang(et) %{_ulibdir}/cups/cgi-bin/et |
6692ed4f | 436 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
03e64605 | 437 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 KK |
438 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
439 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
440 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
441 | ||
82f3f074 JK |
442 | %exclude %{_ulibdir}/cups/backend/usb |
443 | %exclude %{_ulibdir}/cups/backend/serial | |
444 | %exclude %{_ulibdir}/cups/backend/parallel | |
daf27ba0 KK |
445 | %attr(755,root,root) %{_ulibdir}/cups/backend/* |
446 | %attr(755,root,root) %{_ulibdir}/cups/daemon/* | |
447 | %attr(755,root,root) %{_ulibdir}/cups/filter/* | |
448 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
449 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
450 | ||
54906e64 ER |
451 | %dir %{_datadir}/cups |
452 | %{_datadir}/cups/banners | |
453 | %{_datadir}/cups/charmaps | |
454 | %{_datadir}/cups/charsets | |
455 | %{_datadir}/cups/data | |
6139e54a | 456 | %{_datadir}/cups/drivers |
54906e64 | 457 | %{_datadir}/cups/fonts |
748a0bf9 ER |
458 | %dir %{_datadir}/cups/model |
459 | %{_datadir}/cups/model/*.ppd.gz | |
460 | # dirs for gimp-print-cups-4.2.7-1 | |
461 | %dir %{_datadir}/cups/model/C | |
462 | %lang(da) %dir %{_datadir}/cups/model/da | |
463 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
464 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
465 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
466 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
467 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
468 | ||
54906e64 ER |
469 | %dir %{_datadir}/cups/templates |
470 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 471 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 472 | %lang(es) %{_datadir}/cups/templates/es |
ce6b0d52 | 473 | %lang(et) %{_datadir}/cups/templates/et |
6692ed4f | 474 | %lang(fr) %{_datadir}/cups/templates/fr |
03e64605 | 475 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 ER |
476 | %lang(ja) %{_datadir}/cups/templates/ja |
477 | %lang(pl) %{_datadir}/cups/templates/pl | |
478 | %lang(sv) %{_datadir}/cups/templates/sv | |
e809c01b | 479 | %{_mandir}/man7/backend.7* |
c1555e94 | 480 | %{_mandir}/man1/cupstestppd.1* |
e809c01b AM |
481 | %{_mandir}/man1/cupstestdsc.1* |
482 | %{_mandir}/man7/filter.7* | |
0366ccc3 | 483 | %{_mandir}/man1/lppasswd.1* |
2bb4485b | 484 | %{_mandir}/man[58]/* |
217f5641 | 485 | %lang(de) %{_datadir}/locale/de/cups_de.po |
e809c01b | 486 | %lang(es) %{_datadir}/locale/es/cups_es.po |
ce6b0d52 | 487 | %lang(et) %{_datadir}/locale/et/cups_et.po |
6692ed4f | 488 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po |
03e64605 | 489 | %lang(it) %{_datadir}/locale/it/cups_it.po |
e809c01b | 490 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po |
cc4221f2 | 491 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
e809c01b | 492 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po |
daf27ba0 KK |
493 | |
494 | %dir %attr(775,root,lp) /var/cache/cups | |
428f33ff KK |
495 | %dir %attr(755,root,lp) /var/lib/cups |
496 | %dir %attr(511,lp,sys) /var/lib/cups/certs | |
6139e54a | 497 | %dir %attr(755,root,lp) /var/run/cups |
daf27ba0 KK |
498 | %dir %attr(710,root,lp) /var/spool/cups |
499 | %dir %attr(1770,root,lp) /var/spool/cups/tmp | |
68e5a032 | 500 | %attr(600,lp,lp) %ghost /var/cache/cups/help.index |
6139e54a | 501 | %attr(640,root,lp) %ghost /var/cache/cups/job.cache |
68e5a032 | 502 | %attr(600,lp,lp) %ghost /var/cache/cups/ppds.dat |
6139e54a | 503 | %attr(640,root,lp) %ghost /var/cache/cups/remote.cache |
40183055 JK |
504 | %attr(750,root,logs) %dir /var/log/archiv/cups |
505 | %attr(750,root,logs) %dir /var/log/cups | |
506 | %attr(640,root,logs) %ghost /var/log/cups/access_log | |
507 | %attr(640,root,logs) %ghost /var/log/cups/error_log | |
508 | %attr(640,root,logs) %ghost /var/log/cups/page_log | |
980a97fe | 509 | |
6ebf74dd AF |
510 | %files lib |
511 | %defattr(644,root,root,755) | |
3c247a25 | 512 | %dir %attr(755,root,lp) %{_sysconfdir}/%{name} |
6ebf74dd AF |
513 | %attr(755,root,root) %{_libdir}/libcups.so.* |
514 | ||
2da56f05 SZ |
515 | %files clients |
516 | %defattr(644,root,root,755) | |
8d2025a2 | 517 | %attr(644,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/client.conf |
2da56f05 | 518 | %attr(755,root,root) %{_bindir}/cancel |
2da56f05 SZ |
519 | %attr(755,root,root) %{_bindir}/lp |
520 | %attr(755,root,root) %{_bindir}/lpoptions | |
521 | %attr(755,root,root) %{_bindir}/lpq | |
522 | %attr(755,root,root) %{_bindir}/lpr | |
523 | %attr(755,root,root) %{_bindir}/lprm | |
524 | %attr(755,root,root) %{_bindir}/lpstat | |
501ef07e AM |
525 | %attr(755,root,root) %{_sbindir}/accept |
526 | %attr(755,root,root) %{_sbindir}/cupsaddsmb | |
eea94f34 | 527 | %attr(755,root,root) %{_sbindir}/cupsenable |
528 | %attr(755,root,root) %{_sbindir}/cupsdisable | |
529 | %attr(755,root,root) %{_sbindir}/disable | |
530 | %attr(755,root,root) %{_sbindir}/enable | |
501ef07e AM |
531 | %attr(755,root,root) %{_sbindir}/lpadmin |
532 | %attr(755,root,root) %{_sbindir}/lpc | |
533 | %attr(755,root,root) %{_sbindir}/lpinfo | |
534 | %attr(755,root,root) %{_sbindir}/lpmove | |
535 | %attr(755,root,root) %{_sbindir}/reject | |
93040bdf | 536 | %{_mandir}/man1/cancel.1* |
0366ccc3 AF |
537 | %{_mandir}/man1/lp.1* |
538 | %{_mandir}/man1/lpoptions.1* | |
539 | %{_mandir}/man1/lpq.1* | |
540 | %{_mandir}/man1/lpr.1* | |
541 | %{_mandir}/man1/lprm.1* | |
542 | %{_mandir}/man1/lpstat.1* | |
e809c01b AM |
543 | #%lang(fr) %{_mandir}/fr/man1/cancel.1* |
544 | #%lang(fr) %{_mandir}/fr/man1/lp.1* | |
545 | #%lang(fr) %{_mandir}/fr/man1/lpoptions.1* | |
546 | #%lang(fr) %{_mandir}/fr/man1/lpq.1* | |
547 | #%lang(fr) %{_mandir}/fr/man1/lpr.1* | |
548 | #%lang(fr) %{_mandir}/fr/man1/lprm.1* | |
549 | #%lang(fr) %{_mandir}/fr/man1/lpstat.1* | |
550 | #%lang(es) %{_mandir}/es/man1/lp.1* | |
551 | #%lang(es) %{_mandir}/es/man1/lpoptions.1* | |
552 | #%lang(es) %{_mandir}/es/man1/lpq.1* | |
553 | #%lang(es) %{_mandir}/es/man1/lpr.1* | |
554 | #%lang(es) %{_mandir}/es/man1/lprm.1* | |
555 | #%lang(es) %{_mandir}/es/man1/lpstat.1* | |
2da56f05 | 556 | |
6ebf74dd | 557 | %files image-lib |
fd7e4ff1 | 558 | %defattr(644,root,root,755) |
6ebf74dd | 559 | %attr(755,root,root) %{_libdir}/libcupsimage.so.* |
fd7e4ff1 | 560 | |
980a97fe | 561 | %files devel |
562 | %defattr(644,root,root,755) | |
6e2c2519 | 563 | %attr(755,root,root) %{_bindir}/cups-config |
980a97fe | 564 | %{_includedir}/cups |
fd7e4ff1 | 565 | %{_libdir}/lib*.so |
835fcb44 | 566 | %{_mandir}/man1/cups-config* |
6ebf74dd | 567 | %{_mandir}/man3/* |
e809c01b AM |
568 | #%lang(fr) %{_mandir}/fr/man1/cups-config* |
569 | #%lang(es) %{_mandir}/es/man1/cups-config* | |
980a97fe | 570 | |
373aff1e | 571 | %if %{with static_libs} |
8d2025a2 AM |
572 | %files static |
573 | %defattr(644,root,root,755) | |
574 | %{_libdir}/*.a | |
373aff1e | 575 | %endif |
2e2308c6 | 576 | |
f07e6182 | 577 | %if %{with perl} |
2e2308c6 AF |
578 | %files -n perl-cups |
579 | %defattr(644,root,root,755) | |
580 | %{perl_vendorarch}/*.pm | |
581 | %dir %{perl_vendorarch}/auto/CUPS | |
582 | %{perl_vendorarch}/auto/CUPS/*.bs | |
583 | %{perl_vendorarch}/auto/CUPS/autosplit.ix | |
584 | %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/*.so | |
83bc4a43 | 585 | %endif |
2e2308c6 | 586 | |
f07e6182 | 587 | %if %{with php} |
2e2308c6 AF |
588 | %files -n php-cups |
589 | %defattr(644,root,root,755) | |
44b3e11b | 590 | %doc scripting/php/README |
4fc96bcd ER |
591 | %attr(755,root,root) %{php_extensiondir}/* |
592 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/phpcups.ini | |
83bc4a43 | 593 | %endif |
0f8ac12d AF |
594 | |
595 | %files backend-usb | |
596 | %defattr(644,root,root,755) | |
82f3f074 | 597 | %attr(755,root,root) %{_ulibdir}/cups/backend/usb |
0f8ac12d AF |
598 | |
599 | %files backend-serial | |
600 | %defattr(644,root,root,755) | |
82f3f074 | 601 | %attr(755,root,root) %{_ulibdir}/cups/backend/serial |
0f8ac12d AF |
602 | |
603 | %files backend-parallel | |
604 | %defattr(644,root,root,755) | |
82f3f074 | 605 | %attr(755,root,root) %{_ulibdir}/cups/backend/parallel |