From: Daniel P. Berrangé Date: Thu, 2 Oct 2025 14:11:39 +0000 (+0100) Subject: rpm: disable sanlock when QEMU is disabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fefde6175884ff65241ddb3afae2d903df37e20e;p=thirdparty%2Flibvirt.git rpm: disable sanlock when QEMU is disabled The meson.build rules skip sanlock when QEMU is disabled, so the RPM must not try to create the -sanlock sub-RPM. Reviewed-by: Martin Kletzander Signed-off-by: Daniel P. Berrangé --- diff --git a/libvirt.spec.in b/libvirt.spec.in index aff2707705..f96fcc9d7b 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -149,11 +149,11 @@ # Enable sanlock library for lock management with QEMU # Sanlock is available only on arches where kvm is available for RHEL %if 0%{?fedora} - %define with_sanlock 0%{!?_without_sanlock:1} + %define with_sanlock 0%{!?_without_sanlock:%{with_qemu}} %endif %if 0%{?rhel} %ifarch %{arches_qemu_kvm} - %define with_sanlock 0%{!?_without_sanlock:1} + %define with_sanlock 0%{!?_without_sanlock:%{with_qemu}} %endif %endif