70 lines
1.6 KiB
Diff
70 lines
1.6 KiB
Diff
From 0aa433bd4f83b99ed1964d67abbb7fe833d8b78d Mon Sep 17 00:00:00 2001
|
|
From: zhongjiawei <zhongjiawei1@huawei.com>
|
|
Date: Sat, 8 Oct 2022 15:49:27 +0800
|
|
Subject: [PATCH] runc:Add spec for euleros
|
|
|
|
---
|
|
runc-1.1.3/script/runc-euleros.spec | 50 +++++++++++++++++++++++++++++
|
|
1 file changed, 50 insertions(+)
|
|
create mode 100644 runc-1.1.3/script/runc-euleros.spec
|
|
|
|
diff --git a/runc-1.1.3/script/runc-euleros.spec b/runc-1.1.3/script/runc-euleros.spec
|
|
new file mode 100644
|
|
index 0000000..db4e868
|
|
--- /dev/null
|
|
+++ b/runc-1.1.3/script/runc-euleros.spec
|
|
@@ -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
|
|
+
|
|
+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
|
|
+
|
|
--
|
|
2.30.0
|
|
|