Dario Faggioli
4b26ba52de
- Update to 1.7.2: * criu: hardcode library name to libcriu.so.2. * cgroup: always enable all controllers, even if the cgroup was already joined. Regression caused by crun-1.7. - Changes from 1.7.1: * criu: load libcriu dynamically. * seccomp: initialize libgcrypt. * handlers: fix rewriting the argv if the full cmdline doesn't fit. * utils: honor SELinux label when using a custom handler. * utils: honor AppArmor label when using a custom handler. * krun: copy the OCI configuration file into the container. * utils: fix creating the default user namespace when running with euid != 0. * Add setlinebuf() when --debug and --log=file: are used. * Fix timestamp format in the error messages. * krun: disable libkrun's collection of env vars. - Changes from 1.7: * seccomp: use a cache for the generated BPF. * add support for setting the domainname through the OCI spec. * handlers: define wasm and krun. * wasmtime: add support for compiling .wat format. * cgroup: honor checkBeforeUpdate on cgroupv2. * crun: chown std streams before joining the user namespace. * crun: display rundir in --version output. * container: with cgroupfs use clone3 to join directly the target cgroup. * linux: create parent directories for created devices with mode 0755. * wasm: inherit environment variables in the WasmEdge handler. OBS-URL: https://build.opensuse.org/request/show/1040893 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=18
92 lines
2.5 KiB
RPMSpec
92 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package crun
|
|
#
|
|
# Copyright (c) 2022 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
|
|
License: GPL-2.0-or-later
|
|
Name: crun
|
|
Version: 1.7.2
|
|
Release: 0
|
|
Source0: https://github.com/containers/crun/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
Source1: https://github.com/containers/crun/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
|
URL: https://github.com/containers/crun
|
|
# We always run autogen.sh
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext
|
|
BuildRequires: glibc-devel-static
|
|
BuildRequires: go-md2man
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libprotobuf-c-devel
|
|
BuildRequires: libseccomp-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: libyajl-devel
|
|
BuildRequires: make
|
|
BuildRequires: python3
|
|
BuildRequires: python3-libmount
|
|
BuildRequires: systemd-devel
|
|
%ifnarch %ix86
|
|
BuildRequires: criu-devel >= 3.15
|
|
%endif
|
|
%ifarch x86_64 aarch64
|
|
BuildRequires: libkrun-devel
|
|
Requires: libkrun1
|
|
%endif
|
|
|
|
%description
|
|
crun is a runtime for running OCI containers. It is built with libkrun support
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%ifarch x86_64 aarch64
|
|
export LIBKRUN="--with-libkrun"
|
|
%endif
|
|
./autogen.sh
|
|
%configure --disable-silent-rules $LIBKRUN CFLAGS='-I /usr/include/libseccomp'
|
|
%make_build
|
|
|
|
# TODO:
|
|
# - it would be nice to enable the test-suite, but seems to behave (and fail!)
|
|
# differently when run inside of an OBS worker, with respect to when it's
|
|
# run manually on the host... Need to investigate more.
|
|
#%check
|
|
#make test-suite.log
|
|
|
|
%install
|
|
%make_install
|
|
rm -rf %{buildroot}/%{_libdir}/lib*
|
|
%ifarch x86_64 aarch64
|
|
# allow easy krun usage with podman
|
|
ln -s %{_bindir}/crun %{buildroot}%{_bindir}/krun
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license COPYING
|
|
%doc README.md
|
|
%doc SECURITY.md
|
|
%{_bindir}/%{name}
|
|
%ifarch x86_64 aarch64
|
|
%{_bindir}/krun
|
|
%endif
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|