提交 f54de34b 编写于 作者: D Daniel Veillard

Add flags and requires for Multipath storage

* libvirt.spec.in: the new multipath module requires device-mapper
  and device-mapper-devel for build
上级 ee8a06f8
......@@ -18,6 +18,7 @@
%define with_storage_lvm 0%{!?_without_storage_lvm:1}
%define with_storage_iscsi 0%{!?_without_storage_iscsi:1}
%define with_storage_disk 0%{!?_without_storage_disk:1}
%define with_storage_mpath 0%{!?_without_storage_mpath:1}
%define with_numactl 0%{!?_without_numactl:1}
# default to off - selectively enabled below
......@@ -131,6 +132,10 @@ Requires: iscsi-initiator-utils
# For disk driver
Requires: parted
%endif
%if %{with_storage_mpath}
# For multipath support
Requires: device-mapper
%endif
%if %{with_xen}
BuildRequires: xen-devel
%endif
......@@ -186,6 +191,10 @@ BuildRequires: iscsi-initiator-utils
# For disk driver
BuildRequires: parted-devel
%endif
%if %{with_storage_mpath}
# For Multipath support
BuildRequires: device-mapper-devel
%endif
%if %{with_numactl}
# For QEMU/LXC numa info
BuildRequires: numactl-devel
......@@ -333,6 +342,10 @@ of recent versions of Linux (and other OSes).
%define _without_storage_disk --without-storage-disk
%endif
%if ! %{with_storage_mpath}
%define _without_storage_mpath --without-storage-mpath
%endif
%if ! %{with_numactl}
%define _without_numactl --without-numactl
%endif
......@@ -364,6 +377,7 @@ of recent versions of Linux (and other OSes).
%{?_without_storage_lvm} \
%{?_without_storage_iscsi} \
%{?_without_storage_disk} \
%{?_without_storage_mpath} \
%{?_without_numactl} \
%{?_without_capng} \
%{?_without_netcf} \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册