X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=gnutls.spec;h=7fe6ca3563ef77a16dba0a67ade9049f2a456e9e;hb=ec80b5c5096db77dd0b48adf9f99b2dee76d7678;hp=c1335594dea3784b21ac9c61bd8c64ed5d14be15;hpb=f95a4037e89f65a451f33805bc8865fe234a269c;p=packages%2Fgnutls.git diff --git a/gnutls.spec b/gnutls.spec index c133559..7fe6ca3 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -3,26 +3,31 @@ %bcond_without dane # libdane (DANE with DNSSEC certificate verification) %bcond_without openssl # libgnutls-openssl compatibility library %bcond_without tpm # TPM support in gnutls +%bcond_without tpm2 # TPM2 support in gnutls %bcond_without static_libs # static libraries %bcond_without doc # do not generate documentation %bcond_without guile # Guile binding -# +%bcond_with af_alg # Linux kernel AF_ALG based acceleration +%bcond_with ktls # Kernel TLS support + +%if %{with tpm2} +%undefine with_tpm +%endif + Summary: The GNU Transport Layer Security Library Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security) Name: gnutls -Version: 3.7.1 +Version: 3.7.3 Release: 1 License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools) Group: Libraries Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.7/%{name}-%{version}.tar.xz -# Source0-md5: 278e1f50d79cd13727733adbf01fde8f +# Source0-md5: 3723d8fee66c5d45d780ca64c089ed23 Patch0: %{name}-info.patch Patch1: %{name}-link.patch Patch2: %{name}-pl.po-update.patch URL: https://www.gnutls.org/ BuildRequires: autoconf >= 2.63 -BuildRequires: autogen >= 5.16 -BuildRequires: autogen-devel >= 5.16 BuildRequires: automake >= 1:1.12.2 BuildRequires: gcc >= 5:3.2 BuildRequires: gettext-tools >= 0.19 @@ -30,10 +35,12 @@ BuildRequires: gmp-devel %{?with_doc:BuildRequires: gtk-doc >= 1.14} %{?with_guile:BuildRequires: guile-devel >= 5:2.2.0} BuildRequires: libidn2-devel >= 2.0.0 +%{?with_af_alg:BuildRequires: libkcapi-devel >= 1.3.0} BuildRequires: libstdc++-devel BuildRequires: libtasn1-devel >= 4.11 BuildRequires: libunistring-devel BuildRequires: libtool >= 2:2 +%{?with_ktls:BuildRequires: linux-libc-headers >= 7:4.13} BuildRequires: nettle-devel >= 3.6 # miniopencdk is included in sources and currently maintained # as part of gnutls, not external package @@ -41,10 +48,11 @@ BuildRequires: nettle-devel >= 3.6 BuildRequires: p11-kit-devel >= 0.23.1 BuildRequires: pkgconfig BuildRequires: readline-devel -BuildRequires: rpmbuild(macros) >= 1.383 +BuildRequires: rpmbuild(macros) >= 1.527 BuildRequires: sed >= 4.0 BuildRequires: tar >= 1:1.22 %{?with_doc:BuildRequires: texinfo >= 4.8} +%{?with_tpm2:BuildRequires: tpm2-tss-devel} %{?with_tpm:BuildRequires: trousers-devel >= 0.3.11} %{?with_dane:BuildRequires: unbound-devel} BuildRequires: xz @@ -72,6 +80,7 @@ Summary: GnuTLS shared libraries Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS Group: Libraries Requires: libidn2 >= 2.0.0 +%{?with_af_alg:Requires: libkcapi >= 1.3.0} Requires: libtasn1 >= 4.11 Requires: nettle >= 3.6 #Requires: opencdk >= 0.6.6 @@ -259,18 +268,21 @@ Wiązania Guile do GnuTLS. %build %{__libtoolize} -%{__aclocal} -I m4 -I src/libopts/m4 -I src/gl/m4 -I lib/unistring/m4 +%{__aclocal} -I m4 -I src/gl/m4 -I lib/unistring/m4 %{__autoconf} %{__autoheader} %{__automake} %configure \ + %{?with_af_alg:--enable-afalg} \ %{!?with_doc:--disable-doc} \ %{!?with_guile:--disable-guile} \ + %{__enable_disable ktls} \ %{?with_openssl:--enable-openssl-compatibility} \ --disable-silent-rules \ %{?with_static_libs:--enable-static} \ --with-default-trust-store-file=/etc/certs/ca-certificates.crt \ %{!?with_tpm:--without-tpm} \ + %{__with_without tpm2} \ --with-trousers-lib=%{_libdir}/libtspi.so.1 %{__make}