Enable building for ppc64le

Don't remove slof.bin for ppc64le
This commit is contained in:
Eduard Abdullin 2025-04-09 15:38:41 +03:00 committed by eabdullin
parent 8a741c4808
commit cbe9dfa20d

View File

@ -54,9 +54,11 @@
%endif
%global tools_only 0
%if 0%{?almalinux} < 9
%ifarch %{power64}
%global tools_only 1
%endif
%endif
%ifnarch %{ix86} x86_64 aarch64
%global have_usbredir 0
@ -149,7 +151,7 @@ Obsoletes: %{name}-block-ssh <= %{epoch}:%{version} \
Summary: QEMU is a machine emulator and virtualizer
Name: qemu-kvm
Version: 9.1.0
Release: 15%{?rcrel}%{?dist}%{?cc_suffix}
Release: 15%{?rcrel}%{?dist}%{?cc_suffix}.alma.1
# Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped
# Epoch 15 used for RHEL 8
# Epoch 17 used for RHEL 9 (due to release versioning offset in RHEL 8.5)
@ -1219,7 +1221,9 @@ rm -rf %{buildroot}%{_datadir}/%{name}/openbios-ppc
rm -rf %{buildroot}%{_datadir}/%{name}/openbios-sparc32
rm -rf %{buildroot}%{_datadir}/%{name}/openbios-sparc64
# Provided by package SLOF
%ifnarch ppc64le
rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin
%endif
# Remove unpackaged files.
rm -rf %{buildroot}%{_datadir}/%{name}/palcode-clipper
@ -1474,6 +1478,10 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%{_libdir}/%{name}/accel-tcg-%{kvm_target}.so
%endif
%ifarch ppc64le
%{_datadir}/%{name}/slof.bin
%endif
%files device-display-virtio-gpu
%{_libdir}/%{name}/hw-display-virtio-gpu.so
@ -1531,6 +1539,10 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%endif
%changelog
* Wed Apr 09 2025 Eduard Abdullin <eabdullin@almalinux.org> - 17:9.1.0-15.alma.1
- Enable building for ppc64le
- Don't remove slof.bin for ppc64le
* Mon Feb 17 2025 Jon Maloy <jmaloy@redhat.com> - 9.1.0-15
- kvm-net-Fix-announce_self.patch [RHEL-73891]
- kvm-migration-Add-helper-to-get-target-runstate.patch [RHEL-54296 RHEL-78397]