This one will actually work.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2017-08-14 22:08:16 -04:00
parent bb29ff6d37
commit 319c24a31b
2 changed files with 6 additions and 2 deletions

View File

@ -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 \

View File

@ -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 <pjones@redhat.com> - 0.112-18
- This one will actually work.
* Mon Aug 14 2017 Peter Jones <pjones@redhat.com> - 0.112-17
- This might do it. Maybe.