diff --git a/pesign-test-app.spec b/pesign-test-app.spec index b1a6d61..dba0c24 100644 --- a/pesign-test-app.spec +++ b/pesign-test-app.spec @@ -17,6 +17,8 @@ ExclusiveArch: i686 x86_64 ia64 aarch64 # Now this seems to be the other way %global pe_signing_token "'Fedora Signer (OpenSC Card)'" %global __pesign_token "'Fedora Signer (OpenSC Card)'" +%define pe_signing_token "'Fedora Signer (OpenSC Card)'" +%define __pesign_token "'Fedora Signer (OpenSC Card)'" %endif # there is no tarball at github, of course. To get this version do: @@ -34,6 +36,13 @@ deployments of new pesign versions into build infrastructure have succeeded. %setup -q %build +%ifarch x86_64 +# Now this seems to be the other way +%global pe_signing_token "'Fedora Signer (OpenSC Card)'" +%global __pesign_token "'Fedora Signer (OpenSC Card)'" +%define pe_signing_token "'Fedora Signer (OpenSC Card)'" +%define __pesign_token "'Fedora Signer (OpenSC Card)'" +%endif make LIBDIR=%{_libdir} DATADIR=%{_datadir} cp %{name}.efi %{name}-unsigned.efi %pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi