diff --git a/libkcapi.spec b/libkcapi.spec index 7266a85..f56896f 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -87,6 +87,15 @@ make install maninstall DESTDIR=%{buildroot} LIBDIR="%{_libdir}" %{?_smp_mflags} cd ../apps make install DESTDIR=%{buildroot} %{?_smp_mflags} BINDIR=/usr/%_lib/libkcapi/ +# Add generation of HMAC checksums of the final fipshmac fipscheck stripped binaries +%define __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipshmac $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipscheck \ + $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipshmac $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipshmac \ + %{nil} + %post -n libkcapi0 -p /sbin/ldconfig %postun -n libkcapi0 -p /sbin/ldconfig