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