]>
Commit | Line | Data |
---|---|---|
2b3e5acc JB |
1 | # |
2 | # Conditional build: | |
3b604391 JB |
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 | |
11 | ||
12 | %if %{with gss} || %{with krb5} | |
13 | %undefine with_heimdal | |
14 | %endif | |
15 | %if %{without kerberos5} | |
16 | %undefine with_gss | |
17 | %undefine with_heimdal | |
18 | %undefine with_krb5 | |
19 | %endif | |
2b3e5acc | 20 | Summary: GNU SASL - implementation of the Simple Authentication and Security Layer |
978932ce | 21 | Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer |
2b3e5acc | 22 | Name: gsasl |
3b604391 | 23 | Version: 1.10.0 |
abf5c2ee | 24 | Release: 1 |
642368b4 | 25 | License: LGPL v2.1+ (library), GPL v3+ (gsasl tool) |
2b3e5acc | 26 | Group: Libraries |
3b604391 JB |
27 | Source0: https://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz |
28 | # Source0-md5: 70918edd489eabceb622945940871348 | |
2b3e5acc | 29 | Patch0: %{name}-info.patch |
5c01684b | 30 | Patch2: %{name}-link.patch |
2b3e5acc | 31 | URL: http://www.gnu.org/software/gsasl/ |
3b604391 JB |
32 | BuildRequires: autoconf >= 2.64 |
33 | BuildRequires: automake >= 1:1.13 | |
a6708f5e | 34 | BuildRequires: docbook-dtd412-xml |
3b604391 JB |
35 | BuildRequires: gettext-tools >= 0.19.8 |
36 | BuildRequires: gnutls-devel >= 3.4 | |
c54abee7 | 37 | %{?with_gss:BuildRequires: gss-devel >= 1.0.0} |
7549bb32 | 38 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.1} |
3b604391 | 39 | %{?with_heimdal:BuildRequires: heimdal-devel} |
dbac61b3 | 40 | %{!?with_apidocs:BuildRequires: help2man} |
3b604391 | 41 | %{?with_krb5:BuildRequires: krb5-devel} |
5c01684b JB |
42 | # used by examples/saml20 (noinst only) |
43 | #BuildRequires: lasso-devel >= 2.2.1 | |
c88669c9 | 44 | BuildRequires: libgcrypt-devel >= 1.3.0 |
2b3e5acc | 45 | BuildRequires: libidn-devel >= 0.1.0 |
94f220fe | 46 | %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5} |
3b604391 | 47 | BuildRequires: libtool >= 2:2 |
085b2325 | 48 | BuildRequires: pkgconfig |
3b604391 JB |
49 | BuildRequires: rpmbuild(macros) >= 1.752 |
50 | %{?with_shishi:BuildRequires: shishi-devel} | |
2b3e5acc JB |
51 | BuildRequires: texinfo |
52 | Requires(post,postun): /sbin/ldconfig | |
51034332 | 53 | Requires: libgcrypt >= 1.3.0 |
94f220fe | 54 | %{?with_ntlm:Requires: libntlm >= 0.3.5} |
2b3e5acc JB |
55 | Obsoletes: libgsasl |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
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. | |
63 | ||
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. | |
70 | ||
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. | |
76 | ||
1b095fd3 | 77 | %description -l pl.UTF-8 |
2b3e5acc | 78 | GNU SASL to implementacja szkieletu Simple Authentication and Security |
1b095fd3 JR |
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. | |
2b3e5acc | 83 | |
1b095fd3 JR |
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, | |
2b3e5acc JB |
90 | DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5. |
91 | ||
1b095fd3 JR |
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. | |
2b3e5acc JB |
97 | |
98 | %package devel | |
99 | Summary: Header files for GNU SASL library | |
978932ce | 100 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL |
642368b4 | 101 | License: LGPL v2.1+ |
2b3e5acc | 102 | Group: Development/Libraries |
7f92ea00 | 103 | Requires: %{name} = %{version}-%{release} |
6ea49479 JK |
104 | %if %{with gss} |
105 | Requires: gss-devel >= 1.0.0 | |
106 | %else | |
107 | %{?with_heimdal:Requires: heimdal-devel} | |
108 | %endif | |
51034332 | 109 | Requires: libgcrypt-devel >= 1.3.0 |
2b3e5acc | 110 | Requires: libidn-devel >= 0.1.0 |
94f220fe | 111 | %{?with_ntlm:Requires: libntlm-devel >= 0.3.5} |
3b604391 | 112 | %{?with_shishi:Requires: shishi-devel} |
2b3e5acc JB |
113 | Obsoletes: libgsasl-devel |
114 | ||
115 | %description devel | |
116 | Header files for GNU SASL library. | |
117 | ||
1b095fd3 JR |
118 | %description devel -l pl.UTF-8 |
119 | Pliki nagłówkowe biblioteki GNU SASL. | |
2b3e5acc JB |
120 | |
121 | %package static | |
122 | Summary: Static GNU SASL library | |
978932ce | 123 | Summary(pl.UTF-8): Statyczna biblioteka GNU SASL |
642368b4 | 124 | License: LGPL v2.1+ |
2b3e5acc | 125 | Group: Development/Libraries |
7f92ea00 | 126 | Requires: %{name}-devel = %{version}-%{release} |
2b3e5acc JB |
127 | Obsoletes: libgsasl-static |
128 | ||
129 | %description static | |
130 | Static GNU SASL library. | |
131 | ||
1b095fd3 | 132 | %description static -l pl.UTF-8 |
2b3e5acc JB |
133 | Statyczna biblioteka GNU SASL. |
134 | ||
ba43a1a2 JB |
135 | %package apidocs |
136 | Summary: API documentation for GNU SASL library | |
137 | Summary(pl.UTF-8): Dokumentacja API biblioteki GNU SASL | |
138 | Group: Documentation | |
139 | Conflicts: gsasl-devel < 1.8.0-5 | |
c469db6b | 140 | BuildArch: noarch |
ba43a1a2 JB |
141 | |
142 | %description apidocs | |
143 | API documentation for GNU SASL library. | |
144 | ||
145 | %description apidocs -l pl.UTF-8 | |
146 | Dokumentacja API biblioteki GNU SASL. | |
147 | ||
2b3e5acc JB |
148 | %prep |
149 | %setup -q | |
150 | %patch0 -p1 | |
5c01684b | 151 | %patch2 -p1 |
087e9cf7 | 152 | |
c54abee7 | 153 | %{__rm} po/stamp-po |
ba43a1a2 JB |
154 | # use system file (from gettext-tools) |
155 | %{__rm} lib/m4/lib-link.m4 | |
faeae7e9 | 156 | |
2b3e5acc JB |
157 | %build |
158 | %{__gettextize} | |
159 | %{__libtoolize} | |
abf5c2ee | 160 | %{__aclocal} -I m4 |
2b3e5acc JB |
161 | %{__autoconf} |
162 | %{__autoheader} | |
163 | %{__automake} | |
8fab264b KK |
164 | cd lib |
165 | %{__libtoolize} | |
abf5c2ee | 166 | %{__aclocal} -I m4 |
8fab264b KK |
167 | %{__autoconf} |
168 | %{__autoheader} | |
169 | %{__automake} | |
3b604391 | 170 | cd .. |
2b3e5acc | 171 | %configure \ |
c54abee7 | 172 | --disable-silent-rules \ |
7549bb32 | 173 | %{?with_apidocs:--enable-gtk-doc} \ |
2b3e5acc | 174 | %{!?with_ntlm:--disable-ntlm} \ |
085b2325 | 175 | %{!?with_static_libs:--disable-static} \ |
3b604391 JB |
176 | %{?with_shishi:--enable-kerberos_v5} \ |
177 | --with-gssapi-impl=%{?with_gss:gss}%{?with_heimdal:heimdal}%{?with_krb5:mit}%{!?with_kerberos5:no} \ | |
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) | |
3b604391 | 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 |