1 Summary: Common Unix Printing System
2 Summary(pl): Popularny System Druku dla Unixa
3 Summary(pt_BR): Sistema Unix de Impressão
9 Group: Applications/Printing
10 Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
13 Source3: %{name}.logrotate
14 Patch0: %{name}-DESTDIR.patch
15 Patch1: %{name}-config.patch
16 Patch2: %{name}-tmpdir.patch
17 Patch3: %{name}-lp-lpr.patch
18 Patch4: %{name}-options.patch
19 Patch5: %{name}-ENCRYPTIONtxt.patch
20 Patch6: %{name}-man_pages_linking.patch
21 URL: http://www.cups.org/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: libjpeg-devel
25 BuildRequires: libpng-devel
26 BuildRequires: libtiff-devel
27 BuildRequires: openssl-devel >= 0.9.7
28 BuildRequires: pam-devel
29 BuildRequires: pkgconfig
30 PreReq: %{name}-libs = %{version}
31 PreReq: /sbin/chkconfig
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 CUPS provides a portable printing layer for UNIX®-based operating
38 systems. It has been developed by Easy Software Products to promote a
39 standard printing solution for all UNIX vendors and users. CUPS
40 provides the System V and Berkeley command-line interfaces. CUPS uses
41 the Internet Printing Protocol ("IPP") as the basis for managing print
42 jobs and queues. The Line Printer Daemon ("LPD") Server Message Block
43 ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported
44 with reduced functionality. CUPS adds network printer browsing and
45 PostScript Printer Description ("PPD") based printing options to
46 support real-world printing under UNIX.
49 CUPS dostarcza standardowy poziom drukowania dla systemów bazuj±cych
50 na UNIXie. CUPS u¿ywa protoko³u IPP - Internet Printint Protocol jako
51 podstawy do zarz±dzania zadaniami i kolejkami druku.
54 O sistema Unix de impressão (CUPS) fornece uma camada de impressão
55 portável para os sistemas operacionais baseados no UNIX®.
58 Summary: Common Unix Printing System Libraries
59 Summary(pl): Biblioteki dla CUPS
60 Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
62 Provides: %{name}-libs = %{epoch}:%{version}-%{release}
63 Obsoletes: %{name}-libs
67 Common Unix Printing System Libraries.
69 %description lib -l pl
72 %description lib -l pt_BR
73 Bibliotecas CUPS requeridas pelos clientes CUPS.
76 Summary: Common Unix Printing System Clients
77 Summary(pl): Aplikacje klienckie dla CUPS
78 Group: Applications/Printing
79 Provides: %{name}-clients = %{epoch}:%{version}-%{release}
83 Common Unix Printing System Clients.
85 %description clients -l pl
86 Aplikacje klienckie dla CUPS.
89 Summary: Common Unix Printing System Libraries - images manipulation
90 Summary(pl): Biblioteki dla CUPS - obs³uga formatów graficznych
91 Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
93 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
96 %description image-lib
97 Common Unix Printing System Libraries - images manupalation.
99 %description image-lib -l pl
100 Biblioteki dla CUPS - obs³uga formatów graficznych.
102 %description image-lib -l pt_BR
103 Bibliotecas CUPS requeridas pelos clientes CUPS.
106 Summary: Common Unix Printing System development files
107 Summary(pl): Popularny System Druku dla Unixa, pliki nag³ówkowe
108 Summary(pt_BR): Sistema Unix de Impressão - ambiente de desenvolvimento
109 Group: Development/Libraries
110 Requires: %{name}-lib = %{version}
111 Requires: %{name}-image-lib = %{version}
112 Obsoletes: libcups1-devel
115 Common Unix Printing System development files.
117 %description devel -l pl
118 Popularny System Druku dla Unixa, pliki nag³ówkowe.
120 %description devel -l pt_BR
121 Este pacote é um adicional que contem um ambiente de desenvolvimento
122 para a criação de suporte a novas impressoras e novos serviços ao
126 Summary: Common Unix Printing System static libraries
127 Summary(pl): Popularny System Druku dla Unixa, biblioteki statyczne
128 Summary(pt_BR): Common Unix Printing System - bibliotecas estáticas
129 Group: Development/Libraries
130 Requires: %{name}-devel = %{version}
133 Common Unix Printing System static libraries.
135 %description static -l pl
136 Popularny System Druku dla Unixa, biblioteki statyczne.
138 %description static -l pt_BR
139 Bibliotecas estáticas para desenvolvimento de programas que usam as
157 --with-docdir=%{_libdir}/%{name}/cgi-bin
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT/etc/{{rc.d/init.d,pam.d,logrotate.d},security} \
163 $RPM_BUILD_ROOT/var/log/{,archiv/}cups
165 %{__make} DESTDIR=$RPM_BUILD_ROOT install
167 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
168 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name}
169 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
171 # for internal http browser:
172 cp doc/*.html $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/
173 cp doc/*.css $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/
174 cp doc/images/* $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/images/
176 touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log}
177 touch $RPM_BUILD_ROOT/etc/security/blacklist.cups
179 #ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/%{name}/backend/smb
182 rm -rf $RPM_BUILD_ROOT
185 /sbin/chkconfig --add cups
186 if [ -f /var/lock/subsys/cupsd ]; then
187 /etc/rc.d/init.d/cups restart 1>&2
189 echo "Run \"/etc/rc.d/init.d/cups start\" to start cups daemon."
193 if [ "$1" = "0" ]; then
194 if [ -f /var/lock/subsys/cupsd ]; then
195 /etc/rc.d/init.d/cups stop 1>&2
197 /sbin/chkconfig --del cups
200 %post lib -p /sbin/ldconfig
201 %postun lib -p /sbin/ldconfig
202 %post image-lib -p /sbin/ldconfig
203 %postun image-lib -p /sbin/ldconfig
206 %defattr(644,root,root,755)
207 #%doc *.gz doc/*.html doc/*.css doc/images
209 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
210 %attr(754,root,root) /etc/rc.d/init.d/cups
211 %dir %{_sysconfdir}/%{name}
212 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/classes.conf
213 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/cupsd.conf
214 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/printers.conf
215 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.convs
216 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.types
217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups
218 %dir %{_sysconfdir}/%{name}/certs
219 %dir %{_sysconfdir}/%{name}/interfaces
220 %dir %{_sysconfdir}/%{name}/ppd
221 %attr(644,root,root) /etc/logrotate.d/%{name}
222 %attr(4755,lp,root) %{_bindir}/lppasswd
223 %attr(755,root,root) %{_bindir}/disable
224 %attr(755,root,root) %{_bindir}/enable
226 %dir %{_libdir}/cups/*
227 %attr(755,root,root) %{_libdir}/cups/*/*
228 %attr(755,root,root) %{_sbindir}/*
230 %{_mandir}/man1/backend.1*
231 %{_mandir}/man1/cupstestppd.1*
232 %{_mandir}/man1/filter.1*
233 %{_mandir}/man1/lppasswd.1*
235 %lang(fr) %{_mandir}/fr/man1/backend.1*
236 %lang(fr) %{_mandir}/fr/man1/cupstestppd.1*
237 %lang(fr) %{_mandir}/fr/man1/filter.1*
238 %lang(fr) %{_mandir}/fr/man1/lppasswd.1*
239 %lang(fr) %{_mandir}/fr/man[58]/*
240 %{_datadir}/locale/C/cups_C
241 %lang(be) %{_datadir}/locale/be/cups_be
242 %lang(cs) %{_datadir}/locale/cs/cups_cs
243 %lang(de) %{_datadir}/locale/de/cups_de
244 %{_datadir}/locale/en/cups_en
245 %lang(es) %{_datadir}/locale/es/cups_es
246 %lang(fr) %{_datadir}/locale/fr/cups_fr
247 %lang(he) %{_datadir}/locale/he/cups_he
248 %lang(it) %{_datadir}/locale/it/cups_it
249 %lang(ru) %{_datadir}/locale/ru_RU.*/cups_ru_RU.*
250 %lang(sv) %{_datadir}/locale/sv/cups_sv
251 %lang(uk) %{_datadir}/locale/uk/cups_uk
252 %lang(uk) %{_datadir}/locale/uk_UA.*/cups_uk_UA.*
253 %lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN
255 %attr(750,root,root) %dir /var/log/archiv/cups
256 %attr(750,root,root) %dir /var/log/cups
257 %attr(640,root,root) %ghost /var/log/cups/access_log
258 %attr(640,root,root) %ghost /var/log/cups/error_log
259 %attr(640,root,root) %ghost /var/log/cups/page_log
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libcups.so.*
266 %defattr(644,root,root,755)
267 %attr(644,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/client.conf
268 %attr(755,root,root) %{_bindir}/cancel
269 %attr(755,root,root) %{_bindir}/lp
270 %attr(755,root,root) %{_bindir}/lpoptions
271 %attr(755,root,root) %{_bindir}/lpq
272 %attr(755,root,root) %{_bindir}/lpr
273 %attr(755,root,root) %{_bindir}/lprm
274 %attr(755,root,root) %{_bindir}/lpstat
275 %{_mandir}/man1/cancel.1*
276 %{_mandir}/man1/lp.1*
277 %{_mandir}/man1/lpoptions.1*
278 %{_mandir}/man1/lpq.1*
279 %{_mandir}/man1/lpr.1*
280 %{_mandir}/man1/lprm.1*
281 %{_mandir}/man1/lpstat.1*
282 %lang(fr) %{_mandir}/fr/man1/cancel.1*
283 %lang(fr) %{_mandir}/fr/man1/lp.1*
284 %lang(fr) %{_mandir}/fr/man1/lpoptions.1*
285 %lang(fr) %{_mandir}/fr/man1/lpq.1*
286 %lang(fr) %{_mandir}/fr/man1/lpr.1*
287 %lang(fr) %{_mandir}/fr/man1/lprm.1*
288 %lang(fr) %{_mandir}/fr/man1/lpstat.1*
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libdir}/libcupsimage.so.*
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_bindir}/cups-config
300 %lang(fr) %{_mandir}/fr/man3/*
303 %defattr(644,root,root,755)