]>
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 |
edb7deb7 | 18 | Version: 1.2.12 |
09af927c | 19 | Release: 2 |
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 |
edb7deb7 | 24 | # Source0-md5: d410658468384b5ba5d04a808f6157fe |
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 | |
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 |
09af927c PZ |
58 | Obsoletes: printingdaemon |
59 | Provides: printingdaemon | |
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 |
fb3b4f59 ER |
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 | |
fb3b4f59 | 111 | Summary(pl.UTF-8): Aplikacje klienckie dla CUPS |
2da56f05 | 112 | Group: Applications/Printing |
e055e440 | 113 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
09af927c PZ |
114 | Obsoletes: printingclient |
115 | Provides: printingclient | |
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 |
653cdc22 | 254 | %patch5 -p1 |
428f33ff | 255 | %patch6 -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 | 270 | --with-docdir=%{_ulibdir}/%{name}/cgi-bin \ |
735a5048 | 271 | %{?with_php:--with-php} |
373aff1e | 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 \ |
38f5ddf3 | 295 | $RPM_BUILD_ROOT/var/log/{,archive/}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} |
653cdc22 | 319 | %{__make} -C scripting/perl install \ |
6133c494 | 320 | DESTDIR=$RPM_BUILD_ROOT |
2e2308c6 AF |
321 | %endif |
322 | ||
cad7b106 | 323 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
324 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name} | |
325 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
60e0cb5a | 326 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cups/mailto.conf |
45a67ab9 | 327 | |
de296a9f | 328 | gzip -9nf $RPM_BUILD_ROOT%{_datadir}/%{name}/model/*.ppd |
30d7d426 | 329 | |
4d897458 | 330 | touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log} |
cad7b106 | 331 | touch $RPM_BUILD_ROOT/etc/security/blacklist.cups |
8d2025a2 | 332 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{classes,printers,client}.conf |
679be76f | 333 | |
ef5fe709 ER |
334 | # windows drivers can be put there. |
335 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/drivers | |
336 | ||
748a0bf9 ER |
337 | # dirs for gimp-print-cups-4.2.7-1 |
338 | install -d $RPM_BUILD_ROOT%{_datadir}/cups/model/{C,da,en_GB,fr,nb,pl,sv} | |
339 | ||
daf27ba0 | 340 | touch $RPM_BUILD_ROOT/var/cache/cups/help.index |
6139e54a | 341 | touch $RPM_BUILD_ROOT/var/cache/cups/{job,remote}.cache |
68e5a032 | 342 | touch $RPM_BUILD_ROOT/var/cache/cups/ppds.dat |
748a0bf9 | 343 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups/ssl |
ef5fe709 | 344 | |
eea94f34 | 345 | # links to enable/disable (compatibility!) |
748a0bf9 ER |
346 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/enable |
347 | ln -s accept $RPM_BUILD_ROOT%{_sbindir}/disable | |
eea94f34 | 348 | |
2e2308c6 | 349 | # check-files cleanup |
0ce3cd57 | 350 | rm -rf $RPM_BUILD_ROOT%{_mandir}/{,es/,fr/}cat? |
748a0bf9 | 351 | rm -rf $RPM_BUILD_ROOT/''etc/{init.d,rc?.d}/* |
54906e64 | 352 | rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cupsd.conf.default |
679be76f | 353 | |
9625f17f JB |
354 | %clean |
355 | rm -rf $RPM_BUILD_ROOT | |
356 | ||
168e60c2 | 357 | %post |
8a24ec7f | 358 | /sbin/chkconfig --add cups |
a73a2669 | 359 | %service cups restart "cups daemon" |
fb328468 | 360 | |
168e60c2 | 361 | %preun |
fd7e4ff1 | 362 | if [ "$1" = "0" ]; then |
a73a2669 | 363 | %service cups stop |
fd7e4ff1 | 364 | /sbin/chkconfig --del cups |
365 | fi | |
168e60c2 | 366 | |
19e8d1ed | 367 | %post lib -p /sbin/ldconfig |
368 | %postun lib -p /sbin/ldconfig | |
369 | %post image-lib -p /sbin/ldconfig | |
370 | %postun image-lib -p /sbin/ldconfig | |
8bdc526e | 371 | |
752c3387 | 372 | %post -n php-cups |
572f9a81 | 373 | %php_webserver_restart |
752c3387 ER |
374 | |
375 | %postun -n php-cups | |
376 | if [ "$1" = 0 ]; then | |
572f9a81 | 377 | %php_webserver_restart |
752c3387 ER |
378 | fi |
379 | ||
fd7e4ff1 | 380 | %files |
346112e3 | 381 | %defattr(644,root,root,755) |
05d8dec5 | 382 | #%doc *.gz doc/*.html doc/*.css doc/images |
4c209b1f | 383 | %doc *.txt |
39956f63 | 384 | %attr(640,root,root) %config %verify(not md5 mtime size) /etc/pam.d/* |
8bdc526e | 385 | %attr(754,root,root) /etc/rc.d/init.d/cups |
e809c01b | 386 | /etc/dbus-1/system.d/cups.conf |
6139e54a | 387 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/classes.conf |
39956f63 | 388 | %attr(640,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cupsd.conf |
daf27ba0 | 389 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/printers.conf |
60e0cb5a | 390 | %attr(600,root,lp) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailto.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 |
6692ed4f | 415 | %lang(fr) %{_ulibdir}/cups/cgi-bin/fr |
03e64605 | 416 | %lang(it) %{_ulibdir}/cups/cgi-bin/it |
daf27ba0 KK |
417 | %lang(ja) %{_ulibdir}/cups/cgi-bin/ja |
418 | %lang(pl) %{_ulibdir}/cups/cgi-bin/pl | |
419 | %lang(sv) %{_ulibdir}/cups/cgi-bin/sv | |
2717f059 | 420 | %lang(zh_TW) %{_ulibdir}/cups/cgi-bin/zh_TW |
daf27ba0 | 421 | |
82f3f074 JK |
422 | %exclude %{_ulibdir}/cups/backend/usb |
423 | %exclude %{_ulibdir}/cups/backend/serial | |
424 | %exclude %{_ulibdir}/cups/backend/parallel | |
daf27ba0 KK |
425 | %attr(755,root,root) %{_ulibdir}/cups/backend/* |
426 | %attr(755,root,root) %{_ulibdir}/cups/daemon/* | |
427 | %attr(755,root,root) %{_ulibdir}/cups/filter/* | |
428 | %attr(755,root,root) %{_ulibdir}/cups/monitor/* | |
429 | %attr(755,root,root) %{_ulibdir}/cups/notifier/* | |
430 | ||
54906e64 ER |
431 | %dir %{_datadir}/cups |
432 | %{_datadir}/cups/banners | |
433 | %{_datadir}/cups/charmaps | |
434 | %{_datadir}/cups/charsets | |
435 | %{_datadir}/cups/data | |
6139e54a | 436 | %{_datadir}/cups/drivers |
54906e64 | 437 | %{_datadir}/cups/fonts |
748a0bf9 ER |
438 | %dir %{_datadir}/cups/model |
439 | %{_datadir}/cups/model/*.ppd.gz | |
440 | # dirs for gimp-print-cups-4.2.7-1 | |
441 | %dir %{_datadir}/cups/model/C | |
442 | %lang(da) %dir %{_datadir}/cups/model/da | |
443 | %lang(en_GB) %dir %{_datadir}/cups/model/en_GB | |
444 | %lang(fr) %dir %{_datadir}/cups/model/fr | |
445 | %lang(nb) %dir %{_datadir}/cups/model/nb | |
446 | %lang(pl) %dir %{_datadir}/cups/model/pl | |
447 | %lang(sv) %dir %{_datadir}/cups/model/sv | |
448 | ||
54906e64 ER |
449 | %dir %{_datadir}/cups/templates |
450 | %{_datadir}/cups/templates/*.tmpl | |
21212dc8 | 451 | %lang(de) %{_datadir}/cups/templates/de |
54906e64 | 452 | %lang(es) %{_datadir}/cups/templates/es |
ce6b0d52 | 453 | %lang(et) %{_datadir}/cups/templates/et |
6692ed4f | 454 | %lang(fr) %{_datadir}/cups/templates/fr |
03e64605 | 455 | %lang(it) %{_datadir}/cups/templates/it |
54906e64 ER |
456 | %lang(ja) %{_datadir}/cups/templates/ja |
457 | %lang(pl) %{_datadir}/cups/templates/pl | |
458 | %lang(sv) %{_datadir}/cups/templates/sv | |
2717f059 | 459 | %lang(zh_TW) %{_datadir}/cups/templates/zh_TW |
e809c01b | 460 | %{_mandir}/man7/backend.7* |
c1555e94 | 461 | %{_mandir}/man1/cupstestppd.1* |
e809c01b AM |
462 | %{_mandir}/man1/cupstestdsc.1* |
463 | %{_mandir}/man7/filter.7* | |
0366ccc3 | 464 | %{_mandir}/man1/lppasswd.1* |
2bb4485b | 465 | %{_mandir}/man[58]/* |
217f5641 | 466 | %lang(de) %{_datadir}/locale/de/cups_de.po |
e809c01b | 467 | %lang(es) %{_datadir}/locale/es/cups_es.po |
ce6b0d52 | 468 | %lang(et) %{_datadir}/locale/et/cups_et.po |
6692ed4f | 469 | %lang(fr) %{_datadir}/locale/fr/cups_fr.po |
03e64605 | 470 | %lang(it) %{_datadir}/locale/it/cups_it.po |
e809c01b | 471 | %lang(ja) %{_datadir}/locale/ja/cups_ja.po |
cc4221f2 | 472 | %lang(pl) %{_datadir}/locale/pl/cups_pl.po |
e809c01b | 473 | %lang(sv) %{_datadir}/locale/sv/cups_sv.po |
2717f059 | 474 | %lang(zh_TW) %{_datadir}/locale/zh_TW/cups_zh_TW.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 |
081a50cb | 486 | %attr(750,root,logs) %dir /var/log/archive/cups |
40183055 JK |
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 |