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 heimdal # do not use Heimdal either
7 %bcond_without ntlm # without NTLM mechanism
8 %bcond_without static_libs # don't build static libraries
10 Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
11 Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
15 License: LGPL v2.1+ (library), GPL v3+ (gsasl tool)
17 Source0: http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
18 # Source0-md5: 982fe54a20016aa46a871c084c990c36
19 Patch0: %{name}-info.patch
20 Patch1: %{name}-heimdal-check.patch
21 Patch2: %{name}-link.patch
22 URL: http://www.gnu.org/software/gsasl/
23 BuildRequires: autoconf >= 2.61
24 BuildRequires: automake >= 1:1.10
25 BuildRequires: docbook-dtd412-xml
26 BuildRequires: gettext-tools >= 0.18.1
27 BuildRequires: gnutls-devel >= 1.2.0
28 %{?with_gss:BuildRequires: gss-devel >= 1.0.0}
29 %{?with_apidocs:BuildRequires: gtk-doc >= 1.1}
30 # used by examples/saml20 (noinst only)
31 #BuildRequires: lasso-devel >= 2.2.1
32 BuildRequires: libgcrypt-devel >= 1.3.0
33 BuildRequires: libidn-devel >= 0.1.0
34 %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
35 BuildRequires: libtool >= 2:1.5
36 BuildRequires: pkgconfig
38 # alternatively, gss or krb5 can be used for GSSAPI
39 %{?with_heimdal:BuildRequires: heimdal-devel}
41 %{?with_kerberos5:BuildRequires: shishi-devel}
42 BuildRequires: texinfo
43 Requires(post,postun): /sbin/ldconfig
44 Requires: libgcrypt >= 1.3.0
45 %{?with_ntlm:Requires: libntlm >= 0.3.5}
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 GNU SASL is an implementation of the Simple Authentication and
51 Security Layer framework and a few common SASL mechanisms. SASL is
52 used by network servers (e.g., IMAP, SMTP) to request authentication
53 from clients, and in clients to authenticate against servers.
55 GNU SASL contains a library (`libgsasl'), a command line utility
56 (`gsasl') to access the library from the shell, and a manual. The
57 library includes support for the SASL framework (with authentication
58 functions and application data privacy and integrity functions) and at
59 least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
60 PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
62 The library is portable because it does not do network communication
63 by itself, but rather leaves it up to the calling application. The
64 library is flexible with regards to the authorization infrastructure
65 used, as it utilizes callbacks into the application to decide whether
66 an user is authorized or not.
68 %description -l pl.UTF-8
69 GNU SASL to implementacja szkieletu Simple Authentication and Security
70 Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
71 popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
72 (np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
73 klientach do uwierzytelniania względem serwerów.
75 GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
76 poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
77 powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
78 funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
79 spójność danych aplikacji) oraz przynajmniej częściową obsługę
80 mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
81 DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
83 Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
84 sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
85 elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
86 ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
87 użytkownik jest autoryzowany.
90 Summary: Header files for GNU SASL library
91 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
93 Group: Development/Libraries
94 Requires: %{name} = %{version}-%{release}
96 Requires: gss-devel >= 1.0.0
98 %{?with_heimdal:Requires: heimdal-devel}
100 Requires: libgcrypt-devel >= 1.3.0
101 Requires: libidn-devel >= 0.1.0
102 %{?with_ntlm:Requires: libntlm-devel >= 0.3.5}
103 %{?with_kerberos5:Requires: shishi-devel}
104 Obsoletes: libgsasl-devel
107 Header files for GNU SASL library.
109 %description devel -l pl.UTF-8
110 Pliki nagłówkowe biblioteki GNU SASL.
113 Summary: Static GNU SASL library
114 Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
116 Group: Development/Libraries
117 Requires: %{name}-devel = %{version}-%{release}
118 Obsoletes: libgsasl-static
121 Static GNU SASL library.
123 %description static -l pl.UTF-8
124 Statyczna biblioteka GNU SASL.
134 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
135 # (after gsasl or libtool change)
136 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac lib/configure.ac
141 %{__aclocal} -I m4 -I gl/m4
147 %{__aclocal} -I m4 -I gl/m4
153 --disable-silent-rules \
154 %{?with_apidocs:--enable-gtk-doc} \
155 %{!?with_ntlm:--disable-ntlm} \
156 %{!?with_static_libs:--disable-static} \
157 %{?with_kerberos5:--enable-kerberos_v5} \
159 --with-gssapi-impl=gss
161 %{?with_heimdal:--with-gssapi-impl=heimdal} \
162 %{!?with_heimdal:--with-gssapi-impl=no} \
164 --with-html-dir=%{_gtkdocdir} \
170 rm -rf $RPM_BUILD_ROOT
173 DESTDIR=$RPM_BUILD_ROOT
175 # libgsasl for lib, gsasl for app
176 %find_lang %{name} --all-name
178 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
181 rm -rf $RPM_BUILD_ROOT
185 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
189 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
191 %files -f %{name}.lang
192 %defattr(644,root,root,755)
193 %doc AUTHORS ChangeLog NEWS README* THANKS
194 %attr(755,root,root) %{_bindir}/gsasl
195 %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7
197 %{_mandir}/man1/gsasl.1*
198 %{_infodir}/gsasl.info*
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libgsasl.so
203 %{_libdir}/libgsasl.la
204 %{_includedir}/gsasl*.h
205 %{_pkgconfigdir}/libgsasl.pc
206 %{_mandir}/man3/gsasl_*.3*
207 %{?with_apidocs:%{_gtkdocdir}/gsasl}
209 %if %{with static_libs}
211 %defattr(644,root,root,755)
212 %{_libdir}/libgsasl.a