]> git.pld-linux.org Git - packages/gsasl.git/blame - gsasl.spec
- updated to 0.2.16
[packages/gsasl.git] / gsasl.spec
CommitLineData
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#
8Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
978932ce 9Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
2b3e5acc 10Name: gsasl
af579dc7
JB
11Version: 0.2.16
12Release: 1
2b3e5acc
JB
13License: GPL
14Group: Libraries
15Source0: http://josefsson.org/gsasl/releases/%{name}-%{version}.tar.gz
af579dc7 16# Source0-md5: eb23cc53c7a176fa39c1c9ec7257b018
2b3e5acc 17Patch0: %{name}-info.patch
af579dc7 18Patch1: %{name}-pl.po-update.patch
2b3e5acc 19URL: http://www.gnu.org/software/gsasl/
af579dc7
JB
20BuildRequires: autoconf >= 2.61
21BuildRequires: automake >= 1:1.10
22BuildRequires: gettext-devel >= 0.16.1
e106a2d9 23BuildRequires: gnutls-devel >= 1.2.0
2b3e5acc 24%{?with_gss:BuildRequires: gss-devel >= 0.0.0}
c93a7c77 25BuildRequires: gtk-doc >= 1.1
2b3e5acc
JB
26BuildRequires: libgcrypt-devel >= 1.1.42
27BuildRequires: libidn-devel >= 0.1.0
94f220fe 28%{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
dfa83798 29BuildRequires: libtool >= 2:1.5
085b2325 30BuildRequires: 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
34BuildRequires: texinfo
35Requires(post,postun): /sbin/ldconfig
94f220fe 36%{?with_ntlm:Requires: libntlm >= 0.3.5}
2b3e5acc
JB
37Obsoletes: libgsasl
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41GNU SASL is an implementation of the Simple Authentication and
42Security Layer framework and a few common SASL mechanisms. SASL is
43used by network servers (e.g., IMAP, SMTP) to request authentication
44from clients, and in clients to authenticate against servers.
45
46GNU SASL contains a library (`libgsasl'), a command line utility
47(`gsasl') to access the library from the shell, and a manual. The
48library includes support for the SASL framework (with authentication
49functions and application data privacy and integrity functions) and at
50least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
51PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
52
53The library is portable because it does not do network communication
54by itself, but rather leaves it up to the calling application. The
55library is flexible with regards to the authorization infrastructure
56used, as it utilizes callbacks into the application to decide whether
57an user is authorized or not.
58
1b095fd3 59%description -l pl.UTF-8
2b3e5acc 60GNU SASL to implementacja szkieletu Simple Authentication and Security
1b095fd3
JR
61Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
62popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
63(np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
64klientach do uwierzytelniania względem serwerów.
2b3e5acc 65
1b095fd3
JR
66GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
67poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
68powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
69funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
70spójność danych aplikacji) oraz przynajmniej częściową obsługę
71mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
2b3e5acc
JB
72DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
73
1b095fd3
JR
74Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
75sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
76elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
77ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
78użytkownik jest autoryzowany.
2b3e5acc
JB
79
80%package devel
81Summary: Header files for GNU SASL library
978932ce 82Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
2b3e5acc 83Group: Development/Libraries
7f92ea00 84Requires: %{name} = %{version}-%{release}
2b3e5acc
JB
85%{?with_gss:Requires: gss-devel >= 0.0.0}
86Requires: libgcrypt-devel >= 1.1.42
87Requires: 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
91Obsoletes: libgsasl-devel
92
93%description devel
94Header files for GNU SASL library.
95
1b095fd3
JR
96%description devel -l pl.UTF-8
97Pliki nagłówkowe biblioteki GNU SASL.
2b3e5acc
JB
98
99%package static
100Summary: Static GNU SASL library
978932ce 101Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
2b3e5acc 102Group: Development/Libraries
7f92ea00 103Requires: %{name}-devel = %{version}-%{release}
2b3e5acc
JB
104Obsoletes: libgsasl-static
105
106%description static
107Static GNU SASL library.
108
1b095fd3 109%description static -l pl.UTF-8
2b3e5acc
JB
110Statyczna biblioteka GNU SASL.
111
112%prep
113%setup -q
114%patch0 -p1
af579dc7
JB
115%patch1 -p1
116
117rm -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
126cd lib
127%{__libtoolize}
128%{__aclocal} -I m4 -I gl/m4
129%{__autoconf}
130%{__autoheader}
131%{__automake}
132cd -
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
145rm -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
153rm -f $RPM_BUILD_ROOT%{_infodir}/dir
154
2b3e5acc
JB
155%clean
156rm -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
This page took 0.120125 seconds and 4 git commands to generate.