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