|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
Summary: Simple pesign test target
|
|
|
|
|
Name: pesign-test-app
|
|
|
|
|
Version: 0.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Group: Development/System
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://github.com/vathpela/pesign-test-app
|
|
|
|
@ -29,14 +29,19 @@ deployments of new pesign versions into build infrastructure have succeeded.
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make LIBDIR=%{_libdir} DATADIR=%{_datadir}
|
|
|
|
|
cp %{name}.efi %{name}-unsigned.efi
|
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
|
make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \
|
|
|
|
|
install
|
|
|
|
|
cp %{name}.efi %{name}-unsigned.efi
|
|
|
|
|
%pesign -s -i %{name}-unsigned.efi -o %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
|
mv %{name}-signed.efi %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
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$'
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -49,6 +54,9 @@ rm -rf %{buildroot}
|
|
|
|
|
%{_datadir}/%{name}-%{version}/%{name}-signed.efi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 22 2013 Peter Jones <pjones@redhat.com> - 0.4-2
|
|
|
|
|
- Add %%check
|
|
|
|
|
|
|
|
|
|
* Tue May 21 2013 Peter Jones <pjones@redhat.com> - 0.4-1
|
|
|
|
|
- Make it build on i686.
|
|
|
|
|
|
|
|
|
|