3 %bcond_without apidocs # disable gtk-doc
4 %bcond_with gss # use gss instead of Heimdal as GSSAPI implementation
5 %bcond_with kerberos5 # with KERBEROS_V5 mechanism (based on shishi, currently broken)
6 %bcond_without ntlm # without NTLM mechanism
7 %bcond_without static_libs # don't build static libraries
9 Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
10 Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
14 License: LGPL v2.1+ (library), GPL v3+ (gsasl tool)
16 Source0: http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
17 # Source0-md5: 5a4cc39af4ba8dbd8b66380baf3c3c7d
18 Patch0: %{name}-info.patch
19 Patch1: %{name}-heimdal-check.patch
20 URL: http://www.gnu.org/software/gsasl/
21 BuildRequires: autoconf >= 2.61
22 BuildRequires: automake >= 1:1.10
23 BuildRequires: gettext-devel >= 0.17
24 BuildRequires: gnutls-devel >= 1.2.0
25 %{?with_gss:BuildRequires: gss-devel >= 1.0.0}
26 %{?with_apidocs:BuildRequires: gtk-doc >= 1.1}
27 BuildRequires: libgcrypt-devel >= 1.3.0
28 BuildRequires: libidn-devel >= 0.1.0
29 %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
30 BuildRequires: libtool >= 2:1.5
31 BuildRequires: pkgconfig
32 # alternatively, gss or krb5 can be used for GSSAPI
33 %{!?with_gss:BuildRequires: heimdal-devel}
34 %{?with_kerberos5:BuildRequires: shishi-devel}
35 BuildRequires: texinfo
36 Requires(post,postun): /sbin/ldconfig
37 Requires: libgcrypt >= 1.3.0
38 %{?with_ntlm:Requires: libntlm >= 0.3.5}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 GNU SASL is an implementation of the Simple Authentication and
44 Security Layer framework and a few common SASL mechanisms. SASL is
45 used by network servers (e.g., IMAP, SMTP) to request authentication
46 from clients, and in clients to authenticate against servers.
48 GNU SASL contains a library (`libgsasl'), a command line utility
49 (`gsasl') to access the library from the shell, and a manual. The
50 library includes support for the SASL framework (with authentication
51 functions and application data privacy and integrity functions) and at
52 least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
53 PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
55 The library is portable because it does not do network communication
56 by itself, but rather leaves it up to the calling application. The
57 library is flexible with regards to the authorization infrastructure
58 used, as it utilizes callbacks into the application to decide whether
59 an user is authorized or not.
61 %description -l pl.UTF-8
62 GNU SASL to implementacja szkieletu Simple Authentication and Security
63 Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
64 popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
65 (np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
66 klientach do uwierzytelniania względem serwerów.
68 GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
69 poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
70 powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
71 funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
72 spójność danych aplikacji) oraz przynajmniej częściową obsługę
73 mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
74 DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
76 Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
77 sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
78 elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
79 ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
80 użytkownik jest autoryzowany.
83 Summary: Header files for GNU SASL library
84 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
88 %{?with_gss:Requires: gss-devel >= 1.0.0}
89 Requires: libgcrypt-devel >= 1.3.0
90 Requires: libidn-devel >= 0.1.0
91 %{?with_ntlm:Requires: libntlm-devel >= 0.3.5}
92 %{!?with_gss:Requires: heimdal-devel}
93 %{?with_kerberos5:Requires: shishi-devel}
94 Obsoletes: libgsasl-devel
97 Header files for GNU SASL library.
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe biblioteki GNU SASL.
103 Summary: Static GNU SASL library
104 Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
106 Group: Development/Libraries
107 Requires: %{name}-devel = %{version}-%{release}
108 Obsoletes: libgsasl-static
111 Static GNU SASL library.
113 %description static -l pl.UTF-8
114 Statyczna biblioteka GNU SASL.
126 %{__aclocal} -I m4 -I gl/m4
132 %{__aclocal} -I m4 -I gl/m4
138 --disable-silent-rules \
139 %{?with_apidocs:--enable-gtk-doc} \
140 %{!?with_ntlm:--disable-ntlm} \
141 %{!?with_static_libs:--disable-static} \
142 %{?with_kerberos5:--enable-kerberos_v5} \
143 %{!?with_gss:--with-gssapi-impl=heimdal} \
144 --with-html-dir=%{_gtkdocdir} \
150 rm -rf $RPM_BUILD_ROOT
153 DESTDIR=$RPM_BUILD_ROOT
155 # libgsasl for lib, gsasl for app
156 %find_lang %{name} --all-name
158 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
161 rm -rf $RPM_BUILD_ROOT
165 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
169 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
171 %files -f %{name}.lang
172 %defattr(644,root,root,755)
173 %doc AUTHORS ChangeLog NEWS README* THANKS
174 %attr(755,root,root) %{_bindir}/gsasl
175 %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.*
176 %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7
177 %{_mandir}/man1/gsasl.1*
178 %{_infodir}/gsasl.info*
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libgsasl.so
183 %{_libdir}/libgsasl.la
184 %{_includedir}/gsasl*.h
185 %{_pkgconfigdir}/libgsasl.pc
186 %{_mandir}/man3/gsasl_*.3*
187 %{?with_apidocs:%{_gtkdocdir}/gsasl}
189 %if %{with static_libs}
191 %defattr(644,root,root,755)
192 %{_libdir}/libgsasl.a