# Conditional build:
%bcond_with gcrypt # use gcrypt crypto backend instead of nettle (withdrawn?)
%bcond_without dane # libdane (DANE with DNSSEC certificate verification)
-%bcond_with tpm # TPM support in gnutls (cannot be used with GPL programs)
+%bcond_without tpm # TPM support in gnutls
#
Summary: The GNU Transport Layer Security Library
Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
Name: gnutls
-Version: 3.2.1
+Version: 3.2.7
Release: 1
-License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
+License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
Group: Libraries
Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/%{name}-%{version}.tar.lz
-# Source0-md5: 157386119a90f458fecf8303584f9417
+# Source0-md5: f4907fd84ca016b0f8974b068ace9055
Patch0: %{name}-info.patch
Patch1: %{name}-link.patch
-Patch2: %{name}-pl.po-update.patch
URL: http://www.gnutls.org/
BuildRequires: autoconf >= 2.61
-BuildRequires: automake >= 1:1.11.3
+BuildRequires: automake >= 1:1.12.2
BuildRequires: gettext-devel >= 0.18
BuildRequires: gtk-doc >= 1.1
BuildRequires: guile-devel >= 5:2.0
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
BuildRequires: texinfo >= 4.8
-%{?with_tpm:BuildRequires: trousers-devel}
+%{?with_tpm:BuildRequires: trousers-devel >= 0.3.11}
%{?with_dane:BuildRequires: unbound-devel}
BuildRequires: zlib-devel
Requires: %{name}-libs = %{version}-%{release}
%{!?with_gcrypt:Requires: nettle >= 2.7}
#Requires: opencdk >= 0.6.6
Requires: p11-kit >= 0.11
+%{?with_tpm:Requires: trousers-libs >= 0.3.11}
Conflicts: gnutls < 3.2.0
%description libs
%{!?with_gcrypt:Requires: nettle-devel >= 2.7}
#Requires: opencdk-devel >= 0.6.6
Requires: p11-kit-devel >= 0.11
-%{?with_tpm:Requires: trousers-devel}
+%{?with_tpm:Requires: trousers-devel >= 0.3.11}
Requires: zlib-devel
%description devel
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%{__rm} po/stamp-po
-# remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
-# (after gnutls or libtool change)
-%{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
-
%build
%{__libtoolize}
%{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
--enable-heartbeat-support \
--with-default-trust-store-file=/etc/certs/ca-certificates.crt \
%{?with_gcrypt:--with-libgcrypt} \
- %{?with_tpm:--with-tpm}
+ %{!?with_tpm:--without-tpm}
# docs build is broken with -jN
%{__make} -j1
%exclude %{_includedir}/gnutls/gnutlsxx.h
%{_pkgconfigdir}/gnutls.pc
%{_mandir}/man3/gnutls_*.3*
+%{_mandir}/man3/xssl_*.3*
%files static
%defattr(644,root,root,755)