|
|
@ -1,7 +1,7 @@
|
|
|
|
Summary: Simple pesign test target
|
|
|
|
Summary: Simple pesign test target
|
|
|
|
Name: pesign-test-app
|
|
|
|
Name: pesign-test-app
|
|
|
|
Version: 5
|
|
|
|
Version: 5
|
|
|
|
Release: 19%{?dist}
|
|
|
|
Release: 20%{?dist}
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
|
URL: https://github.com/vathpela/pesign-test-app
|
|
|
|
URL: https://github.com/vathpela/pesign-test-app
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
@ -47,14 +47,16 @@ getfacl /run/pesign || :
|
|
|
|
ls -l /run/pesign/socket || :
|
|
|
|
ls -l /run/pesign/socket || :
|
|
|
|
getfacl /run/pesign/socket || :
|
|
|
|
getfacl /run/pesign/socket || :
|
|
|
|
|
|
|
|
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.0.efi
|
|
|
|
|
|
|
|
%define pe_signing_cert "/CN=fwupd-signer"
|
|
|
|
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.1.efi -n "/CN=fwupd-signer"
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \
|
|
|
|
make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \
|
|
|
|
install
|
|
|
|
install
|
|
|
|
mv %{name}-signed.efi %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
mv %{name}-signed*.efi %{buildroot}/%{_datadir}/%{name}-%{version}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
ls -la /var/run/pesign || :
|
|
|
|
ls -la /var/run/pesign || :
|
|
|
@ -70,9 +72,12 @@ pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | gr
|
|
|
|
%doc README COPYING
|
|
|
|
%doc README COPYING
|
|
|
|
%dir %{_datadir}/%{name}-%{version}
|
|
|
|
%dir %{_datadir}/%{name}-%{version}
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}.efi
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}.efi
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}-signed*.efi
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Peter Jones <pjones@redhat.com> - 5-20
|
|
|
|
|
|
|
|
- Test builders again
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 07 2020 Peter Jones <pjones@redhat.com> - 5-19
|
|
|
|
* Tue Jul 07 2020 Peter Jones <pjones@redhat.com> - 5-19
|
|
|
|
- Make sure this still works with pesign-113-8~1.fc33
|
|
|
|
- Make sure this still works with pesign-113-8~1.fc33
|
|
|
|
|
|
|
|
|
|
|
|