|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
%trace
|
|
|
|
|
|
|
|
|
|
Summary: Simple pesign test target
|
|
|
|
|
Name: pesign-test-app
|
|
|
|
|
Version: 5
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Group: Development/System
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://github.com/vathpela/pesign-test-app
|
|
|
|
@ -30,6 +32,7 @@ deployments of new pesign versions into build infrastructure have succeeded.
|
|
|
|
|
%build
|
|
|
|
|
make LIBDIR=%{_libdir} DATADIR=%{_datadir}
|
|
|
|
|
cp %{name}.efi %{name}-unsigned.efi
|
|
|
|
|
%dump
|
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -40,6 +43,7 @@ make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \
|
|
|
|
|
mv %{name}-signed.efi %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
ls -la /var/run/pesign || :
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q "^Signing time: $(date +%%a\ %%b\ %%d,\ %%Y)$"
|
|
|
|
|
pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q '^The signer.s common name is Fedora Secure Boot Signer$'
|
|
|
|
@ -56,6 +60,9 @@ rm -rf %{buildroot}
|
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 14 2017 Peter Jones <pjones@redhat.com> - 5-5
|
|
|
|
|
- Try this again.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|