diff --git a/hack/kata-containers.spec b/hack/kata-containers.spec index 2af59b3441e7333e4760391fefc03bcfb5e691de..50968b5ab8059a4f03ae18d214e114ccc78fa29c 100644 --- a/hack/kata-containers.spec +++ b/hack/kata-containers.spec @@ -18,6 +18,7 @@ Version: %{VERSION} Release: %{RELEASE} Summary: Kata Container integration License: Apache 2.0 +URL: https://gitee.com/src-openeuler/kata_integration Source0: %{name}-%{version}.tar.gz Source1: kata-runtime-%{version}.tar.gz Source2: kata-agent-%{version}.tar.gz @@ -42,6 +43,9 @@ This is core component of Kata Container, to make it work, you need a docker eng cd %{_builddir}/kernel mkdir ./linux && tar -xzf linux-*.tar.gz -C ./linux --strip-components 1 +if ls patches.tar.* >/dev/null 2>&1;then + tar -xf patches.tar.* +fi cd %{_builddir}/kernel/linux/ %ifarch %{ix86} x86_64 cp %{_builddir}/%{name}-%{version}/hack/config-kata-x86_64 ./.config