mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 17:06:28 +00:00
Merge pull request #38 from jcvenegas/rhel-qemu
qemu: rhel: Remove librados to allow build.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user