]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: fix sanlock dependency
authorEric Blake <eblake@redhat.com>
Mon, 5 Dec 2011 17:37:33 +0000 (10:37 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 5 Dec 2011 18:29:32 +0000 (11:29 -0700)
* libvirt.spec.in (with_sanlock): On RHEL, don't force sanlock
on architectures where it isn't available.

libvirt.spec.in

index dc8ed756aede3b513ff7ee29f1506c41f551eb1a..97b811d4832722083bb542d6908c88319f84e62d 100644 (file)
 %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.