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