]> git.pld-linux.org Git - packages/gnutls.git/blobdiff - gnutls.spec
rel 1
[packages/gnutls.git] / gnutls.spec
index 3cfa4043ad74aeaf35a7c64ea6051a2a90ce7aa2..7fe6ca3563ef77a16dba0a67ade9049f2a456e9e 100644 (file)
@@ -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.6.15
-Release:       2
+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.6/%{name}-%{version}.tar.xz
-# Source0-md5: e80e0d20a8bb337a15fa63caa7f67006
+Source0:       ftp://ftp.gnutls.org/gcrypt/gnutls/v3.7/%{name}-%{version}.tar.xz
+# 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,21 +35,24 @@ 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
-BuildRequires: nettle-devel >= 3.3
+%{?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
 #BuildRequires:        opencdk-devel >= 0.6.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,8 +80,9 @@ 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.3
+Requires:      nettle >= 3.6
 #Requires:     opencdk >= 0.6.6
 Requires:      p11-kit >= 0.23.1
 %{?with_tpm:Requires:  trousers-libs >= 0.3.11}
@@ -94,7 +103,7 @@ Requires:    %{name}-libs = %{version}-%{release}
 Requires:      libidn2-devel
 Requires:      libtasn1-devel >= 4.11
 Requires:      libunistring-devel
-Requires:      nettle-devel >= 3.3
+Requires:      nettle-devel >= 3.6
 #Requires:     opencdk-devel >= 0.6.6
 Requires:      p11-kit-devel >= 0.23.1
 %{?with_tpm:Requires:  trousers-devel >= 0.3.11}
@@ -259,22 +268,24 @@ 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
 
-# docs build is broken with -jN
-%{__make} -j1
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.084155 seconds and 4 git commands to generate.