diff --git a/pesign-test-app.spec b/pesign-test-app.spec index f620073..a60b2a0 100644 --- a/pesign-test-app.spec +++ b/pesign-test-app.spec @@ -35,7 +35,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}/%{_libdir} make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \ install -%pesign -s -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}.efi -o %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi +cp %{name}.efi %{name}-unsigned.efi +%pesign -s -i %{name}-unsigned.efi -o %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi %clean rm -rf %{buildroot}