mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
spec: Require newer sanlock on recent distros
Make sure libvirt is build with sanlock >= 2.4 on distros that are new enough to provide it.
This commit is contained in:
parent
5ce6d95eed
commit
48bf62fde1
@ -410,8 +410,14 @@ BuildRequires: libpciaccess-devel >= 0.10.9
|
|||||||
BuildRequires: yajl-devel
|
BuildRequires: yajl-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{with_sanlock}
|
%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
|
BuildRequires: sanlock-devel >= 1.8
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if %{with_libpcap}
|
%if %{with_libpcap}
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user