Compare commits

...
Sign in to create a new pull request.

19 commits

Author SHA1 Message Date
Giuseppe Scrivano
8cc124de4b
update sources
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 85c3a19695)
2023-03-25 08:48:31 +01:00
Giuseppe Scrivano
2748c7baf2
bump to 1.8.3
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit bca7bed766)
2023-03-25 08:41:37 +01:00
Giuseppe Scrivano
cb252a8a45
update source for 1.8.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 4f279e7a34)
2023-03-21 16:04:09 +01:00
Giuseppe Scrivano
90f9a5e1b5
bump to 1.8.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 5dc658ac42)
2023-03-21 15:28:45 +01:00
Giuseppe Scrivano
a94a4c1f2f
bump to 1.8.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 42d7001ab4)
2023-02-27 11:59:37 +01:00
Lokesh Mandvekar
fec18b5596 bump to v1.8
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 885030c8ca)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-02-02 18:56:27 +05:30
Giuseppe Scrivano
29e6ea0f36
crun: add gcrypt dependency
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit c81e179cdc)
2023-01-03 15:05:05 +01:00
Giuseppe Scrivano
35e1e8f820
make criu a weak dependency
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit c14e1218f5)
2022-12-13 11:18:56 +01:00
Giuseppe Scrivano
e4323a324f
bump to 1.7.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 8434a3b7bc)
2022-11-29 20:52:54 +01:00
Giuseppe Scrivano
eddc8436e4
bump to 1.7.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 07a7ba9e01)
(cherry picked from commit d464919c00)
2022-11-25 13:00:05 +01:00
Lokesh Mandvekar
78914c7229 wasmedge present on all active Fedoras
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit bdd508b2f6)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-22 09:35:46 +05:30
Lokesh Mandvekar
79dac38ffc use correct macro
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit d68ce50deb)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-17 19:46:08 +05:30
Daniel J Walsh
e3a789b9e7
local build 2022-11-07 07:30:57 -05:00
Lokesh Mandvekar
8af5ee9ce7 enable wasm support
Currently, wasmedge is the only wasm provider in Fedora. That may change
with time. All wasm providers will include a `Provides: wasm-library`
which will be a hard dependency for crun along with a weak dependency
that the user can change per need.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit f0e158812d)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-04 16:04:33 +05:30
Troy Dawson
2bb7eade8f Add ExclusiveArch
If using golang, then you needs to use ExclusiveArch for those arches that do not have golang.

(cherry picked from commit db6cce4e02)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-04 16:04:27 +05:30
Lokesh Mandvekar
f820d42ee5 Revert "auto bump to 1.6"
This reverts commit aac762a55d by
autobuilder.

(cherry picked from commit 76df75985f)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-07 13:31:34 -04:00
RH Container Bot
5c4f803a8a auto bump to 1.6
(cherry picked from commit aac762a55d)
2022-10-07 15:23:37 +00:00
Lokesh Mandvekar
13af637c99 remove debbuild macros to comply with fedora guidelines
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 263de70111)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-04 15:02:52 -04:00
Daniel J Walsh
06669ea343
local build 2022-09-28 14:41:13 -04:00
3 changed files with 61 additions and 31 deletions

7
.gitignore vendored
View file

@ -61,3 +61,10 @@ crun-0.1.1.tar.gz
/crun-1.4.5.tar.xz
/crun-1.5.tar.xz
/crun-1.6.tar.xz
/crun-1.7.tar.xz
/crun-1.7.1.tar.xz
/crun-1.7.2.tar.xz
/crun-1.8.tar.xz
/crun-1.8.1.tar.xz
/crun-1.8.2.tar.xz
/crun-1.8.3.tar.xz

View file

