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