3 %bcond_without apidocs # API documentation
4 %bcond_without kerberos5 # GSSAPI mechanism
5 %bcond_with gss # GNU GSS as GSSAPI implementation
6 %bcond_without heimdal # Heimdal as GSSAPI implementation (default)
7 %bcond_with krb5 # MIT Kerberos as GSSAPI implementation
8 %bcond_with shishi # KERBEROS_V5 mechanism (based on shishi, currently broken)
9 %bcond_without ntlm # NTLM mechanism
10 %bcond_without static_libs # static library
12 %if %{with gss} || %{with krb5}
13 %undefine with_heimdal
15 %if %{without kerberos5}
17 %undefine with_heimdal
20 Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
21 Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
25 License: LGPL v2.1+ (library), GPL v3+ (gsasl tool)
27 Source0: https://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
28 # Source0-md5: 70918edd489eabceb622945940871348
29 Patch0: %{name}-info.patch
30 Patch2: %{name}-link.patch
31 URL: http://www.gnu.org/software/gsasl/
32 BuildRequires: autoconf >= 2.64
33 BuildRequires: automake >= 1:1.13
34 BuildRequires: docbook-dtd412-xml
35 BuildRequires: gettext-tools >= 0.19.8
36 BuildRequires: gnutls-devel >= 3.4
37 %{?with_gss:BuildRequires: gss-devel >= 1.0.0}
38 %{?with_apidocs:BuildRequires: gtk-doc >= 1.1}
39 %{?with_heimdal:BuildRequires: heimdal-devel}
40 %{!?with_apidocs:BuildRequires: help2man}
41 %{?with_krb5:BuildRequires: krb5-devel}
42 # used by examples/saml20 (noinst only)
43 #BuildRequires: lasso-devel >= 2.2.1
44 BuildRequires: libgcrypt-devel >= 1.3.0
45 BuildRequires: libidn-devel >= 0.1.0
46 %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
47 BuildRequires: libtool >= 2:2
48 BuildRequires: pkgconfig
49 BuildRequires: rpmbuild(macros) >= 1.752
50 %{?with_shishi:BuildRequires: shishi-devel}
51 BuildRequires: texinfo
52 Requires(post,postun): /sbin/ldconfig
53 Requires: libgcrypt >= 1.3.0
54 %{?with_ntlm:Requires: libntlm >= 0.3.5}
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 GNU SASL is an implementation of the Simple Authentication and
60 Security Layer framework and a few common SASL mechanisms. SASL is
61 used by network servers (e.g., IMAP, SMTP) to request authentication
62 from clients, and in clients to authenticate against servers.
64 GNU SASL contains a library (`libgsasl'), a command line utility
65 (`gsasl') to access the library from the shell, and a manual. The
66 library includes support for the SASL framework (with authentication
67 functions and application data privacy and integrity functions) and at
68 least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
69 PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
71 The library is portable because it does not do network communication
72 by itself, but rather leaves it up to the calling application. The
73 library is flexible with regards to the authorization infrastructure
74 used, as it utilizes callbacks into the application to decide whether
75 an user is authorized or not.
77 %description -l pl.UTF-8
78 GNU SASL to implementacja szkieletu Simple Authentication and Security
79 Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
80 popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
81 (np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
82 klientach do uwierzytelniania względem serwerów.
84 GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
85 poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
86 powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
87 funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
88 spójność danych aplikacji) oraz przynajmniej częściową obsługę
89 mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
90 DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
92 Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
93 sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
94 elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
95 ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
96 użytkownik jest autoryzowany.
99 Summary: Header files for GNU SASL library
100 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
102 Group: Development/Libraries
103 Requires: %{name} = %{version}-%{release}
105 Requires: gss-devel >= 1.0.0
107 %{?with_heimdal:Requires: heimdal-devel}
109 Requires: libgcrypt-devel >= 1.3.0
110 Requires: libidn-devel >= 0.1.0
111 %{?with_ntlm:Requires: libntlm-devel >= 0.3.5}
112 %{?with_shishi:Requires: shishi-devel}
113 Obsoletes: libgsasl-devel
116 Header files for GNU SASL library.
118 %description devel -l pl.UTF-8
119 Pliki nagłówkowe biblioteki GNU SASL.
122 Summary: Static GNU SASL library
123 Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
125 Group: Development/Libraries
126 Requires: %{name}-devel = %{version}-%{release}
127 Obsoletes: libgsasl-static
130 Static GNU SASL library.
132 %description static -l pl.UTF-8
133 Statyczna biblioteka GNU SASL.
136 Summary: API documentation for GNU SASL library
137 Summary(pl.UTF-8): Dokumentacja API biblioteki GNU SASL
139 Conflicts: gsasl-devel < 1.8.0-5
143 API documentation for GNU SASL library.
145 %description apidocs -l pl.UTF-8
146 Dokumentacja API biblioteki GNU SASL.
154 # use system file (from gettext-tools)
155 %{__rm} lib/m4/lib-link.m4
172 --disable-silent-rules \
173 %{?with_apidocs:--enable-gtk-doc} \
174 %{!?with_ntlm:--disable-ntlm} \
175 %{!?with_static_libs:--disable-static} \
176 %{?with_shishi:--enable-kerberos_v5} \
177 --with-gssapi-impl=%{?with_gss:gss}%{?with_heimdal:heimdal}%{?with_krb5:mit}%{!?with_kerberos5:no} \
178 --with-html-dir=%{_gtkdocdir} \
184 rm -rf $RPM_BUILD_ROOT
187 DESTDIR=$RPM_BUILD_ROOT
189 # obsoleted by pkg-config
190 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgsasl.la
192 # libgsasl for lib, gsasl for app
193 %find_lang %{name} --all-name
195 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
198 rm -rf $RPM_BUILD_ROOT
202 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
206 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
208 %files -f %{name}.lang
209 %defattr(644,root,root,755)
210 %doc AUTHORS ChangeLog NEWS README THANKS
211 %attr(755,root,root) %{_bindir}/gsasl
212 %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7
214 %{_mandir}/man1/gsasl.1*
215 %{_infodir}/gsasl.info*
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libgsasl.so
220 %{_includedir}/gsasl*.h
221 %{_pkgconfigdir}/libgsasl.pc
222 %{_mandir}/man3/gsasl_*.3*
224 %if %{with static_libs}
226 %defattr(644,root,root,755)
227 %{_libdir}/libgsasl.a
232 %defattr(644,root,root,755)