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