mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
qemu: rhel: Remove librados to allow build.
Build qemu without librados. This allows build qemu in OBS. Fixes: #37 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
0cb0eb4dda
commit
a6d77fddaf
@ -27,12 +27,16 @@ BuildRequires : libtool
|
|||||||
BuildRequires : m4
|
BuildRequires : m4
|
||||||
BuildRequires : findutils
|
BuildRequires : findutils
|
||||||
|
|
||||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?centos_version}
|
||||||
BuildRequires : librbd1-devel
|
BuildRequires : librbd1-devel
|
||||||
%else
|
%else
|
||||||
|
|
||||||
|
%if ! 0%{?rhel_version}
|
||||||
BuildRequires : librbd-devel
|
BuildRequires : librbd-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires : libnuma-devel
|
BuildRequires : libnuma-devel
|
||||||
%else
|
%else
|
||||||
@ -78,7 +82,14 @@ chmod +x %{_sourcedir}/configure-hypervisor.sh
|
|||||||
%build
|
%build
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
eval "%{_sourcedir}/configure-hypervisor.sh" "qemu-lite" | xargs ./configure --prefix=/usr
|
# RHEL in OBS does not provide librados.
|
||||||
|
# Remove it: See https://github.com/kata-containers/packaging/issues/36
|
||||||
|
"%{_sourcedir}/configure-hypervisor.sh" "qemu-lite" \
|
||||||
|
%if 0%{?rhel_version}
|
||||||
|
| sed -e 's/--enable-rbd//g' \
|
||||||
|
%endif
|
||||||
|
| xargs ./configure --prefix=/usr
|
||||||
|
|
||||||
make V=1 %{?_smp_mflags}
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
@ -27,12 +27,16 @@ BuildRequires : libtool
|
|||||||
BuildRequires : m4
|
BuildRequires : m4
|
||||||
BuildRequires : findutils
|
BuildRequires : findutils
|
||||||
|
|
||||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?centos_version}
|
||||||
BuildRequires : librbd1-devel
|
BuildRequires : librbd1-devel
|
||||||
%else
|
%else
|
||||||
|
|
||||||
|
%if ! 0%{?rhel_version}
|
||||||
BuildRequires : librbd-devel
|
BuildRequires : librbd-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires : libnuma-devel
|
BuildRequires : libnuma-devel
|
||||||
%else
|
%else
|
||||||
@ -78,7 +82,14 @@ chmod +x %{_sourcedir}/configure-hypervisor.sh
|
|||||||
%build
|
%build
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
eval "%{_sourcedir}/configure-hypervisor.sh" "qemu-vanilla" | xargs ./configure --prefix=/usr
|
# RHEL in OBS does not provide librados.
|
||||||
|
# Remove it: See https://github.com/kata-containers/packaging/issues/36
|
||||||
|
"%{_sourcedir}/configure-hypervisor.sh" "qemu-vanilla" \
|
||||||
|
%if 0%{?rhel_version}
|
||||||
|
| sed -e 's/--enable-rbd//g' \
|
||||||
|
%endif
|
||||||
|
| xargs ./configure --prefix=/usr
|
||||||
|
|
||||||
make V=1 %{?_smp_mflags}
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user