]> git.pld-linux.org Git - packages/cups.git/blob - cups.spec
695c53fd1ec81e631c75c83f4ca22ff33fa3c210
[packages/cups.git] / cups.spec
1 Summary:        Common Unix Printing System     
2 Summary(pl):    Popularny System Druku dla Unixa
3 Name:           cups
4 Version:        1.1.10
5 Release:        1
6 License:        GPL/LGPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-1-source.tar.bz2
11 Source1:        %{name}.init
12 Source2:        %{name}.pamd
13 Patch0:         %{name}-DESTDIR.patch
14 Patch1:         %{name}-config.patch
15 URL:            http://www.cups.org/    
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  libtiff-devel
19 BuildRequires:  openssl-devel >= 0.9.6b
20 BuildRequires:  pam-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 Prereq:         %{name}-libs = %{version}
24 Prereq:         /sbin/chkconfig
25 Provides:       lpr
26 Obsoletes:      lpr
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description 
30 CUPS provides a portable printing layer for UNIX®-based operating
31 systems. It has been developed by Easy Software Products to promote a
32 standard printing solution for all UNIX vendors and users. CUPS
33 provides the System V and Berkeley command-line interfaces. CUPS uses
34 the Internet Printing Protocol ("IPP") as the basis for managing print
35 jobs and queues. The Line Printer Daemon ("LPD") Server Message Block
36 ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are also supported
37 with reduced functionality. CUPS adds network printer browsing and
38 PostScript Printer Description ("PPD") based printing options to
39 support real-world printing under UNIX.
40
41 %description -l pl
42 CUPS dostarcza standardowy poziom drukowania dla systemów bazuj±cych
43 na UNIXie. CUPS u¿ywa protoko³u IPP - Internet Printint Protocol jako
44 podstawy do zarz±dzania zadaniami i kolejkami druku.
45
46 %package libs
47 Summary:        Common Unix Printing System Libraries
48 Summary(pl):    Biblioteki dla CUPS
49 Group:          Development/Libraries
50 Group(de):      Entwicklung/Libraries
51 Group(es):      Desarrollo/Bibliotecas
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54 Group(pt_BR):   Desenvolvimento/Bibliotecas
55 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
56 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
57
58 %description libs
59 Common Unix Printing System Libraries.
60
61 %description libs -l pl
62 Biblioteki dla CUPS.
63
64 %package devel
65 Summary:        Common Unix Printing System development files
66 Summary(pl):    Popularny System Druku dla Unixa, pliki nag³ówkowe
67 Group:          Development/Libraries
68 Group(de):      Entwicklung/Libraries
69 Group(es):      Desarrollo/Bibliotecas
70 Group(fr):      Development/Librairies
71 Group(pl):      Programowanie/Biblioteki
72 Group(pt_BR):   Desenvolvimento/Bibliotecas
73 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
74 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
75 Requires:       %{name}-libs = %{version}
76
77 %description devel
78 Common Unix Printing System development files.
79
80 %description -l pl devel
81 Popularny System Druku dla Unixa, pliki nag³ówkowe.
82
83 %package static
84 Summary:        Common Unix Printing System static libraries
85 Summary(pl):    Popularny System Druku dla Unixa, biblioteki statyczne
86 Group:          Development/Libraries
87 Group(de):      Entwicklung/Libraries
88 Group(es):      Desarrollo/Bibliotecas
89 Group(fr):      Development/Librairies
90 Group(pl):      Programowanie/Biblioteki
91 Group(pt_BR):   Desenvolvimento/Bibliotecas
92 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
93 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
94 Requires:       %{name}-devel = %{version}
95
96 %description static
97 Common Unix Printing System static libraries.
98
99 %description -l pl static
100 Popularny System Druku dla Unixa, biblioteki statyczne.
101
102 %prep
103 %setup -q
104 %patch0 -p1
105 %patch1 -p1
106
107 %build
108 aclocal
109 autoconf
110 %configure
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d}
116
117 %{__make} DESTDIR=$RPM_BUILD_ROOT install 
118
119 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/cups
120 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/pam.d/cups
121
122 gzip -9nf *.txt
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post
128 /sbin/chkconfig --add cups
129 if [ -f /var/lock/subsys/cups ]; then
130         /etc/rc.d/init.d/cups restart 1>&2
131 else
132         echo "Run \"/etc/rc.d/init.d/cups start\" to start cups daemon."
133 fi
134                 
135 %preun
136 if [ "$1" = "0" ]; then
137         if [ -f /var/lock/subsys/cups ]; then
138                 /etc/rc.d/init.d/cups stop 1>&2
139         fi
140         /sbin/chkconfig --del cups
141 fi
142
143 %post   libs -p /sbin/ldconfig
144 %postun libs -p /sbin/ldconfig
145
146 %files
147 %defattr(644,root,root,755)
148 %doc *.gz doc/*.html doc/*.css doc/*.pdf doc/images
149 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
150 %attr(754,root,root) /etc/rc.d/init.d/cups
151 %dir %{_sysconfdir}/%{name}
152 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.conf
153 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.convs
154 %attr(640,root,lp) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.types
155 %dir %{_sysconfdir}/%{name}/certs
156 %dir %{_sysconfdir}/%{name}/interfaces
157 %dir %{_sysconfdir}/%{name}/ppd
158 %attr(4755,lp,root) %{_bindir}/lppasswd
159 %attr(755,root,root) %{_bindir}/cancel
160 %attr(755,root,root) %{_bindir}/disable
161 %attr(755,root,root) %{_bindir}/enable
162 %attr(755,root,root) %{_bindir}/lp
163 %attr(755,root,root) %{_bindir}/lpoptions
164 %attr(755,root,root) %{_bindir}/lpq
165 %attr(755,root,root) %{_bindir}/lpr
166 %attr(755,root,root) %{_bindir}/lprm
167 %attr(755,root,root) %{_bindir}/lpstat
168 %dir %{_libdir}/cups
169 %dir %{_libdir}/cups/*
170 %attr(755,root,root)  %{_libdir}/cups/*/*
171 %attr(755,root,root) %{_sbindir}/*
172 %{_datadir}/cups
173 %{_mandir}/man[158]/*
174 %lang(C)  %{_datadir}/locale/C/cups_C
175 %lang(de) %{_datadir}/locale/de/cups_de
176 %lang(en) %{_datadir}/locale/en/cups_en
177 %lang(es) %{_datadir}/locale/es/cups_es
178 %lang(fr) %{_datadir}/locale/fr/cups_fr
179 %lang(it) %{_datadir}/locale/it/cups_it
180 /var/log/cups
181 /var/spool/cups
182
183 %files libs
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_libdir}/lib*.so.*
186
187 %files devel
188 %defattr(644,root,root,755)
189 %{_includedir}/cups
190 %{_libdir}/lib*.so
191
192 %files static
193 %defattr(644,root,root,755)
194 %{_libdir}/*.a
This page took 0.090606 seconds and 3 git commands to generate.