]> git.pld-linux.org Git - packages/gsasl.git/blame - gsasl.spec
- unconditional noarch subpackages
[packages/gsasl.git] / gsasl.spec
CommitLineData
2b3e5acc
JB
1#
2# Conditional build:
3b604391
JB
3%bcond_without apidocs # API documentation
4%bcond_without kerberos5 # GSSAPI mechanism
5%bcond_with gss # GNU GSS as GSSAPI implementation
6%bcond_without heimdal # Heimdal as GSSAPI implementation (default)
7%bcond_with krb5 # MIT Kerberos as GSSAPI implementation
8%bcond_with shishi # KERBEROS_V5 mechanism (based on shishi, currently broken)
9%bcond_without ntlm # NTLM mechanism
10%bcond_without static_libs # static library
11
12%if %{with gss} || %{with krb5}
13%undefine with_heimdal
14%endif
15%if %{without kerberos5}
16%undefine with_gss
17%undefine with_heimdal
18%undefine with_krb5
19%endif
2b3e5acc 20Summary: GNU SASL - implementation of the Simple Authentication and Security Layer
978932ce 21Summary(pl.UTF-8): GNU SASL - implementacja Simple Authentication and Security Layer
2b3e5acc 22Name: gsasl
3b604391 23Version: 1.10.0
abf5c2ee 24Release: 1
642368b4 25License: LGPL v2.1+ (library), GPL v3+ (gsasl tool)
2b3e5acc 26Group: Libraries
3b604391
JB
27Source0: https://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
28# Source0-md5: 70918edd489eabceb622945940871348
2b3e5acc 29Patch0: %{name}-info.patch
5c01684b 30Patch2: %{name}-link.patch
2b3e5acc 31URL: http://www.gnu.org/software/gsasl/
3b604391
JB
32BuildRequires: autoconf >= 2.64
33BuildRequires: automake >= 1:1.13
a6708f5e 34BuildRequires: docbook-dtd412-xml
3b604391
JB
35BuildRequires: gettext-tools >= 0.19.8
36BuildRequires: gnutls-devel >= 3.4
c54abee7 37%{?with_gss:BuildRequires: gss-devel >= 1.0.0}
7549bb32 38%{?with_apidocs:BuildRequires: gtk-doc >= 1.1}
3b604391 39%{?with_heimdal:BuildRequires: heimdal-devel}
dbac61b3 40%{!?with_apidocs:BuildRequires: help2man}
3b604391 41%{?with_krb5:BuildRequires: krb5-devel}
5c01684b
JB
42# used by examples/saml20 (noinst only)
43#BuildRequires: lasso-devel >= 2.2.1
c88669c9 44BuildRequires: libgcrypt-devel >= 1.3.0
2b3e5acc 45BuildRequires: libidn-devel >= 0.1.0
94f220fe 46%{?with_ntlm:BuildRequires: libntlm-devel >= 0.3.5}
3b604391 47BuildRequires: libtool >= 2:2
085b2325 48BuildRequires: pkgconfig
3b604391
JB
49BuildRequires: rpmbuild(macros) >= 1.752
50%{?with_shishi:BuildRequires: shishi-devel}
2b3e5acc
JB
51BuildRequires: texinfo
52Requires(post,postun): /sbin/ldconfig
51034332 53Requires: libgcrypt >= 1.3.0
94f220fe 54%{?with_ntlm:Requires: libntlm >= 0.3.5}
2b3e5acc
JB
55Obsoletes: libgsasl
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58%description
59GNU SASL is an implementation of the Simple Authentication and
60Security Layer framework and a few common SASL mechanisms. SASL is
61used by network servers (e.g., IMAP, SMTP) to request authentication
62from clients, and in clients to authenticate against servers.
63
64GNU SASL contains a library (`libgsasl'), a command line utility
65(`gsasl') to access the library from the shell, and a manual. The
66library includes support for the SASL framework (with authentication
67functions and application data privacy and integrity functions) and at
68least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
69PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
70
71The library is portable because it does not do network communication
72by itself, but rather leaves it up to the calling application. The
73library is flexible with regards to the authorization infrastructure
74used, as it utilizes callbacks into the application to decide whether
75an user is authorized or not.
76
1b095fd3 77%description -l pl.UTF-8
2b3e5acc 78GNU SASL to implementacja szkieletu Simple Authentication and Security
1b095fd3
JR
79Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
80popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
81(np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
82klientach do uwierzytelniania względem serwerów.
2b3e5acc 83
1b095fd3
JR
84GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
85poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
86powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
87funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
88spójność danych aplikacji) oraz przynajmniej częściową obsługę
89mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
2b3e5acc
JB
90DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
91
1b095fd3
JR
92Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
93sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
94elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
95ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
96użytkownik jest autoryzowany.
2b3e5acc
JB
97
98%package devel
99Summary: Header files for GNU SASL library
978932ce 100Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNU SASL
642368b4 101License: LGPL v2.1+
2b3e5acc 102Group: Development/Libraries
7f92ea00 103Requires: %{name} = %{version}-%{release}
6ea49479
JK
104%if %{with gss}
105Requires: gss-devel >= 1.0.0
106%else
107%{?with_heimdal:Requires: heimdal-devel}
108%endif
51034332 109Requires: libgcrypt-devel >= 1.3.0
2b3e5acc 110Requires: libidn-devel >= 0.1.0
94f220fe 111%{?with_ntlm:Requires: libntlm-devel >= 0.3.5}
3b604391 112%{?with_shishi:Requires: shishi-devel}
2b3e5acc
JB
113Obsoletes: libgsasl-devel
114
115%description devel
116Header files for GNU SASL library.
117
1b095fd3
JR
118%description devel -l pl.UTF-8
119Pliki nagłówkowe biblioteki GNU SASL.
2b3e5acc
JB
120
121%package static
122Summary: Static GNU SASL library
978932ce 123Summary(pl.UTF-8): Statyczna biblioteka GNU SASL
642368b4 124License: LGPL v2.1+
2b3e5acc 125Group: Development/Libraries
7f92ea00 126Requires: %{name}-devel = %{version}-%{release}
2b3e5acc
JB
127Obsoletes: libgsasl-static
128
129%description static
130Static GNU SASL library.
131
1b095fd3 132%description static -l pl.UTF-8
2b3e5acc
JB
133Statyczna biblioteka GNU SASL.
134
ba43a1a2
JB
135%package apidocs
136Summary: API documentation for GNU SASL library
137Summary(pl.UTF-8): Dokumentacja API biblioteki GNU SASL
138Group: Documentation
139Conflicts: gsasl-devel < 1.8.0-5
c469db6b 140BuildArch: noarch
ba43a1a2
JB
141
142%description apidocs
143API documentation for GNU SASL library.
144
145%description apidocs -l pl.UTF-8
146Dokumentacja API biblioteki GNU SASL.
147
2b3e5acc
JB
148%prep
149%setup -q
150%patch0 -p1
5c01684b 151%patch2 -p1
087e9cf7 152
c54abee7 153%{__rm} po/stamp-po
ba43a1a2
JB
154# use system file (from gettext-tools)
155%{__rm} lib/m4/lib-link.m4
faeae7e9 156
2b3e5acc
JB
157%build
158%{__gettextize}
159%{__libtoolize}
abf5c2ee 160%{__aclocal} -I m4
2b3e5acc
JB
161%{__autoconf}
162%{__autoheader}
163%{__automake}
8fab264b
KK
164cd lib
165%{__libtoolize}
abf5c2ee 166%{__aclocal} -I m4
8fab264b
KK
167%{__autoconf}
168%{__autoheader}
169%{__automake}
3b604391 170cd ..
2b3e5acc 171%configure \
c54abee7 172 --disable-silent-rules \
7549bb32 173 %{?with_apidocs:--enable-gtk-doc} \
2b3e5acc 174 %{!?with_ntlm:--disable-ntlm} \
085b2325 175 %{!?with_static_libs:--disable-static} \
3b604391
JB
176 %{?with_shishi:--enable-kerberos_v5} \
177 --with-gssapi-impl=%{?with_gss:gss}%{?with_heimdal:heimdal}%{?with_krb5:mit}%{!?with_kerberos5:no} \
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)
3b604391 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.180907 seconds and 4 git commands to generate.