]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- updated to 2.1.12
[packages/cyrus-sasl.git] / cyrus-sasl.spec
1 #
2 # Conditional builds:
3 # _with_srp - build srp pluggin
4 # _without_myslq - don't build mysql pluggin
5 # _without_ldap - disable LDAP support for sasluthd
6 #
7 Summary:        The SASL library API for the Cyrus mail system
8 Summary(pl):    Biblioteka Cyrus SASL
9 Summary(pt_BR): Implementação da API SASL
10 Summary(ru):    âÉÂÌÉÏÔÅËÁ Cyrus SASL
11 Summary(uk):    â¦Â̦ÏÔÅËÁ Cyrus SASL
12 Name:           cyrus-sasl
13 Version:        2.1.12
14 Release:        1
15 License:        distributable
16 Group:          Libraries
17 Source0:        ftp://ftp.andrew.cmu.edu/pub/cyrus-mail//%{name}-%{version}.tar.gz
18 Source1:        saslauthd.init
19 Source2:        saslauthd.sysconfig
20 Source3:        %{name}.pam
21 Patch0:         %{name}-configdir.patch
22 Patch1:         %{name}-nolibs.patch
23 Patch2:         %{name}-lt14d.patch
24 Patch3:         %{name}-do_dlopen.patch
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  db-devel
28 BuildRequires:  libtool >= 1.4
29 %{!?_without_mysql:BuildRequires: mysql-devel}
30 %{!?_without_ldap:BuildRequires: openldap-devel}
31 BuildRequires:  openssl-devel >= 0.9.7
32 BuildRequires:  pam-devel
33 URL:            http://asg.web.cmu.edu/sasl/
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _sysconfdir     /etc/sasl
37
38 %description
39 This is an implementation of the SASL API, useful for adding
40 authentication, authorization, and security to network protocols. The
41 SASL protocol itself is documented in rfc2222; the API standard is a
42 work in progress.
43
44 %description -l pl
45 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
46 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
47 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
48 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
49 RFC 2222; standaryzacja API jest w toku.
50
51 %description -l pt_BR
52 Esta é uma implementação da API SASL, útil para acrescentar
53 autenticação, autorização e seguança (criptografia) para protocolos de
54 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
55 ainda está em desenvolvimento.
56
57 %description -l ru
58 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
59 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
60 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
61
62 %description -l uk
63 ðÁËÅÔ cyrus-sasl Í¦ÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
64 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎѠЦÄÔÒÉÍËÉ
65 ÁÕÔÅÎÔÉËÁ槠ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
66
67 %package devel
68 Summary:        Header files and documentation for cyrus-sasl
69 Summary(pl):    Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
70 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
71 Summary(ru):    æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
72 Summary(ru):    æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎѠڠ¦Â̦ÏÔÅËÏÀ Cyrus SASL
73 Group:          Development/Libraries
74 Requires:       %{name} = %{version}
75
76 %description devel
77 This includes the header files and documentation needed to develop
78 applications which use SASL.
79
80 %description devel -l pl
81 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
82
83 %description devel -l pt_BR
84 Este pacote inclui os arquivos de cabeçalho e documentação necessários
85 para desenvolver aplicativos que usem SASL.
86
87 %description devel -l ru
88 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
89 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
90
91 %description devel -l uk
92 èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
93 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
94
95 %package static
96 Summary:        Static cyrus-sasl libraries
97 Summary(pl):    Statyczne biblioteki cyrus-sasl
98 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
99 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ Cyrus SASL
100 Group:          Development/Libraries
101 Requires:       %{name}-devel = %{version}
102
103 %description static
104 Static cyrus-sasl libraries.
105
106 %description static -l pl
107 Statyczne biblioteki cyrus-sasl.
108
109 %description static -l ru
110 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
111 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
112
113 %description static -l uk
114 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
115 Cyrus SASL.
116
117 %package cram-md5
118 Summary:        Cram-MD5 Cyrus SASL plugin
119 Summary(pl):    Wtyczka Cram-MD5 do Cyrus SASL
120 Summary(pt_BR): Mecanismo SASL CRAM-MD5
121 Group:          Libraries
122 Requires:       %{name} = %{version}
123
124 %description cram-md5
125 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
126 mandatory-to-implement authentication mechanism for a number of
127 protocols; it uses MD5 with a challenge/response system to
128 authenticate the user.
129
130 %description cram-md5 -l pl
131 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
132 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
133 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
134 systemem challenge/response.
135
136 %description cram-md5 -l pt_BR
137 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
138 mecanismo de autenticação obrigatório de ser implementado para vários
139 protocolos: ele usa MD5 com um sistema de desafio/resposta para
140 autenticar o usuário.
141
142 %package digest-md5
143 Summary:        Digest-MD5 Cyrus SASL plugin
144 Summary(pl):    Wtyczka Digest-MD5 do Cyrus SASL
145 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
146 Group:          Libraries
147 Requires:       %{name} = %{version}
148
149 %description digest-md5
150 This plugin implements the latest draft of the SASL DIGEST-MD5
151 mechanism. Although not yet finalized, this is likely to become the
152 new mandatory-to-implement authentication system in all new protocols.
153 It's based on the digest md5 authentication system designed for HTTP.
154
155 %description digest-md5 -l pl
156 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
157 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
158 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
159 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
160 Digest-MD5 zaprojektowanym dla HTTP.
161
162 %description digest-md5 -l pt_BR
163 Este plugin implementa a última versão da especificação do mecanismo
164 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
165 provavelmente será o novo sistema de autenticação obrigatório para
166 protocolos novos. Ele é baseado na autenticação md5 digest
167 desenvolvida para HTTP.
168
169 %package plain
170 Summary:        Plain Cyrus SASL plugin
171 Summary(pl):    Wtyczka plain do Cyrus SASL
172 Summary(pt_BR): Mecanismo SASL PLAIN
173 Group:          Libraries
174 Requires:       %{name} = %{version}
175
176 %description plain
177 This plugin implements the SASL PLAIN mechanism. Although insecure,
178 PLAIN is useful for transitioning to new security mechanisms, as this
179 is the only mechanism which gives the server a copy of the user's
180 password.
181
182 %description plain -l pl
183 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
184 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
185 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
186 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
187
188 %description plain -l pt_BR
189 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
190 mecanismo é útil durante transições para novos mecanismos de
191 segurança, pois é o único esquema que fornece uma cópia da senha do
192 usuário para o servidor.
193
194 %package anonymous
195 Summary:        Anonymous Cyrus SASL plugin
196 Summary(pl):    Wtyczka anonymous do Cyrus SASL
197 Summary(pt_BR): Mecanismo SASL ANONYMOUS
198 Group:          Libraries
199 Requires:       %{name} = %{version}
200
201 %description anonymous
202 This plugin implements the SASL ANONYMOUS mechanism, used for
203 anonymous authentication.
204
205 %description anonymous -l pl
206 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
207 anonimowego uwierzytelniania.
208
209 %description anonymous -l pt_BR
210 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
211 autenticação anônima.
212
213 %package login
214 Summary:        Unsupported Login Cyrus SASL plugin
215 Summary(pl):    Nie wspierana wtyczka Login do Cyrus SASL
216 Group:          Libraries
217 Requires:       %{name} = %{version}
218
219 %description login
220 Unsupported LOGIN Cyrus SASL plugin.
221
222 %description login -l pl
223 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
224 SASL.
225
226 %package srp
227 Summary:        SRP Cyrus SASL plugin
228 Summary(pl):    Wtyczka SRP do Cyrus SASL
229 Summary(pt_BR): Mecanismo SASL SRP
230 Group:          Libraries
231 Requires:       %{name} = %{version}
232
233 %description srp
234 This plugin implements the SASL SRP mechanism, based on the Secure
235 Remote Password protocol. This mechanism performs mutual
236 authentication and can provide a security layer with replay detection,
237 integrity protection and/or condifentiality protection.
238
239 %description srp -l pl
240 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
241 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
242 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
243 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
244
245 %description srp -l pt_BR
246 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
247 (Secure Remote Password). Este mecanismo oferece autenticação mútua
248 (do cliente e do servidor) e pode prover uma camada de segurança com
249 detecção de ataques de replay, garantia de integridade e/ou
250 confidencialidade.
251
252 %package otp
253 Summary:        OTP Cyrus SASL plugin
254 Summary(pl):    Wtyczka OTP do Cyrus SASL
255 Summary(pt_BR): Mecanismo SASL OTP
256 Group:          Libraries
257 Requires:       %{name} = %{version}
258
259 %description otp
260 This plugin implements the SASL OTP (One Time Password) mechanism.
261
262 %description otp -l pl
263 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
264 SASL.
265
266 %package x509
267 Summary:        x509 Cyrus SASL plugin
268 Summary(pl):    Wtyczka x509 do Cyrus SASL
269 Group:          Libraries
270 Requires:       %{name} = %{version}
271
272 %description x509
273 x509 Cyrus SASL plugin.
274
275 %description x509 -l pl
276 Wtyczka x509 do Cyrus SASL.
277
278 %package saslauthd
279 Summary:        Cyrus SASL authd
280 Summary(pl):    Demon authd do Cyrus SASL
281 Group:          Libraries
282 Requires(post,postun):  /sbin/chkconfig
283 Requires:       %{name} = %{version}
284
285 %description saslauthd
286 Cyrus SASL authd.
287
288 %description saslauthd -l pl
289 Demon authd do Cyrus SASL.
290
291 %package pwcheck
292 Summary:        Cyrus SASL pwcheck helper
293 Summary(pl):    Program pomocniczy pwcheck do Cyrus SASL
294 Group:          Libraries
295 Requires:       %{name} = %{version}
296
297 %description pwcheck
298 Cyrus SASL pwcheck helper.
299
300 %description pwcheck -l pl
301 Program pomocniczy pwcheck do Cyrus SASL.
302
303 %package sasldb
304 Summary:        Cyrus SASL sasldb plugin
305 Summary(pl):    Wtyczka sasldb do Cyrus SASL
306 Group:          Libraries
307 Requires:       %{name} = %{version}
308
309 %description sasldb
310 Cyrus SASL sasldb plugin.
311
312 %description sasldb -l pl
313 Wtyczka sasldb do Cyrus SASL.
314
315 %package mysql
316 Summary:        Cyrus SASL mysql plugin
317 Summary(pl):    Wtyczka mysql do Cyrus SASL
318 Group:          Libraries
319 Requires:       %{name} = %{version}
320
321 %description mysql
322 Cyrus SASL mysql plugin.
323
324 %description mysql -l pl
325 Wtyczka mysql do Cyrus SASL.
326
327 %prep
328 %setup  -q
329 %patch0 -p1
330 %patch1 -p1
331 %patch2 -p1
332 %patch3 -p1
333
334 %build
335 # acinclude.m4 contains only old libtool.m4
336 rm -f acinclude.m4 config/missing
337 %{__libtoolize}
338 %{__aclocal} -I cmulocal -I config
339 %{__autoheader}
340 %{__automake}
341 %{__autoconf}
342
343 cd saslauthd
344 %{__aclocal} -I ../cmulocal -I ../config -I config
345 %{__autoheader}
346 automake -a
347 %{__autoconf}
348 cd ..
349
350 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
351 %configure \
352         --enable-static \
353         --enable-login \
354         %{?_with_srp:--enable-srp} \
355         %{?!_without_mysql: --with-mysql=%{_prefix}} \
356         %{?!_without_ldap: --with-ldap=%{_prefix}} \
357         %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
358         --with-saslauthd=/var/lib/sasl2 \
359         --with-pam \
360         --with-dblib=berkeley \
361         --with-dbpath=/var/lib/sasl2/sasl.db \
362         --with-configdir=%{_sysconfdir} \
363         --disable-krb4 \
364         --disable-gssapi
365 %{__make}
366
367 %install
368 rm -rf $RPM_BUILD_ROOT
369 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
370                 $RPM_BUILD_ROOT%{_mandir}/man8
371 %{__make} install DESTDIR=$RPM_BUILD_ROOT
372
373 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
374 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
375
376 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
377
378 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
379
380 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
381
382 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
383 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
384 install %{SOURCE3} ./cyrus.pam
385
386 %clean
387 rm -rf $RPM_BUILD_ROOT
388
389 %post   -p /sbin/ldconfig
390 %postun -p /sbin/ldconfig
391
392 %post saslauthd
393 /sbin/chkconfig --add saslauthd
394 if [ -f /var/lock/subsys/saslauthd ]; then
395         /etc/rc.d/init.d/saslauthd restart 1>&2
396 else
397         echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
398 fi
399
400 %preun saslauthd
401 if [ "$1" = "0" ]; then
402         if [ -f /var/lock/subsys/saslauthd ]; then
403                 /etc/rc.d/init.d/saslauthd stop 1>&2
404         fi
405         /sbin/chkconfig --del saslauthd
406 fi
407
408 %files
409 %defattr(644,root,root,755)
410 %doc AUTHORS COPYING ChangeLog NEWS README
411 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig}
412 %dir %{_sysconfdir}
413 %dir %{_libdir}/sasl2
414 %dir /var/lib/sasl2
415 %attr(755,root,root) %{_libdir}/lib*.so.*.*
416 %attr(755,root,root) %{_sbindir}/sasldblistusers2
417 %attr(755,root,root) %{_sbindir}/saslpasswd2
418
419 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
420 %{_mandir}/man8/sasldblistusers2.*
421 %{_mandir}/man8/saslpasswd2.*
422
423 %files devel
424 %defattr(644,root,root,755)
425 %{_includedir}/sasl
426 %attr(755,root,root) %{_libdir}/lib*.so
427 %{_libdir}/lib*.la
428 %{_mandir}/man3/*
429
430 %files static
431 %defattr(644,root,root,755)
432 %{_libdir}/lib*.a
433 %{_libdir}/sasl2/lib*.a
434
435 %files anonymous
436 %defattr(644,root,root,755)
437 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
438
439 %files cram-md5
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
442
443 %files digest-md5
444 %defattr(644,root,root,755)
445 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
446
447 %files login
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
450
451 %files otp
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
454
455 %files plain
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
458
459 %files sasldb
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
462
463 %if %{!?_without_mysql:1}%{?_without_mysql:0}
464 %files mysql
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
467 %endif
468
469 %if %{?_with_srp:1}%{?!_with_srp:0}
470 %files srp
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
473 %endif
474
475 %if %{?_with_x509:1}%{?!_with_x509:0}
476 %files x509
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
479 %endif
480
481 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
482 %files pwcheck
483 %defattr(644,root,root,755)
484 %attr(755,root,root) %{_sbindir}/pwcheck
485 %endif
486
487 %files saslauthd
488 %defattr(644,root,root,755)
489 %doc cyrus.pam
490 %attr(755,root,root) %{_sbindir}/saslauthd
491 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
492 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
493 %{_mandir}/man8/saslauthd.*
This page took 0.096675 seconds and 4 git commands to generate.