This one will actually work.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
bb29ff6d37
commit
319c24a31b
|
@ -12,11 +12,12 @@ diff --git a/src/macros.pesign b/src/macros.pesign
|
||||||
index 22a3ee6..1665b4c 100644
|
index 22a3ee6..1665b4c 100644
|
||||||
--- a/src/macros.pesign
|
--- a/src/macros.pesign
|
||||||
+++ b/src/macros.pesign
|
+++ b/src/macros.pesign
|
||||||
@@ -43,6 +43,19 @@
|
@@ -43,6 +43,20 @@
|
||||||
%{_pesign} -R ${sattrs}.sig -I ${sattrs} %{-i} \\\
|
%{_pesign} -R ${sattrs}.sig -I ${sattrs} %{-i} \\\
|
||||||
--certdir ${nss} -c signer %{-o} \
|
--certdir ${nss} -c signer %{-o} \
|
||||||
rm -rf ${sattrs} ${sattrs}.sig ${nss} \
|
rm -rf ${sattrs} ${sattrs}.sig ${nss} \
|
||||||
+ elif [ "$(id -un)" == "mockbuild" ] && \\\
|
+ elif [ "$(id -un)" == "mockbuild" ] && \\\
|
||||||
|
+ [ "$(uname -m)" == "x86_64" ] && \\\
|
||||||
+ grep -q ID=fedora /etc/os-release && \\\
|
+ grep -q ID=fedora /etc/os-release && \\\
|
||||||
+ ! [ -S /var/run/pesign/socket ] && \\\
|
+ ! [ -S /var/run/pesign/socket ] && \\\
|
||||||
+ [ "%{vendor}" == "Fedora Project" ]; then \
|
+ [ "%{vendor}" == "Fedora Project" ]; then \
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Summary: Signing utility for UEFI binaries
|
Summary: Signing utility for UEFI binaries
|
||||||
Name: pesign
|
Name: pesign
|
||||||
Version: 0.112
|
Version: 0.112
|
||||||
Release: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
Group: Development/System
|
Group: Development/System
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vathpela/pesign
|
URL: https://github.com/vathpela/pesign
|
||||||
|
@ -165,6 +165,9 @@ exit 0
|
||||||
%{python3_sitelib}/mockbuild/plugins/pesign.*
|
%{python3_sitelib}/mockbuild/plugins/pesign.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 14 2017 Peter Jones <pjones@redhat.com> - 0.112-17
|
||||||
- This might do it. Maybe.
|
- This might do it. Maybe.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue