From 319c24a31b745fe46c8afc035cf13997f9428742 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 14 Aug 2017 22:08:16 -0400 Subject: [PATCH] This one will actually work. Signed-off-by: Peter Jones --- ...ake-macros.pesign-error-in-kojibuilder-if-we-don-t-.patch | 3 ++- pesign.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/0029-Make-macros.pesign-error-in-kojibuilder-if-we-don-t-.patch b/0029-Make-macros.pesign-error-in-kojibuilder-if-we-don-t-.patch index efdd1ff..a8a4c79 100644 --- a/0029-Make-macros.pesign-error-in-kojibuilder-if-we-don-t-.patch +++ b/0029-Make-macros.pesign-error-in-kojibuilder-if-we-don-t-.patch @@ -12,11 +12,12 @@ diff --git a/src/macros.pesign b/src/macros.pesign index 22a3ee6..1665b4c 100644 --- a/src/macros.pesign +++ b/src/macros.pesign -@@ -43,6 +43,19 @@ +@@ -43,6 +43,20 @@ %{_pesign} -R ${sattrs}.sig -I ${sattrs} %{-i} \\\ --certdir ${nss} -c signer %{-o} \ rm -rf ${sattrs} ${sattrs}.sig ${nss} \ + elif [ "$(id -un)" == "mockbuild" ] && \\\ ++ [ "$(uname -m)" == "x86_64" ] && \\\ + grep -q ID=fedora /etc/os-release && \\\ + ! [ -S /var/run/pesign/socket ] && \\\ + [ "%{vendor}" == "Fedora Project" ]; then \ diff --git a/pesign.spec b/pesign.spec index 868692a..615c53d 100644 --- a/pesign.spec +++ b/pesign.spec @@ -3,7 +3,7 @@ Summary: Signing utility for UEFI binaries Name: pesign Version: 0.112 -Release: 17%{?dist} +Release: 18%{?dist} Group: Development/System License: GPLv2 URL: https://github.com/vathpela/pesign @@ -165,6 +165,9 @@ exit 0 %{python3_sitelib}/mockbuild/plugins/pesign.* %changelog +* Mon Aug 14 2017 Peter Jones - 0.112-18 +- This one will actually work. + * Mon Aug 14 2017 Peter Jones - 0.112-17 - This might do it. Maybe.