From: Eric Blake Date: Mon, 5 Dec 2011 17:37:33 +0000 (-0700) Subject: spec: fix sanlock dependency X-Git-Tag: v0.9.8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d336dbdb3359702b587bae603db1e49024a1df0a;p=thirdparty%2Flibvirt.git spec: fix sanlock dependency * libvirt.spec.in (with_sanlock): On RHEL, don't force sanlock on architectures where it isn't available. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index dc8ed756ae..97b811d483 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -174,8 +174,14 @@ %endif # Enable sanlock library for lock management with QEMU -%if 0%{?fedora} >= 16 || 0%{?rhel} >= 6 -%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}} +# Sanlock is available only on i686 x86_64 for RHEL +%if 0%{?fedora} >= 16 +%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}} +%endif +%if 0%{?rhel} >= 6 +%ifnarch i386 i586 i686 x86_64 +%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}} +%endif %endif # Disable some drivers when building without libvirt daemon.