Blame SOURCES/0005-Allow-aarch64-in-the-rhel-build-macros.patch

b8b9f4
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a8c91d
From: "d.marlin" <dmarlin@redhat.com>
a8c91d
Date: Wed, 27 Aug 2014 16:26:45 -0400
b8b9f4
Subject: [PATCH] Allow aarch64 in the rhel build macros.
a8c91d
a8c91d
Signed-off-by: Peter Jones <pjones@redhat.com>
a8c91d
---
a8c91d
 src/macros.pesign | 4 +++-
a8c91d
 1 file changed, 3 insertions(+), 1 deletion(-)
a8c91d
a8c91d
diff --git a/src/macros.pesign b/src/macros.pesign
a8c91d
index 7faa4a1..39374ce 100644
a8c91d
--- a/src/macros.pesign
a8c91d
+++ b/src/macros.pesign
a8c91d
@@ -21,7 +21,9 @@
a8c91d
 # -a <input ca cert filename>		# rhel only
a8c91d
 # -s 					# perform signing
a8c91d
 %pesign(i:o:C:e:c:n:a:s)						\
a8c91d
-  if [ -x %{_pesign} -a "%{_target_cpu}" == "x86_64" ]; then		\
a8c91d
+  if [ -x %{_pesign} ] &&  						\\\
a8c91d
+       [ "%{_target_cpu}" == "x86_64" -o 				\\\
a8c91d
+         "%{_target_cpu}" == "aarch64" ]; then				\
a8c91d
     if [ "0%{?rhel}" -ge "7" -a -f /usr/bin/rpm-sign ]; then		\
a8c91d
       nss=$(mktemp -p $PWD -d)						\
a8c91d
       echo > ${nss}/pwfile						\