@ -7,43 +7,40 @@
%endif
%endif
%global built_tag_strip 1.6
# wasmedge built only for aarch64 and x86_64
%ifarch aarch64 || x86_64
%global wasm_support enabled
%global wasm_opts --with-wasmedge
%endif
%global built_tag 1.8.3
%global gen_version %(b=%{built_tag}; echo ${b/-/"~"})
Summary: OCI runtime written in C
Name: crun
Version: 1.6
Version: %{gen_version}
URL: https://github.com/containers/%{name}
# Fetched from upstream
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
%if "%{_vendor}" == "debbuild"
Packager: Podman Debbuild Maintainers <https://github.com/orgs/containers/teams/podman-debbuild-maintainers>
License: GPL-2.0+
Release: 0%{?dist}
%else
License: GPLv2+
Release: %autorelease
%endif
ExclusiveArch: %{golang_arches}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: go-md2man
BuildRequires: libtool
%if "%{_vendor}" == "debbuild"
BuildRequires: git
BuildRequires: libcap-dev
BuildRequires: libseccomp-dev
BuildRequires: libsystemd-dev
BuildRequires: libyajl-dev
BuildRequires: pkg-config
Requires: criu
%else
BuildRequires: gcc
BuildRequires: git-core
BuildRequires: python3
BuildRequires: libcap-devel
BuildRequires: systemd-devel
BuildRequires: yajl-devel
BuildRequires: libgcrypt-devel
%if "%{krun_support}" == "enabled"
BuildRequires: libkrun-devel
Provides: krun
%endif
%if "%{wasm_support}" == "enabled"
BuildRequires: wasmedge-devel
%endif
BuildRequires: libseccomp-devel
BuildRequires: libselinux-devel
@ -54,38 +51,64 @@ BuildRequires: protobuf-c-devel
%ifnarch %ix86
BuildRequires: criu-devel >= 3.17.1-2
%endif
Requires: criu >= 3.17.1
%endif
Recommends: criu >= 3.17.1
Recommends: criu-libs
Provides: oci-runtime
%description
%{name} is a runtime for running OCI containers
%prep
%autosetup -Sgit %{name}-%{built_tag_strip}
%autosetup -Sgit %{name}-%{built_tag}
%build
./autogen.sh
%configure --disable-silent-rules %{krun_opts}
%configure --disable-silent-rules %{krun_opts} %{wasm_opts}
%make_build
%install
%make_install
rm -rf %{buildroot}%{_prefix}/lib*
%if "%{krun_support}" == "enabled"
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/krun
ln -s ../bin/%{name} %{buildroot}%{_bindir}/krun
%endif
%if "%{wasm_support}" == "enabled"
ln -s ../bin/%{name} %{buildroot}%{_bindir}/%{name}-wasm
%endif
%files
%license COPYING
%{_bindir}/%{name}
%if "%{krun_support}" == "enabled"
%{_bindir}/krun
%endif
%{_mandir}/man1/*
%changelog
%if "%{_vendor}" != "debbuild"
%autochangelog
%if "%{krun_support}" == "enabled"
%package krun
Summary: OCI Runtime providing Virtualization-based process isolation capabilities.
Provides: krun
Requires: %{name} = %{version}-%{release}
Requires: libkrun
%description krun
%{name}-krun OCI Runtime providing Virtualization-based process isolation capabilities.
%files krun
%{_bindir}/krun
%endif
%if "%{wasm_support}" == "enabled"
%package wasm
Summary: wasm support for %{name}
Requires: wasm-library
Recommends: wasmedge
Requires: %{name} = %{version}-%{release}
%description wasm
%{name}-wasm provides %{name} built with wasm support
%files wasm
%{_bindir}/%{name}-wasm
%endif
%changelog
%autochangelog

View file

@ -1 +1 @@
SHA512 (crun-1.6.tar.xz) = cb0464792df6167719fd21c3e1117dc0d89cf91c60d02b478774d14b73bdf49b0d138578b48803ff5af28f50740f5022b043fdf3198833d4a9b69e40974ced00
SHA512 (crun-1.8.3.tar.xz) = ac3a99c6d17724d356eb22af81c2b94f91d98d69763c34773260e549b159b1da5298a4387efa89615c510a24d65dc002ca3dce6dfb93ca5aa7513f328dbdb6ed