]> git.pld-linux.org Git - packages/gsasl.git/blob - gsasl.spec
- separated -apidocs, drop .la file; release 5
[packages/gsasl.git] / gsasl.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_with     gss             # use gss instead of Heimdal as GSSAPI implementation
5 %bcond_with     kerberos5       # with KERBEROS_V5 mechanism (based on shishi, currently broken)
6 %bcond_without  heimdal         # do not use Heimdal either
7 %bcond_without  ntlm            # without NTLM mechanism
8 %bcond_without  static_libs     # don't build static libraries
9 #
10 Summary:        GNU SASL - implementation of the Simple Authentication and Security Layer
11 Summary(pl.UTF-8):      GNU SASL - implementacja Simple Authentication and Security Layer
12 Name:           gsasl
13 Version:        1.8.0
14 Release:        5
15 License:        LGPL v2.1+ (library), GPL v3+ (gsasl tool)
16 Group:          Libraries
17 Source0:        http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
18 # Source0-md5:  982fe54a20016aa46a871c084c990c36
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-heimdal-check.patch
21 Patch2:         %{name}-link.patch
22 URL:            http://www.gnu.org/software/gsasl/
23 BuildRequires:  autoconf >= 2.61
24 BuildRequires:  automake >= 1:1.10
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  gettext-tools >= 0.18.1
27 BuildRequires:  gnutls-devel >= 1.2.0
28 %{?with_gss:BuildRequires:      gss-devel >= 1.0.0}
29 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.1}
30 # used by examples/saml20 (noinst only)
31 #BuildRequires: lasso-devel >= 2.2.1
32 BuildRequires:  libgcrypt-devel >= 1.3.0
33 BuildRequires:  libidn-devel >= 0.1.0
34 %{?with_ntlm:BuildRequires:     libntlm-devel >= 0.3.5}
35 BuildRequires:  libtool >= 2:1.5
36 BuildRequires:  pkgconfig
37 %if %{without gss}
38 # alternatively, gss or krb5 can be used for GSSAPI
39 %{?with_heimdal:BuildRequires:  heimdal-devel}
40 %endif
41 %{?with_kerberos5:BuildRequires:        shishi-devel}
42 BuildRequires:  texinfo
43 Requires(post,postun):  /sbin/ldconfig
44 Requires:       libgcrypt >= 1.3.0
45 %{?with_ntlm:Requires:  libntlm >= 0.3.5}
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
68 %description -l pl.UTF-8
69 GNU SASL to implementacja szkieletu Simple Authentication and Security
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.
74
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,
81 DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
82
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.
88
89 %package devel
90 Summary:        Header files for GNU SASL library
91 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GNU SASL
92 License:        LGPL v2.1+
93 Group:          Development/Libraries
94 Requires:       %{name} = %{version}-%{release}
95 %if %{with gss}
96 Requires:       gss-devel >= 1.0.0
97 %else
98 %{?with_heimdal:Requires:       heimdal-devel}
99 %endif
100 Requires:       libgcrypt-devel >= 1.3.0
101 Requires:       libidn-devel >= 0.1.0
102 %{?with_ntlm:Requires:  libntlm-devel >= 0.3.5}
103 %{?with_kerberos5:Requires:     shishi-devel}
104 Obsoletes:      libgsasl-devel
105
106 %description devel
107 Header files for GNU SASL library.
108
109 %description devel -l pl.UTF-8
110 Pliki nagłówkowe biblioteki GNU SASL.
111
112 %package static
113 Summary:        Static GNU SASL library
114 Summary(pl.UTF-8):      Statyczna biblioteka GNU SASL
115 License:        LGPL v2.1+
116 Group:          Development/Libraries
117 Requires:       %{name}-devel = %{version}-%{release}
118 Obsoletes:      libgsasl-static
119
120 %description static
121 Static GNU SASL library.
122
123 %description static -l pl.UTF-8
124 Statyczna biblioteka GNU SASL.
125
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
138 %prep
139 %setup -q
140 %patch0 -p1
141 %patch1 -p1
142 %patch2 -p1
143
144 %{__rm} po/stamp-po
145 # use system file (from gettext-tools)
146 %{__rm} lib/m4/lib-link.m4
147
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
152 %build
153 %{__gettextize}
154 %{__libtoolize}
155 %{__aclocal} -I m4 -I gl/m4
156 %{__autoconf}
157 %{__autoheader}
158 %{__automake}
159 cd lib
160 %{__libtoolize}
161 %{__aclocal} -I m4 -I gl/m4
162 %{__autoconf}
163 %{__autoheader}
164 %{__automake}
165 cd -
166 %configure \
167         --disable-silent-rules \
168         %{?with_apidocs:--enable-gtk-doc} \
169         %{!?with_ntlm:--disable-ntlm} \
170         %{!?with_static_libs:--disable-static} \
171         %{?with_kerberos5:--enable-kerberos_v5} \
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
178         --with-html-dir=%{_gtkdocdir} \
179         --with-libgcrypt
180
181 %{__make}
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185
186 %{__make} install \
187         DESTDIR=$RPM_BUILD_ROOT
188
189 # obsoleted by pkg-config
190 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgsasl.la
191
192 # libgsasl for lib, gsasl for app
193 %find_lang %{name} --all-name
194
195 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
196
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)
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*
216
217 %files devel
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*
223
224 %if %{with static_libs}
225 %files static
226 %defattr(644,root,root,755)
227 %{_libdir}/libgsasl.a
228 %endif
229
230 %if %{with apidocs}
231 %files apidocs
232 %defattr(644,root,root,755)
233 %{_gtkdocdir}/gsasl
234 %endif
This page took 0.099863 seconds and 3 git commands to generate.