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