From 81dbcd86e81afb9a73efbf50dd46775b74ffa739 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 6 Aug 2024 11:52:22 +0200 Subject: [PATCH] Run annocheck as part of the build to catch issues early Related: RHEL-58736 --- libgcrypt.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libgcrypt.spec b/libgcrypt.spec index 9557e42..5d6befd 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -43,6 +43,7 @@ BuildRequires: texinfo BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: gnupg2 +BuildRequires: annobin-annocheck binutils %package devel Summary: Development files for the %{name} package @@ -96,6 +97,9 @@ make check # try in faked FIPS mode too LIBGCRYPT_FORCE_FIPS_MODE=1 make check +PROFILE=%{?dist} annocheck --ignore-unknown --verbose --profile=${PROFILE:1} $RPM_BUILD_ROOT%{gcrylibdir}/libgcrypt.so.20.5.0 + + # Add generation of HMAC checksums of the final stripped binaries %define libpath $RPM_BUILD_ROOT%{gcrylibdir}/%{gcrysoname}.?.? %define __spec_install_post \