File calculate-fips-checksum-after-build.patch of Package libgcrypt.2574

From 4e57e2b239f727d39225bc5ac8cb2a5ff4916a55 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Wed, 24 Sep 2014 18:05:29 +0200
Subject: [PATCH] calculate fips checksum after build

---
 src/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index a6d7cbf..8baa863 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -156,3 +156,5 @@ uninstall-local: uninstall-def-file
 #	./hmac256 "What am I, a doctor or a moonshuttle conductor?" \
 #          < $(DESTDIR)$(libdir)/libgcrypt.so.11.5.0 \
 #          > $(DESTDIR)$(libdir)/.libgcrypt.so.11.5.0.hmac
+all-local: libgcrypt.la
+	. $(builddir)/libgcrypt.la && fipshmac $(builddir)/.libs/$$dlname || true
-- 
2.1.0