]> git.pld-linux.org Git - packages/gsasl.git/blob - gsasl.spec
be9c02ae5a01d7b36ad0333b7d09dfd920c906df
[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:        4
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 %prep
127 %setup -q
128 %patch0 -p1
129 %patch1 -p1
130 %patch2 -p1
131
132 %{__rm} po/stamp-po
133
134 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
135 # (after gsasl or libtool change)
136 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac lib/configure.ac
137
138 %build
139 %{__gettextize}
140 %{__libtoolize}
141 %{__aclocal} -I m4 -I gl/m4
142 %{__autoconf}
143 %{__autoheader}
144 %{__automake}
145 cd lib
146 %{__libtoolize}
147 %{__aclocal} -I m4 -I gl/m4
148 %{__autoconf}
149 %{__autoheader}
150 %{__automake}
151 cd -
152 %configure \
153         --disable-silent-rules \
154         %{?with_apidocs:--enable-gtk-doc} \
155         %{!?with_ntlm:--disable-ntlm} \
156         %{!?with_static_libs:--disable-static} \
157         %{?with_kerberos5:--enable-kerberos_v5} \
158 %if %{with gss}
159         --with-gssapi-impl=gss
160 %else
161         %{?with_heimdal:--with-gssapi-impl=heimdal} \
162         %{!?with_heimdal:--with-gssapi-impl=no} \
163 %endif
164         --with-html-dir=%{_gtkdocdir} \
165         --with-libgcrypt
166
167 %{__make}
168
169 %install
170 rm -rf $RPM_BUILD_ROOT
171
172 %{__make} install \
173         DESTDIR=$RPM_BUILD_ROOT
174
175 # libgsasl for lib, gsasl for app
176 %find_lang %{name} --all-name
177
178 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
179
180 %clean
181 rm -rf $RPM_BUILD_ROOT
182
183 %post
184 /sbin/ldconfig
185 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
186
187 %postun
188 /sbin/ldconfig
189 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
190
191 %files -f %{name}.lang
192 %defattr(644,root,root,755)
193 %doc AUTHORS ChangeLog NEWS README* THANKS
194 %attr(755,root,root) %{_bindir}/gsasl
195 %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7
197 %{_mandir}/man1/gsasl.1*
198 %{_infodir}/gsasl.info*
199
200 %files devel
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libgsasl.so
203 %{_libdir}/libgsasl.la
204 %{_includedir}/gsasl*.h
205 %{_pkgconfigdir}/libgsasl.pc
206 %{_mandir}/man3/gsasl_*.3*
207 %{?with_apidocs:%{_gtkdocdir}/gsasl}
208
209 %if %{with static_libs}
210 %files static
211 %defattr(644,root,root,755)
212 %{_libdir}/libgsasl.a
213 %endif
This page took 0.059574 seconds and 2 git commands to generate.