]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Require newer sanlock on recent distros
authorJiri Denemark <jdenemar@redhat.com>
Tue, 16 Oct 2012 10:45:27 +0000 (12:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 16 Oct 2012 19:32:07 +0000 (21:32 +0200)
Make sure libvirt is build with sanlock >= 2.4 on distros that are new
enough to provide it.

libvirt.spec.in

index 75623ebddbdf36f5d8d3cf2607d6d5025e8ef390..15c6b399475b72631fab123b53b33b73b3603cef 100644 (file)
@@ -410,8 +410,14 @@ BuildRequires: libpciaccess-devel >= 0.10.9
 BuildRequires: yajl-devel
 %endif
 %if %{with_sanlock}
+# make sure libvirt is built with new enough sanlock on
+# distros that have it; required for on_lockfailure
+%if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
+BuildRequires: sanlock-devel >= 2.4
+%else
 BuildRequires: sanlock-devel >= 1.8
 %endif
+%endif
 %if %{with_libpcap}
 BuildRequires: libpcap-devel
 %endif