From 778c959c06478e74cf4563cb0884fcb83fb8dad7 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 2 Feb 2022 13:00:26 +0100 Subject: [PATCH] Build with TPM2 support Related: #2033220 Signed-off-by: Daiki Ueno Co-authored-by: Alexander Sosedkin --- gnutls.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnutls.spec b/gnutls.spec index 111d39f..6cc7041 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -1,5 +1,5 @@ Version: 3.7.3 -Release: 1%{?dist} +Release: 2%{?dist} Patch1: gnutls-3.6.7-no-now-guile.patch Patch2: gnutls-3.2.7-rpath.patch Patch3: gnutls-3.7.2-enable-intel-cet.patch @@ -14,6 +14,7 @@ Patch4: gnutls-3.7.2-no-explicit-init.patch %bcond_without fips %endif %bcond_with tpm12 +%bcond_without tpm2 %bcond_with gost Summary: A TLS protocol implementation @@ -29,6 +30,9 @@ BuildRequires: nettle-devel >= 3.5.1 %if %{with tpm12} BuildRequires: trousers-devel >= 0.3.11.2 %endif +%if %{with tpm2} +BuildRequires: tpm2-tss-devel >= 3.0.3 +%endif BuildRequires: libidn2-devel BuildRequires: libunistring-devel BuildRequires: net-tools, datefudge, softhsm, gcc, gcc-c++ @@ -199,6 +203,11 @@ export GUILD --with-trousers-lib=%{_libdir}/libtspi.so.1 \ %else --without-tpm \ +%endif +%if %{with tpm2} + --with-tpm2 \ +%else + --without-tpm2 \ %endif --htmldir=%{_docdir}/manual \ %if %{with guile} @@ -300,6 +309,9 @@ make check %{?_smp_mflags} GNUTLS_SYSTEM_PRIORITY_FILE=/dev/null %endif %changelog +* Wed Feb 2 2022 Daiki Ueno - 3.7.3-2 +- Build with TPM2 support, patch from Alexander Sosedkin (#2033220) + * Tue Jan 18 2022 Daiki Ueno - 3.7.3-1 - Update to gnutls 3.7.3 (#2033220)