diff --git a/gmp.spec b/gmp.spec index b8bafab..ac271e2 100644 --- a/gmp.spec +++ b/gmp.spec @@ -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