]> git.pld-linux.org Git - packages/gsasl.git/blame - gsasl.spec
- separated -apidocs, drop .la file; release 5
[packages/gsasl.git] / gsasl.spec
CommitLineData
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#
10Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
978932ce 11Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
2b3e5acc 12Name: gsasl
a169840b 13Version: 1.8.0
ba43a1a2 14Release: 5
642368b4 15License: LGPL v2.1+ (library), GPL v3+ (gsasl tool)
2b3e5acc 16Group: Libraries
14b17873 17Source0: http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
a169840b 18# Source0-md5: 982fe54a20016aa46a871c084c990c36
2b3e5acc 19Patch0: %{name}-info.patch
c54abee7 20Patch1: %{name}-heimdal-check.patch
5c01684b 21Patch2: %{name}-link.patch
2b3e5acc 22URL: http://www.gnu.org/software/gsasl/
af579dc7
JB
23BuildRequires: autoconf >= 2.61
24BuildRequires: automake >= 1:1.10
a6708f5e 25BuildRequires: docbook-dtd412-xml
26eba101 26BuildRequires: gettext-tools >= 0.18.1
e106a2d9 27BuildRequires: 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 32BuildRequires: libgcrypt-devel >= 1.3.0
2b3e5acc 33BuildRequires: libidn-devel >= 0.1.0
94f220fe 34%{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
dfa83798 35BuildRequires: libtool >= 2:1.5
085b2325 36BuildRequires: 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
42BuildRequires: texinfo
43Requires(post,postun): /sbin/ldconfig
51034332 44Requires: libgcrypt >= 1.3.0
94f220fe 45%{?with_ntlm:Requires: libntlm >= 0.3.5}
2b3e5acc
JB
46Obsoletes: libgsasl
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50GNU SASL is an implementation of the Simple Authentication and
51Security Layer framework and a few common SASL mechanisms. SASL is
52used by network servers (e.g., IMAP, SMTP) to request authentication
53from clients, and in clients to authenticate against servers.
54
55GNU SASL contains a library (`libgsasl'), a command line utility
56(`gsasl') to access the library from the shell, and a manual. The
57library includes support for the SASL framework (with authentication
58functions and application data privacy and integrity functions) and at
59least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
60PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
61
62The library is portable because it does not do network communication
63by itself, but rather leaves it up to the calling application. The
64library is flexible with regards to the authorization infrastructure
65used, as it utilizes callbacks into the application to decide whether
66an user is authorized or not.
67
1b095fd3 68%description -l pl.UTF-8
2b3e5acc 69GNU SASL to implementacja szkieletu Simple Authentication and Security
1b095fd3
JR
70Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
71popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
72(np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
73klientach do uwierzytelniania względem serwerów.
2b3e5acc 74
1b095fd3
JR
75GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
76poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
77powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
78funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
79spójność danych aplikacji) oraz przynajmniej częściową obsługę
80mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
2b3e5acc
JB
81DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
82
1b095fd3
JR
83Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
84sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
85elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
86ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
87użytkownik jest autoryzowany.
2b3e5acc
JB
88
89%package devel
90Summary: Header files for GNU SASL library
978932ce 91Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
642368b4 92License: LGPL v2.1+
2b3e5acc 93Group: Development/Libraries
7f92ea00 94Requires: %{name} = %{version}-%{release}
6ea49479
JK
95%if %{with gss}
96Requires: gss-devel >= 1.0.0
97%else
98%{?with_heimdal:Requires: heimdal-devel}
99%endif
51034332 100Requires: libgcrypt-devel >= 1.3.0
2b3e5acc 101Requires: libidn-devel >= 0.1.0
94f220fe 102%{?with_ntlm:Requires: libntlm-devel >= 0.3.5}
af579dc7 103%{?with_kerberos5:Requires: shishi-devel}
2b3e5acc
JB
104Obsoletes: libgsasl-devel
105
106%description devel
107Header files for GNU SASL library.
108
1b095fd3
JR
109%description devel -l pl.UTF-8
110Pliki nagłówkowe biblioteki GNU SASL.
2b3e5acc
JB
111
112%package static
113Summary: Static GNU SASL library
978932ce 114Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
642368b4 115License: LGPL v2.1+
2b3e5acc 116Group: Development/Libraries
7f92ea00 117Requires: %{name}-devel = %{version}-%{release}
2b3e5acc
JB
118Obsoletes: libgsasl-static
119
120%description static
121Static GNU SASL library.
122
1b095fd3 123%description static -l pl.UTF-8
2b3e5acc
JB
124Statyczna biblioteka GNU SASL.
125
ba43a1a2
JB
126%package apidocs
127Summary: API documentation for GNU SASL library
128Summary(pl.UTF-8): Dokumentacja API biblioteki GNU SASL
129Group: Documentation
130Conflicts: gsasl-devel < 1.8.0-5
131
132%description apidocs
133API documentation for GNU SASL library.
134
135%description apidocs -l pl.UTF-8
136Dokumentacja 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
159cd lib
160%{__libtoolize}
161%{__aclocal} -I m4 -I gl/m4
162%{__autoconf}
163%{__autoheader}
164%{__automake}
165cd -
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
184rm -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
195rm -f $RPM_BUILD_ROOT%{_infodir}/dir
196
2b3e5acc
JB
197%clean
198rm -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
This page took 0.094766 seconds and 4 git commands to generate.