Blame SOURCES/0003-One-more-tweak-for-RHEL-signing-rules.patch

b8b9f4
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
1c5dd9
From: Peter Jones <pjones@redhat.com>
1c5dd9
Date: Tue, 29 Oct 2013 11:27:31 -0400
b8b9f4
Subject: [PATCH] One more tweak for RHEL signing rules.
1c5dd9
1c5dd9
It never ends.
1c5dd9
1c5dd9
Signed-off-by: Peter Jones <pjones@redhat.com>
1c5dd9
---
1c5dd9
 src/macros.pesign | 2 +-
1c5dd9
 1 file changed, 1 insertion(+), 1 deletion(-)
1c5dd9
1c5dd9
diff --git a/src/macros.pesign b/src/macros.pesign
1c5dd9
index 143ef8e..7faa4a1 100644
1c5dd9
--- a/src/macros.pesign
1c5dd9
+++ b/src/macros.pesign
1c5dd9
@@ -22,7 +22,7 @@
1c5dd9
 # -s 					# perform signing
1c5dd9
 %pesign(i:o:C:e:c:n:a:s)						\
1c5dd9
   if [ -x %{_pesign} -a "%{_target_cpu}" == "x86_64" ]; then		\
1c5dd9
-    if [ "0%{?rhel}" -ge "7" ]; then					\
1c5dd9
+    if [ "0%{?rhel}" -ge "7" -a -f /usr/bin/rpm-sign ]; then		\
1c5dd9
       nss=$(mktemp -p $PWD -d)						\
1c5dd9
       echo > ${nss}/pwfile						\
1c5dd9
       certutil -N -d ${nss} -f ${nss}/pwfile				\