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 <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
# 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