From 8b50eb06ea49785720a31f623fd207fc1d24637a206b029ed30701a5831b6218 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 18 Mar 2021 08:21:20 +0000 Subject: [PATCH] Accepting request 878678 from home:dfaggioli:Virtualization crun is a fast and low-memory footprint OCI Container Runtime fully written in C. In this package, it is built with the support for libkrun enabled. This means that it will be possible to run containers as lightweight VMs, directly from podman (see here: https://copr.fedorainfracloud.org/coprs/slp/crun-krun/) OBS-URL: https://build.opensuse.org/request/show/878678 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + crun-0.18.tar.gz | 3 +++ crun-rpmlintrc | 2 ++ crun.changes | 15 +++++++++++ crun.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 crun-0.18.tar.gz create mode 100644 crun-rpmlintrc create mode 100644 crun.changes create mode 100644 crun.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/crun-0.18.tar.gz b/crun-0.18.tar.gz new file mode 100644 index 0000000..23c5795 --- /dev/null +++ b/crun-0.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913191076ceaca7d8809f776894bb37be9271de82c06a810697d6a8f4746e241 +size 1394857 diff --git a/crun-rpmlintrc b/crun-rpmlintrc new file mode 100644 index 0000000..a2c7302 --- /dev/null +++ b/crun-rpmlintrc @@ -0,0 +1,2 @@ +# the warning is a false positive, as the call to chdir is actually there +addFilter (".*missing-call-to-chdir-with-chroot.*") diff --git a/crun.changes b/crun.changes new file mode 100644 index 0000000..350c6fe --- /dev/null +++ b/crun.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Sat Mar 13 01:12:19 UTC 2021 - Dario Faggioli + +- Suppress the (false positive) rpmlint warning + +------------------------------------------------------------------- +Sat Mar 13 00:43:54 UTC 2021 - Dario Faggioli + +- Some fixes to the spec file (add some %doc, remove unused macros, etc) + +------------------------------------------------------------------- +Thu Mar 11 08:08:36 UTC 2021 - Dario Faggioli + +- Initial package for 0.18 + Based on the package by Giuseppe Scrivano diff --git a/crun.spec b/crun.spec new file mode 100644 index 0000000..137498d --- /dev/null +++ b/crun.spec @@ -0,0 +1,69 @@ +# +# spec file for package crun +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +Summary: OCI runtime written in C +Name: crun +Version: 0.18 +Release: 0 +Source0: https://github.com/containers/crun/releases/download/%{version}/%{name}-%{version}.tar.gz +License: GPL-2.0-or-later +URL: https://github.com/containers/crun +# We always run autogen.sh +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: python +BuildRequires: git-core +BuildRequires: libcap-devel +BuildRequires: systemd-devel +BuildRequires: libyajl-devel +BuildRequires: libseccomp-devel +BuildRequires: libselinux-devel +BuildRequires: python3-libmount +BuildRequires: libtool +BuildRequires: go-md2man +BuildRequires: glibc-devel-static +BuildRequires: libkrun-devel >= 0.1.4 +%ifnarch %ix86 +BuildRequires: criu-devel >= 3.15 +%endif +Requires: libkrun0 >= 0.1.4 + +%description +crun is a runtime for running OCI containers. It is built with libkrun support + +%prep +%autosetup + +%build +./autogen.sh +%configure --disable-silent-rules --with-libkrun CFLAGS='-I /usr/include/libseccomp' +%make_build + +%install +%make_install +rm -rf %{buildroot}/%{_libdir}/lib* + +%files +%defattr(-,root,root) +%license COPYING +%doc README.md +%doc SECURITY.md +%{_bindir}/%{name} +%{_mandir}/man1/* + +%changelog