Disable HMAC in RHEL 9+

RHEL 9 and later include nettle in the gnutls module boundary, and HMAC
is calculated there with its own tool.
This commit is contained in:
Yaakov Selkowitz 2024-02-15 13:42:45 -05:00
parent c4a2f2e810
commit 63bf453dc6

View File

@ -29,7 +29,11 @@ BuildRequires: git
#autoreconf on arm needs:
BuildRequires: perl-Carp
# Generate the .hmac checksum unless --without fips is used
# RHEL 9 and later include gmp in the gnutls module boundary,
# and HMAC is calculated there with its own tool.
%if %{defined rhel} && 0%{?rhel} < 9
%bcond_without fips
%endif
%if %{with fips}
BuildRequires: fipscheck
%endif