]>
Commit | Line | Data |
---|---|---|
2b3e5acc JB |
1 | # |
2 | # Conditional build: | |
af579dc7 JB |
3 | %bcond_with gss # use gss instead of MIT as GSSAPI implementation |
4 | %bcond_with kerberos5 # with KERBEROS_V5 mechanism (based on shishi, currently broken) | |
085b2325 KK |
5 | %bcond_without ntlm # without NTLM mechanism |
6 | %bcond_without static_libs # don't build static libraries | |
2b3e5acc JB |
7 | # |
8 | Summary: GNU SASL - implementation of the Simple Authentication and Security Layer | |
978932ce | 9 | Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer |
2b3e5acc | 10 | Name: gsasl |
af579dc7 JB |
11 | Version: 0.2.16 |
12 | Release: 1 | |
2b3e5acc JB |
13 | License: GPL |
14 | Group: Libraries | |
15 | Source0: http://josefsson.org/gsasl/releases/%{name}-%{version}.tar.gz | |
af579dc7 | 16 | # Source0-md5: eb23cc53c7a176fa39c1c9ec7257b018 |
2b3e5acc | 17 | Patch0: %{name}-info.patch |
af579dc7 | 18 | Patch1: %{name}-pl.po-update.patch |
2b3e5acc | 19 | URL: http://www.gnu.org/software/gsasl/ |
af579dc7 JB |
20 | BuildRequires: autoconf >= 2.61 |
21 | BuildRequires: automake >= 1:1.10 | |
22 | BuildRequires: gettext-devel >= 0.16.1 | |
e106a2d9 | 23 | BuildRequires: gnutls-devel >= 1.2.0 |
2b3e5acc | 24 | %{?with_gss:BuildRequires: gss-devel >= 0.0.0} |
c93a7c77 | 25 | BuildRequires: gtk-doc >= 1.1 |
2b3e5acc JB |
26 | BuildRequires: libgcrypt-devel >= 1.1.42 |
27 | BuildRequires: libidn-devel >= 0.1.0 | |
94f220fe | 28 | %{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5} |
dfa83798 | 29 | BuildRequires: libtool >= 2:1.5 |
085b2325 | 30 | BuildRequires: pkgconfig |
af579dc7 JB |
31 | # alternatively, gss or heimdal can be used for GSSAPI |
32 | %{!?with_gss:BuildRequires: krb5-devel} | |
33 | %{?with_kerberos5:BuildRequires: shishi-devel} | |
2b3e5acc JB |
34 | BuildRequires: texinfo |
35 | Requires(post,postun): /sbin/ldconfig | |
94f220fe | 36 | %{?with_ntlm:Requires: libntlm >= 0.3.5} |
2b3e5acc JB |
37 | Obsoletes: libgsasl |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | GNU SASL is an implementation of the Simple Authentication and | |
42 | Security Layer framework and a few common SASL mechanisms. SASL is | |
43 | used by network servers (e.g., IMAP, SMTP) to request authentication | |
44 | from clients, and in clients to authenticate against servers. | |
45 | ||
46 | GNU SASL contains a library (`libgsasl'), a command line utility | |
47 | (`gsasl') to access the library from the shell, and a manual. The | |
48 | library includes support for the SASL framework (with authentication | |
49 | functions and application data privacy and integrity functions) and at | |
50 | least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, | |
51 | PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms. | |
52 | ||
53 | The library is portable because it does not do network communication | |
54 | by itself, but rather leaves it up to the calling application. The | |
55 | library is flexible with regards to the authorization infrastructure | |
56 | used, as it utilizes callbacks into the application to decide whether | |
57 | an user is authorized or not. | |
58 | ||
1b095fd3 | 59 | %description -l pl.UTF-8 |
2b3e5acc | 60 | GNU SASL to implementacja szkieletu Simple Authentication and Security |
1b095fd3 JR |
61 | Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku |
62 | popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe | |
63 | (np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w | |
64 | klientach do uwierzytelniania względem serwerów. | |
2b3e5acc | 65 | |
1b095fd3 JR |
66 | GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii |
67 | poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu | |
68 | powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z | |
69 | funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i | |
70 | spójność danych aplikacji) oraz przynajmniej częściową obsługę | |
71 | mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID, | |
2b3e5acc JB |
72 | DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5. |
73 | ||
1b095fd3 JR |
74 | Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji |
75 | sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest | |
76 | elastyczna ze względu na używaną infrastrukturę uwierzytelniania, | |
77 | ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy | |
78 | użytkownik jest autoryzowany. | |
2b3e5acc JB |
79 | |
80 | %package devel | |
81 | Summary: Header files for GNU SASL library | |
978932ce | 82 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL |
2b3e5acc | 83 | Group: Development/Libraries |
7f92ea00 | 84 | Requires: %{name} = %{version}-%{release} |
2b3e5acc JB |
85 | %{?with_gss:Requires: gss-devel >= 0.0.0} |
86 | Requires: libgcrypt-devel >= 1.1.42 | |
87 | Requires: libidn-devel >= 0.1.0 | |
94f220fe | 88 | %{?with_ntlm:Requires: libntlm-devel >= 0.3.5} |
af579dc7 JB |
89 | %{!?with_gss:Requires: krb5-devel} |
90 | %{?with_kerberos5:Requires: shishi-devel} | |
2b3e5acc JB |
91 | Obsoletes: libgsasl-devel |
92 | ||
93 | %description devel | |
94 | Header files for GNU SASL library. | |
95 | ||
1b095fd3 JR |
96 | %description devel -l pl.UTF-8 |
97 | Pliki nagłówkowe biblioteki GNU SASL. | |
2b3e5acc JB |
98 | |
99 | %package static | |
100 | Summary: Static GNU SASL library | |
978932ce | 101 | Summary(pl.UTF-8): Statyczna biblioteka GNU SASL |
2b3e5acc | 102 | Group: Development/Libraries |
7f92ea00 | 103 | Requires: %{name}-devel = %{version}-%{release} |
2b3e5acc JB |
104 | Obsoletes: libgsasl-static |
105 | ||
106 | %description static | |
107 | Static GNU SASL library. | |
108 | ||
1b095fd3 | 109 | %description static -l pl.UTF-8 |
2b3e5acc JB |
110 | Statyczna biblioteka GNU SASL. |
111 | ||
112 | %prep | |
113 | %setup -q | |
114 | %patch0 -p1 | |
af579dc7 JB |
115 | %patch1 -p1 |
116 | ||
117 | rm -f lib/po/stamp-po | |
087e9cf7 | 118 | |
2b3e5acc JB |
119 | %build |
120 | %{__gettextize} | |
121 | %{__libtoolize} | |
1fb8e091 | 122 | %{__aclocal} -I m4 -I gl/m4 |
2b3e5acc JB |
123 | %{__autoconf} |
124 | %{__autoheader} | |
125 | %{__automake} | |
8fab264b KK |
126 | cd lib |
127 | %{__libtoolize} | |
128 | %{__aclocal} -I m4 -I gl/m4 | |
129 | %{__autoconf} | |
130 | %{__autoheader} | |
131 | %{__automake} | |
132 | cd - | |
2b3e5acc | 133 | %configure \ |
4c04a374 | 134 | --enable-gtk-doc \ |
2b3e5acc | 135 | %{!?with_ntlm:--disable-ntlm} \ |
085b2325 | 136 | %{!?with_static_libs:--disable-static} \ |
af579dc7 JB |
137 | %{?with_kerberos5:--enable-kerberos_v5} \ |
138 | %{!?with_gss:--with-gssapi-impl=mit} \ | |
4c04a374 JB |
139 | --with-html-dir=%{_gtkdocdir} \ |
140 | --with-libgcrypt | |
2b3e5acc JB |
141 | |
142 | %{__make} | |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
c664ca53 JB |
150 | # libgsasl for lib, gsasl for app |
151 | %find_lang %{name} --all-name | |
2b3e5acc | 152 | |
64e22326 ER |
153 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
154 | ||
2b3e5acc JB |
155 | %clean |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post | |
159 | /sbin/ldconfig | |
160 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
161 | ||
162 | %postun | |
163 | /sbin/ldconfig | |
164 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
165 | ||
166 | %files -f %{name}.lang | |
167 | %defattr(644,root,root,755) | |
dfa83798 | 168 | %doc AUTHORS ChangeLog NEWS README* THANKS |
2b3e5acc JB |
169 | %attr(755,root,root) %{_bindir}/gsasl |
170 | %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.* | |
171 | %{_mandir}/man1/gsasl.1* | |
172 | %{_infodir}/*.info* | |
173 | ||
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_libdir}/libgsasl.so | |
177 | %{_libdir}/libgsasl.la | |
94f220fe | 178 | %{_includedir}/gsasl*.h |
2b3e5acc JB |
179 | %{_pkgconfigdir}/libgsasl.pc |
180 | %{_mandir}/man3/*.3* | |
94f220fe | 181 | %{_gtkdocdir}/gsasl |
2b3e5acc | 182 | |
085b2325 | 183 | %if %{with static_libs} |
2b3e5acc JB |
184 | %files static |
185 | %defattr(644,root,root,755) | |
186 | %{_libdir}/libgsasl.a | |
085b2325 | 187 | %endif |