runc/patch/0001-runc-Add-spec-for-euleros.patch

70 lines
1.6 KiB
Diff
Raw Normal View History

2023-01-05 17:11:59 +08:00
From ee228fa3991d1d0008416df61b4bae645adf8e1a Mon Sep 17 00:00:00 2001
2022-10-26 16:13:47 +08:00
From: zhongjiawei <zhongjiawei1@huawei.com>
2023-01-05 17:11:59 +08:00
Date: Thu, 5 Jan 2023 16:13:12 +0800
Subject: [PATCH] runc: Add spec for euleros
---
2023-01-05 17:11:59 +08:00
script/runc-euleros.spec | 50 ++++++++++++++++++++++++++++++++++++++++
2022-10-26 16:13:47 +08:00
1 file changed, 50 insertions(+)
2023-01-05 17:11:59 +08:00
create mode 100644 script/runc-euleros.spec
2023-01-05 17:11:59 +08:00
diff --git a/script/runc-euleros.spec b/script/runc-euleros.spec
new file mode 100644
2022-10-26 16:13:47 +08:00
index 0000000..db4e868
--- /dev/null
2023-01-05 17:11:59 +08:00
+++ b/script/runc-euleros.spec
2022-10-26 16:13:47 +08:00
@@ -0,0 +1,50 @@
+%global _bindir /usr/local/bin
+
+Name: docker-runc
+Version: 1.0.0.rc3
+Release: 1%{?dist}
+Summary: runc is a CLI tool for spawning and running containers according to the OCF specification
+
+License: ASL 2.0
+Source: %{name}.tar.gz
+
+URL: https://www.opencontainers.org/
+Vendor: OCI
+Packager: OCI
+
+BuildRequires: golang == 1.8.3
+BuildRequires: glibc-static
+BuildRequires: make
+BuildRequires: libseccomp-devel
+BuildRequires: libselinux-devel
+
2022-10-26 16:13:47 +08:00
+BuildRequires: libseccomp-static
+
+%description
+runc is a CLI tool for spawning and running containers according to the OCF specification
+
+%prep
+%setup -c -n runc
+
+%install
+
+
+mkdir -p .gopath/src/github.com/opencontainers
+export GOPATH=`pwd`/.gopath
+ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
+cd .gopath/src/github.com/opencontainers/runc
+make BUILDTAGS="seccomp selinux" static
+rm -rf .gopath
+
+install -d $RPM_BUILD_ROOT/%{_bindir}
+install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
+
+
+%clean
+%{__rm} -rf %{_bindir}/runc
+
+%files
+%{_bindir}/runc
+
+%changelog
+
--
2022-10-26 16:13:47 +08:00
2.30.0