Skip to content

Commit a94dd5d

Browse files
committed
Add spec for runsc
1 parent f251052 commit a94dd5d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

specs/runsc.spec

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
################################################################################
2+
3+
Summary: The Container Security Platform
4+
Name: runsc
5+
Version: 20240603
6+
Release: 0%{?dist}
7+
Group: Development/Tools
8+
License: MIT
9+
URL: https://gvisor.dev
10+
11+
Source0: https://storage.googleapis.com/gvisor/releases/release/%{version}/x86_64/runsc
12+
Source1: https://storage.googleapis.com/gvisor/releases/release/%{version}/x86_64/containerd-shim-runsc-v1
13+
14+
Source10: https://storage.googleapis.com/gvisor/releases/release/%{version}/x86_64/runsc.sha512
15+
Source11: https://storage.googleapis.com/gvisor/releases/release/%{version}/x86_64/containerd-shim-runsc-v1.sha512
16+
17+
18+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19+
20+
Provides: gvisor = %{version}-%{release}
21+
Provides: %{name} = %{version}-%{release}
22+
23+
################################################################################
24+
25+
%description
26+
gVisor is an open-source Linux-compatible sandbox that runs anywhere existing
27+
container tooling does. It enables cloud-native container security and
28+
portability. gVisor leverages years of experience isolating production workloads
29+
at Google.
30+
31+
################################################################################
32+
33+
%prep
34+
cp %{SOURCE0} %{SOURCE1} .
35+
sha512sum -c %{SOURCE10} %{SOURCE11}
36+
37+
%build
38+
%install
39+
rm -rf %{buildroot}
40+
41+
install -pDm 755 %{SOURCE0} \
42+
%{buildroot}%{_bindir}/runsc
43+
install -pDm 755 %{SOURCE1} \
44+
%{buildroot}%{_bindir}/containerd-shim-runsc-v1
45+
46+
%clean
47+
rm -rf %{buildroot}
48+
49+
################################################################################
50+
51+
%files
52+
%defattr(-,root,root,-)
53+
%{_bindir}/runsc
54+
%{_bindir}/containerd-shim-runsc-v1
55+
56+
################################################################################
57+
58+
%changelog
59+
* Thu Jun 06 2024 Anton Novojilov <andy@essentialkaos.com> - 20240603-0
60+
- Initial build for kaos-repo

0 commit comments

Comments
 (0)