From b20b83c1a27cde279ca664e16ba01be30f2e4251 Mon Sep 17 00:00:00 2001 From: Daniel P. Berrangé Date: Sep 01 2021 17:40:04 +0000 Subject: Fix qemu packaging conditionals for ELN builds In ELN builds %{rhel} is defined and %{fedora} is unset This causes EDK to assume the RHEL qemu-kvm packaging scheme. This is invalid for ELN, however, because it still follows the Fedora packaging scheme for QEMU. Signed-off-by: Daniel P. Berrangé --- diff --git a/edk2.spec b/edk2.spec index 262261b..76d68d8 100644 --- a/edk2.spec +++ b/edk2.spec @@ -18,10 +18,15 @@ ExclusiveArch: x86_64 aarch64 %define qosb_testing 1 %endif -%if %{defined rhel} +%if %{defined fedora} || %{defined eln} +%define qemu_package qemu-system-x86-core +%define qemu_binary /usr/bin/qemu-system-x86_64 +%else %define qemu_package qemu-kvm-core >= 2.12.0-89 %define qemu_binary /usr/libexec/qemu-kvm +%endif +%if %{defined rhel} %define build_ovmf 0 %define build_aarch64 0 %ifarch x86_64 @@ -31,8 +36,6 @@ ExclusiveArch: x86_64 aarch64 %define build_aarch64 1 %endif %else -%define qemu_package qemu-system-x86-core -%define qemu_binary /usr/bin/qemu-system-x86_64 %define build_ovmf 1 %define build_aarch64 1 %endif @@ -44,7 +47,7 @@ ExclusiveArch: x86_64 aarch64 Name: edk2 Version: %{GITDATE}git%{GITCOMMIT} -Release: 2%{?dist} +Release: 3%{?dist} Summary: UEFI firmware for 64-bit virtual machines License: BSD-2-Clause-Patent and OpenSSL and MIT URL: http://www.tianocore.org @@ -740,6 +743,9 @@ KERNEL_IMG=$(rpm -q -l $KERNEL_PKG | egrep '^/lib/modules/[^/]+/vmlinuz$') %changelog +* Wed Sep 1 2021 Daniel P. Berrangé - 20210527gite1999b264f1f-3 +- Fix qemu packaging conditionals for ELN builds + * Wed Jul 21 2021 Fedora Release Engineering - 20210527gite1999b264f1f-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild