]> git.pld-linux.org Git - packages/gsasl.git/blob - gsasl.spec
- updated to 1.6.0
[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  ntlm            # without NTLM mechanism
7 %bcond_without  static_libs     # don't build static libraries
8 #
9 Summary:        GNU SASL - implementation of the Simple Authentication and Security Layer
10 Summary(pl.UTF-8):      GNU SASL - implementacja Simple Authentication and Security Layer
11 Name:           gsasl
12 Version:        1.6.0
13 Release:        1
14 License:        LGPL v2.1+ (library), GPL v3+ (gsasl tool)
15 Group:          Libraries
16 Source0:        http://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
17 # Source0-md5:  5a4cc39af4ba8dbd8b66380baf3c3c7d
18 Patch0:         %{name}-info.patch
19 Patch1:         %{name}-heimdal-check.patch
20 URL:            http://www.gnu.org/software/gsasl/
21 BuildRequires:  autoconf >= 2.61
22 BuildRequires:  automake >= 1:1.10
23 BuildRequires:  gettext-devel >= 0.17
24 BuildRequires:  gnutls-devel >= 1.2.0
25 %{?with_gss:BuildRequires:      gss-devel >= 1.0.0}
26 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.1}
27 BuildRequires:  libgcrypt-devel >= 1.3.0
28 BuildRequires:  libidn-devel >= 0.1.0
29 %{?with_ntlm:BuildRequires:     libntlm-devel >= 0.3.5}
30 BuildRequires:  libtool >= 2:1.5
31 BuildRequires:  pkgconfig
32 # alternatively, gss or krb5 can be used for GSSAPI
33 %{!?with_gss:BuildRequires:     heimdal-devel}
34 %{?with_kerberos5:BuildRequires:        shishi-devel}
35 BuildRequires:  texinfo
36 Requires(post,postun):  /sbin/ldconfig
37 Requires:       libgcrypt >= 1.3.0
38 %{?with_ntlm:Requires:  libntlm >= 0.3.5}
39 Obsoletes:      libgsasl
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 GNU SASL is an implementation of the Simple Authentication and
44 Security Layer framework and a few common SASL mechanisms. SASL is
45 used by network servers (e.g., IMAP, SMTP) to request authentication
46 from clients, and in clients to authenticate against servers.
47
48 GNU SASL contains a library (`libgsasl'), a command line utility
49 (`gsasl') to access the library from the shell, and a manual. The
50 library includes support for the SASL framework (with authentication
51 functions and application data privacy and integrity functions) and at
52 least partial support for the CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS,
53 PLAIN, SECURID, DIGEST-MD5, LOGIN, NTLM and KERBEROS_V5 mechanisms.
54
55 The library is portable because it does not do network communication
56 by itself, but rather leaves it up to the calling application. The
57 library is flexible with regards to the authorization infrastructure
58 used, as it utilizes callbacks into the application to decide whether
59 an user is authorized or not.
60
61 %description -l pl.UTF-8
62 GNU SASL to implementacja szkieletu Simple Authentication and Security
63 Layer (prostej warstwy uwierzytelniania i bezpieczeństwa) oraz kilku
64 popularnych mechanizmów SASL. SASL jest używane przez serwery sieciowe
65 (np. IMAP i SMTP) do żądania uwierzytelnienia od klientów oraz w
66 klientach do uwierzytelniania względem serwerów.
67
68 GNU SASL zawiera bibliotekę (libgsasl), narzędzie działające z linii
69 poleceń (gsasl) pozwalające na korzystanie z biblioteki z poziomu
70 powłoki oraz dokumentację. Biblioteka ma obsługę szkieletu SASL (z
71 funkcjami uwierzytelniającymi oraz zapewniającymi prywatność i
72 spójność danych aplikacji) oraz przynajmniej częściową obsługę
73 mechanizmów CRAM-MD5, EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID,
74 DIGEST-MD5, LOGIN, NTLM oraz KERBEROS_V5.
75
76 Biblioteka jest przenośna, ponieważ sama nie korzysta z komunikacji
77 sieciowej, pozostawiając to wywołującej ją aplikacji. Biblioteka jest
78 elastyczna ze względu na używaną infrastrukturę uwierzytelniania,
79 ponieważ korzysta z callbacków w aplikacji przy decydowaniu, czy
80 użytkownik jest autoryzowany.
81
82 %package devel
83 Summary:        Header files for GNU SASL library
84 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GNU SASL
85 License:        LGPL v2.1+
86 Group:          Development/Libraries
87 Requires:       %{name} = %{version}-%{release}
88 %{?with_gss:Requires:   gss-devel >= 1.0.0}
89 Requires:       libgcrypt-devel >= 1.3.0
90 Requires:       libidn-devel >= 0.1.0
91 %{?with_ntlm:Requires:  libntlm-devel >= 0.3.5}
92 %{!?with_gss:Requires:  heimdal-devel}
93 %{?with_kerberos5:Requires:     shishi-devel}
94 Obsoletes:      libgsasl-devel
95
96 %description devel
97 Header files for GNU SASL library.
98
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe biblioteki GNU SASL.
101
102 %package static
103 Summary:        Static GNU SASL library
104 Summary(pl.UTF-8):      Statyczna biblioteka GNU SASL
105 License:        LGPL v2.1+
106 Group:          Development/Libraries
107 Requires:       %{name}-devel = %{version}-%{release}
108 Obsoletes:      libgsasl-static
109
110 %description static
111 Static GNU SASL library.
112
113 %description static -l pl.UTF-8
114 Statyczna biblioteka GNU SASL.
115
116 %prep
117 %setup -q
118 %patch0 -p1
119 %patch1 -p1
120
121 %{__rm} po/stamp-po
122
123 %build
124 %{__gettextize}
125 %{__libtoolize}
126 %{__aclocal} -I m4 -I gl/m4
127 %{__autoconf}
128 %{__autoheader}
129 %{__automake}
130 cd lib
131 %{__libtoolize}
132 %{__aclocal} -I m4 -I gl/m4
133 %{__autoconf}
134 %{__autoheader}
135 %{__automake}
136 cd -
137 %configure \
138         --disable-silent-rules \
139         %{?with_apidocs:--enable-gtk-doc} \
140         %{!?with_ntlm:--disable-ntlm} \
141         %{!?with_static_libs:--disable-static} \
142         %{?with_kerberos5:--enable-kerberos_v5} \
143         %{!?with_gss:--with-gssapi-impl=heimdal} \
144         --with-html-dir=%{_gtkdocdir} \
145         --with-libgcrypt
146
147 %{__make}
148
149 %install
150 rm -rf $RPM_BUILD_ROOT
151
152 %{__make} install \
153         DESTDIR=$RPM_BUILD_ROOT
154
155 # libgsasl for lib, gsasl for app
156 %find_lang %{name} --all-name
157
158 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
159
160 %clean
161 rm -rf $RPM_BUILD_ROOT
162
163 %post
164 /sbin/ldconfig
165 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
166
167 %postun
168 /sbin/ldconfig
169 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
170
171 %files -f %{name}.lang
172 %defattr(644,root,root,755)
173 %doc AUTHORS ChangeLog NEWS README* THANKS
174 %attr(755,root,root) %{_bindir}/gsasl
175 %attr(755,root,root) %{_libdir}/libgsasl.so.*.*.*
176 %attr(755,root,root) %ghost %{_libdir}/libgsasl.so.7
177 %{_mandir}/man1/gsasl.1*
178 %{_infodir}/gsasl.info*
179
180 %files devel
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libgsasl.so
183 %{_libdir}/libgsasl.la
184 %{_includedir}/gsasl*.h
185 %{_pkgconfigdir}/libgsasl.pc
186 %{_mandir}/man3/gsasl_*.3*
187 %{?with_apidocs:%{_gtkdocdir}/gsasl}
188
189 %if %{with static_libs}
190 %files static
191 %defattr(644,root,root,755)
192 %{_libdir}/libgsasl.a
193 %endif
This page took 0.074177 seconds and 4 git commands to generate.