spec: fix sanlock dependency

* libvirt.spec.in (with_sanlock): On RHEL, don't force sanlock
on architectures where it isn't available.
This commit is contained in:
Eric Blake 2011-12-05 10:37:33 -07:00
parent e7dfa468f9
commit d336dbdb33

View File

@ -174,9 +174,15 @@
%endif %endif
# Enable sanlock library for lock management with QEMU # Enable sanlock library for lock management with QEMU
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 6 # Sanlock is available only on i686 x86_64 for RHEL
%if 0%{?fedora} >= 16
%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}} %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
%endif %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. # Disable some drivers when building without libvirt daemon.
# The logic is the same as in configure.ac # The logic is the same as in configure.ac