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 Patch7: %{name}-nolibs.patch
22 URL: http://www.cups.org/
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: libjpeg-devel
26 BuildRequires: libpng-devel
27 BuildRequires: libtiff-devel
28 BuildRequires: openssl-devel >= 0.9.7
29 BuildRequires: pam-devel
30 BuildRequires: pkgconfig
31 PreReq: %{name}-libs = %{version}
32 PreReq: /sbin/chkconfig
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 CUPS provides a portable printing layer for UNIX®-based operating
39 systems. It has been developed by Easy Software Products to promote a
40 standard printing solution for all UNIX vendors and users. CUPS
41 provides the System V and Berkeley command-line interfaces. CUPS uses
42 the Internet Printing Protocol ("IPP") as the basis for managing print
43 jobs and queues. The Line Printer Daemon ("LPD") Server Message Block
44 ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported
45 with reduced functionality. CUPS adds network printer browsing and
46 PostScript Printer Description ("PPD") based printing options to
47 support real-world printing under UNIX.
50 CUPS dostarcza standardowy poziom drukowania dla systemów bazuj±cych
51 na UNIXie. CUPS u¿ywa protoko³u IPP - Internet Printint Protocol jako
52 podstawy do zarz±dzania zadaniami i kolejkami druku.
55 O sistema Unix de impressão (CUPS) fornece uma camada de impressão
56 portável para os sistemas operacionais baseados no UNIX®.
59 Summary: Common Unix Printing System Libraries
60 Summary(pl): Biblioteki dla CUPS
61 Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
63 Provides: %{name}-libs = %{epoch}:%{version}-%{release}
64 Obsoletes: %{name}-libs
68 Common Unix Printing System Libraries.
70 %description lib -l pl
73 %description lib -l pt_BR
74 Bibliotecas CUPS requeridas pelos clientes CUPS.
77 Summary: Common Unix Printing System Clients
78 Summary(pl): Aplikacje klienckie dla CUPS
79 Group: Applications/Printing
80 Provides: %{name}-clients = %{epoch}:%{version}-%{release}
84 Common Unix Printing System Clients.
86 %description clients -l pl
87 Aplikacje klienckie dla CUPS.
90 Summary: Common Unix Printing System Libraries - images manipulation
91 Summary(pl): Biblioteki dla CUPS - obs³uga formatów graficznych
92 Summary(pt_BR): Sistema Unix de Impressão - bibliotecas para uso em clientes cups
94 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
97 %description image-lib
98 Common Unix Printing System Libraries - images manupalation.
100 %description image-lib -l pl
101 Biblioteki dla CUPS - obs³uga formatów graficznych.
103 %description image-lib -l pt_BR
104 Bibliotecas CUPS requeridas pelos clientes CUPS.
107 Summary: Common Unix Printing System development files
108 Summary(pl): Popularny System Druku dla Unixa, pliki nag³ówkowe
109 Summary(pt_BR): Sistema Unix de Impressão - ambiente de desenvolvimento
110 Group: Development/Libraries
111 Requires: %{name}-lib = %{version}
112 Requires: %{name}-image-lib = %{version}
113 Obsoletes: libcups1-devel
116 Common Unix Printing System development files.
118 %description devel -l pl
119 Popularny System Druku dla Unixa, pliki nag³ówkowe.
121 %description devel -l pt_BR
122 Este pacote é um adicional que contem um ambiente de desenvolvimento
123 para a criação de suporte a novas impressoras e novos serviços ao
127 Summary: Common Unix Printing System static libraries
128 Summary(pl): Popularny System Druku dla Unixa, biblioteki statyczne
129 Summary(pt_BR): Common Unix Printing System - bibliotecas estáticas
130 Group: Development/Libraries
131 Requires: %{name}-devel = %{version}
134 Common Unix Printing System static libraries.
136 %description static -l pl
137 Popularny System Druku dla Unixa, biblioteki statyczne.
139 %description static -l pt_BR
140 Bibliotecas estáticas para desenvolvimento de programas que usam as
159 --with-docdir=%{_libdir}/%{name}/cgi-bin
163 rm -rf $RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT/etc/{{rc.d/init.d,pam.d,logrotate.d},security} \
165 $RPM_BUILD_ROOT/var/log/{,archiv/}cups
167 %{__make} DESTDIR=$RPM_BUILD_ROOT install
169 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
170 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/%{name}
171 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
173 # for internal http browser:
174 cp doc/*.html $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/
175 cp doc/*.css $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/
176 cp doc/images/* $RPM_BUILD_ROOT/%{_libdir}/%{name}/cgi-bin/images/
178 touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log}
179 touch $RPM_BUILD_ROOT/etc/security/blacklist.cups
181 #ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/%{name}/backend/smb
184 rm -rf $RPM_BUILD_ROOT
187 /sbin/chkconfig --add cups
188 if [ -f /var/lock/subsys/cupsd ]; then
189 /etc/rc.d/init.d/cups restart 1>&2
191 echo "Run \"/etc/rc.d/init.d/cups start\" to start cups daemon."
195 if [ "$1" = "0" ]; then
196 if [ -f /var/lock/subsys/cupsd ]; then
197 /etc/rc.d/init.d/cups stop 1>&2
199 /sbin/chkconfig --del cups
202 %post lib -p /sbin/ldconfig
203 %postun lib -p /sbin/ldconfig
204 %post image-lib -p /sbin/ldconfig
205 %postun image-lib -p /sbin/ldconfig
208 %defattr(644,root,root,755)
209 #%doc *.gz doc/*.html doc/*.css doc/images
211 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
212 %attr(754,root,root) /etc/rc.d/init.d/cups
213 %dir %{_sysconfdir}/%{name}
214 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/classes.conf
215 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/cupsd.conf
216 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/printers.conf
217 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.convs
218 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.types
219 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.cups
220 %dir %{_sysconfdir}/%{name}/certs
221 %dir %{_sysconfdir}/%{name}/interfaces
222 %dir %{_sysconfdir}/%{name}/ppd
223 %attr(644,root,root) /etc/logrotate.d/%{name}
224 %attr(4755,lp,root) %{_bindir}/lppasswd
225 %attr(755,root,root) %{_bindir}/disable
226 %attr(755,root,root) %{_bindir}/enable
228 %dir %{_libdir}/cups/*
229 %attr(755,root,root) %{_libdir}/cups/*/*
230 %attr(755,root,root) %{_sbindir}/*
232 %{_mandir}/man1/backend.1*
233 %{_mandir}/man1/cupstestppd.1*
234 %{_mandir}/man1/filter.1*
235 %{_mandir}/man1/lppasswd.1*
237 %lang(fr) %{_mandir}/fr/man1/backend.1*
238 %lang(fr) %{_mandir}/fr/man1/cupstestppd.1*
239 %lang(fr) %{_mandir}/fr/man1/filter.1*
240 %lang(fr) %{_mandir}/fr/man1/lppasswd.1*
241 %lang(fr) %{_mandir}/fr/man[58]/*
242 %{_datadir}/locale/C/cups_C
243 %lang(be) %{_datadir}/locale/be/cups_be
244 %lang(cs) %{_datadir}/locale/cs/cups_cs
245 %lang(de) %{_datadir}/locale/de/cups_de
246 %{_datadir}/locale/en/cups_en
247 %lang(es) %{_datadir}/locale/es/cups_es
248 %lang(fr) %{_datadir}/locale/fr/cups_fr
249 %lang(he) %{_datadir}/locale/he/cups_he
250 %lang(it) %{_datadir}/locale/it/cups_it
251 %lang(ru) %{_datadir}/locale/ru_RU.*/cups_ru_RU.*
252 %lang(sv) %{_datadir}/locale/sv/cups_sv
253 %lang(uk) %{_datadir}/locale/uk/cups_uk
254 %lang(uk) %{_datadir}/locale/uk_UA.*/cups_uk_UA.*
255 %lang(zh_CN) %{_datadir}/locale/zh_CN/cups_zh_CN
257 %attr(750,root,root) %dir /var/log/archiv/cups
258 %attr(750,root,root) %dir /var/log/cups
259 %attr(640,root,root) %ghost /var/log/cups/access_log
260 %attr(640,root,root) %ghost /var/log/cups/error_log
261 %attr(640,root,root) %ghost /var/log/cups/page_log
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/libcups.so.*
268 %defattr(644,root,root,755)
269 %attr(644,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/client.conf
270 %attr(755,root,root) %{_bindir}/cancel
271 %attr(755,root,root) %{_bindir}/lp
272 %attr(755,root,root) %{_bindir}/lpoptions
273 %attr(755,root,root) %{_bindir}/lpq
274 %attr(755,root,root) %{_bindir}/lpr
275 %attr(755,root,root) %{_bindir}/lprm
276 %attr(755,root,root) %{_bindir}/lpstat
277 %{_mandir}/man1/cancel.1*
278 %{_mandir}/man1/lp.1*
279 %{_mandir}/man1/lpoptions.1*
280 %{_mandir}/man1/lpq.1*
281 %{_mandir}/man1/lpr.1*
282 %{_mandir}/man1/lprm.1*
283 %{_mandir}/man1/lpstat.1*
284 %lang(fr) %{_mandir}/fr/man1/cancel.1*
285 %lang(fr) %{_mandir}/fr/man1/lp.1*
286 %lang(fr) %{_mandir}/fr/man1/lpoptions.1*
287 %lang(fr) %{_mandir}/fr/man1/lpq.1*
288 %lang(fr) %{_mandir}/fr/man1/lpr.1*
289 %lang(fr) %{_mandir}/fr/man1/lprm.1*
290 %lang(fr) %{_mandir}/fr/man1/lpstat.1*
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libcupsimage.so.*
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_bindir}/cups-config
302 %lang(fr) %{_mandir}/fr/man3/*
305 %defattr(644,root,root,755)