mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +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 : findutils
|
||||
|
||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
||||
%if 0%{?centos_version}
|
||||
BuildRequires : librbd1-devel
|
||||
%else
|
||||
|
||||
%if ! 0%{?rhel_version}
|
||||
BuildRequires : librbd-devel
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires : libnuma-devel
|
||||
%else
|
||||
@ -78,7 +82,14 @@ chmod +x %{_sourcedir}/configure-hypervisor.sh
|
||||
%build
|
||||
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}
|
||||
|
||||
%install
|
||||
|
@ -27,12 +27,16 @@ BuildRequires : libtool
|
||||
BuildRequires : m4
|
||||
BuildRequires : findutils
|
||||
|
||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
||||
%if 0%{?centos_version}
|
||||
BuildRequires : librbd1-devel
|
||||
%else
|
||||
|
||||
%if ! 0%{?rhel_version}
|
||||
BuildRequires : librbd-devel
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires : libnuma-devel
|
||||
%else
|
||||
@ -78,7 +82,14 @@ chmod +x %{_sourcedir}/configure-hypervisor.sh
|
||||
%build
|
||||
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}
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user