]>
Commit | Line | Data |
---|---|---|
2b3e5acc JB |
1 | # |
2 | # Conditional build: | |
7549bb32 | 3 | %bcond_without apidocs # disable gtk-doc |
58470b9b | 4 | %bcond_with gss # use gss instead of Heimdal as GSSAPI implementation |
af579dc7 | 5 | %bcond_with kerberos5 # with KERBEROS_V5 mechanism (based on shishi, currently broken) |
6ea49479 | 6 | %bcond_without heimdal # do not use Heimdal either |
085b2325 KK |
7 | %bcond_without ntlm # without NTLM mechanism |
8 | %bcond_without static_libs # don't build static libraries | |
2b3e5acc JB |
9 | # |
10 | Summary: GNU SASL - implementation of the Simple Authentication and Security Layer | |
978932ce | 11 | Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer |
2b3e5acc | 12 | Name: gsasl |
a169840b | 13 | Version: 1.8.0 |
ba43a1a2 | 14 | Release: 5 |
642368b4 | 15 | License: LGPL v2.1+ (library), GPL v3+ (gsasl tool) |
2b3e5acc | 16 | Group: Libraries |
14b17873 | 17 | Source0: http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz |
a169840b | 18 | # Source0-md5: 982fe54a20016aa46a871c084c990c36 |
2b3e5acc | 19 | Patch0: %{name}-info.patch |
c54abee7 | 20 | Patch1: %{name}-heimdal-check.patch |
5c01684b | 21 | Patch2: %{name}-link.patch |
2b3e5acc | 22 | URL: http://www.gnu.org/software/gsasl/ |
af579dc7 JB |
23 | BuildRequires: autoconf >= 2.61 |
24 | BuildRequires: automake >= 1:1.10 | |
a6708f5e | 25 | BuildRequires: docbook-dtd412-xml |
26eba101 | 26 | BuildRequires: gettext-tools >= 0.18.1 |
e106a2d9 | 27 | BuildRequires: gnutls-devel >= 1.2.0 |
c54abee7 | 28 | %{?with_gss:BuildRequires: gss-devel >= 1.0.0} |
7549bb32 | 29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.1} |
5c01684b JB |
30 | # used by examples/saml20 (noinst only) |
31 | #BuildRequires: lasso-devel >= 2.2.1 | |
c88669c9 | 32 | BuildRequires: libgcrypt-devel >= 1.3.0 |
2b3e5acc | 33 | BuildRequires: libidn-devel >= 0.1.0 |
94f220fe | 34 | %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5} |
dfa83798 | 35 | BuildRequires: libtool >= 2:1.5 |
085b2325 | 36 | BuildRequires: pkgconfig |
6ea49479 | 37 | %if %{without gss} |
0baf6faa | 38 | # alternatively, gss or krb5 can be used for GSSAPI |
6ea49479 JK |
39 | %{?with_heimdal:BuildRequires: heimdal-devel} |
40 | %endif | |
af579dc7 | 41 | %{?with_kerberos5:BuildRequires: shishi-devel} |
2b3e5acc JB |
42 | BuildRequires: texinfo |
43 | Requires(post,postun): /sbin/ldconfig | |
51034332 | 44 | Requires: libgcrypt >= 1.3.0 |
94f220fe | 45 | %{?with_ntlm:Requires: libntlm >= 0.3.5} |
2b3e5acc JB |
46 | Obsoletes: libgsasl |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
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. | |
54 | ||
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. | |
61 | ||
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. | |
67 | ||
1b095fd3 | 68 | %description -l pl.UTF-8 |
2b3e5acc | 69 | GNU SASL to implementacja szkieletu Simple Authentication and Security |
1b095fd3 JR |
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. | |
2b3e5acc | 74 | |
1b095fd3 JR |
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, | |
2b3e5acc JB |
81 | DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5. |
82 | ||
1b095fd3 JR |
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. | |
2b3e5acc JB |
88 | |
89 | %package devel | |
90 | Summary: Header files for GNU SASL library | |
978932ce | 91 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL |
642368b4 | 92 | License: LGPL v2.1+ |
2b3e5acc | 93 | Group: Development/Libraries |
7f92ea00 | 94 | Requires: %{name} = %{version}-%{release} |
6ea49479 JK |
95 | %if %{with gss} |
96 | Requires: gss-devel >= 1.0.0 | |
97 | %else | |
98 | %{?with_heimdal:Requires: heimdal-devel} | |
99 | %endif | |
51034332 | 100 | Requires: libgcrypt-devel >= 1.3.0 |
2b3e5acc | 101 | Requires: libidn-devel >= 0.1.0 |
94f220fe | 102 | %{?with_ntlm:Requires: libntlm-devel >= 0.3.5} |
af579dc7 | 103 | %{?with_kerberos5:Requires: shishi-devel} |
2b3e5acc JB |
104 | Obsoletes: libgsasl-devel |
105 | ||
106 | %description devel | |
107 | Header files for GNU SASL library. | |
108 | ||
1b095fd3 JR |
109 | %description devel -l pl.UTF-8 |
110 | Pliki nagłówkowe biblioteki GNU SASL. | |
2b3e5acc JB |
111 | |
112 | %package static | |
113 | Summary: Static GNU SASL library | |
978932ce | 114 | Summary(pl.UTF-8): Statyczna biblioteka GNU SASL |
642368b4 | 115 | License: LGPL v2.1+ |
2b3e5acc | 116 | Group: Development/Libraries |
7f92ea00 | 117 | Requires: %{name}-devel = %{version}-%{release} |
2b3e5acc JB |
118 | Obsoletes: libgsasl-static |
119 | ||
120 | %description static | |
121 | Static GNU SASL library. | |
122 | ||
1b095fd3 | 123 | %description static -l pl.UTF-8 |
2b3e5acc JB |
124 | Statyczna biblioteka GNU SASL. |
125 | ||
ba43a1a2 JB |
126 | %package apidocs |
127 | Summary: API documentation for GNU SASL library | |
128 | Summary(pl.UTF-8): Dokumentacja API biblioteki GNU SASL | |
129 | Group: Documentation | |
130 | Conflicts: gsasl-devel < 1.8.0-5 | |
131 | ||
132 | %description apidocs | |
133 | API documentation for GNU SASL library. | |
134 | ||
135 | %description apidocs -l pl.UTF-8 | |
136 | Dokumentacja API biblioteki GNU SASL. | |
137 | ||
2b3e5acc JB |
138 | %prep |
139 | %setup -q | |
140 | %patch0 -p1 | |
c54abee7 | 141 | %patch1 -p1 |
5c01684b | 142 | %patch2 -p1 |
087e9cf7 | 143 | |
c54abee7 | 144 | %{__rm} po/stamp-po |
ba43a1a2 JB |
145 | # use system file (from gettext-tools) |
146 | %{__rm} lib/m4/lib-link.m4 | |
faeae7e9 | 147 | |
a169840b JB |
148 | # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone |
149 | # (after gsasl or libtool change) | |
150 | %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac lib/configure.ac | |
151 | ||
2b3e5acc JB |
152 | %build |
153 | %{__gettextize} | |
154 | %{__libtoolize} | |
1fb8e091 | 155 | %{__aclocal} -I m4 -I gl/m4 |
2b3e5acc JB |
156 | %{__autoconf} |
157 | %{__autoheader} | |
158 | %{__automake} | |
8fab264b KK |
159 | cd lib |
160 | %{__libtoolize} | |
161 | %{__aclocal} -I m4 -I gl/m4 | |
162 | %{__autoconf} | |
163 | %{__autoheader} | |
164 | %{__automake} | |
165 | cd - | |
2b3e5acc | 166 | %configure \ |
c54abee7 | 167 | --disable-silent-rules \ |
7549bb32 | 168 | %{?with_apidocs:--enable-gtk-doc} \ |
2b3e5acc | 169 | %{!?with_ntlm:--disable-ntlm} \ |
085b2325 | 170 | %{!?with_static_libs:--disable-static} \ |
af579dc7 | 171 | %{?with_kerberos5:--enable-kerberos_v5} \ |
6ea49479 JK |
172 | %if %{with gss} |
173 | --with-gssapi-impl=gss | |
174 | %else | |
175 | %{?with_heimdal:--with-gssapi-impl=heimdal} \ | |
176 | %{!?with_heimdal:--with-gssapi-impl=no} \ | |
177 | %endif | |
4c04a374 JB |
178 | --with-html-dir=%{_gtkdocdir} \ |
179 | --with-libgcrypt | |
2b3e5acc JB |
180 | |
181 | %{__make} | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT | |
188 | ||
ba43a1a2 JB |
189 | # obsoleted by pkg-config |
190 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgsasl.la | |
191 | ||
c664ca53 JB |
192 | # libgsasl for lib, gsasl for app |
193 | %find_lang %{name} --all-name | |
2b3e5acc | 194 | |
64e22326 ER |
195 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
196 | ||
2b3e5acc JB |
197 | %clean |
198 | rm -rf $RPM_BUILD_ROOT | |
199 | ||
200 | %post | |
201 | /sbin/ldconfig | |
202 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
203 | ||
204 | %postun | |
205 | /sbin/ldconfig | |
206 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
207 | ||
208 | %files -f %{name}.lang | |
209 | %defattr(644,root,root,755) | |
dfa83798 | 210 | %doc AUTHORS ChangeLog NEWS README* THANKS |
2b3e5acc JB |
211 | %attr(755,root,root) %{_bindir}/gsasl |
212 | %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.* | |
d0816f05 | 213 | %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7 |
2b3e5acc | 214 | %{_mandir}/man1/gsasl.1* |
d0816f05 | 215 | %{_infodir}/gsasl.info* |
2b3e5acc JB |
216 | |
217 | %files devel | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_libdir}/libgsasl.so | |
94f220fe | 220 | %{_includedir}/gsasl*.h |
2b3e5acc | 221 | %{_pkgconfigdir}/libgsasl.pc |
d0816f05 | 222 | %{_mandir}/man3/gsasl_*.3* |
2b3e5acc | 223 | |
085b2325 | 224 | %if %{with static_libs} |
2b3e5acc JB |
225 | %files static |
226 | %defattr(644,root,root,755) | |
227 | %{_libdir}/libgsasl.a | |
085b2325 | 228 | %endif |
ba43a1a2 JB |
229 | |
230 | %if %{with apidocs} | |
231 | %files apidocs | |
232 | %defattr(644,root,root,755) | |
233 | %{_gtkdocdir}/gsasl | |
234 | %endif |