Compare commits

...

53 Commits

Author SHA1 Message Date
David Abdurachmanov 2ed5fb3084
Disable criu for riscv64
This is currently not ported (WIP, PR exist usptream).

See:
https://github.com/checkpoint-restore/criu/pull/2234

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-26 11:47:11 +03:00
Packit 69151b77b6 [packit] 1.14.4 upstream release
Upstream tag: 1.14.4
Upstream commit: a220ca66
2024-02-29 17:46:14 +00:00
Packit b980b93f2b [packit] 1.14.3 upstream release
Upstream tag: 1.14.3
Upstream commit: 1961d211
2024-02-17 08:34:49 +00:00
Packit feec1702a0 [packit] 1.14.2 upstream release
Upstream tag: 1.14.2
Upstream commit: 32b139f7
2024-02-16 17:14:11 +00:00
Packit 4fb0f0ab02 [packit] 1.14.1 upstream release
Upstream tag: 1.14.1
Upstream commit: de537a79
2024-02-08 18:31:15 +00:00
Packit f0433c54af [packit] 1.14 upstream release
Upstream tag: 1.14
Upstream commit: 667e6ebd
2024-01-24 16:53:52 +00:00
Fedora Release Engineering 80581cdbcd Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 08:32:27 +00:00
Fedora Release Engineering 6f3756d354 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 16:25:43 +00:00
Packit 8a0eba9339 [packit] 1.13 upstream release
Upstream tag: 1.13
Upstream commit: c7613497
2024-01-15 16:26:27 +00:00
Packit 2e69b59d67 [packit] 1.12 upstream release
Upstream tag: 1.12
Upstream commit: ce429cb2
2023-11-23 17:14:55 +00:00
Packit 8636b679c4 [packit] 1.11.2 upstream release
Upstream tag: 1.11.2
Upstream commit: ab0edeef
2023-11-07 12:56:06 +00:00
Packit d92e05e194 [packit] 1.11.1 upstream release
Upstream tag: 1.11.1
Upstream commit: 1084f952
2023-10-30 20:26:00 +00:00
Packit a055ddae3c [packit] 1.11 upstream release
Upstream tag: 1.11
Upstream commit: 11f8d3dc
2023-10-26 20:19:49 +00:00
Packit 00b0bd05e7 [packit] 1.10 upstream release
Upstream tag: 1.10
Upstream commit: c053c83c
2023-10-19 10:12:18 +00:00
Packit fae9f7633f [packit] 1.9.2 upstream release
Upstream tag: 1.9.2
Upstream commit: 35274d34
2023-09-27 21:05:06 +00:00
Lokesh Mandvekar 612a96918e
remove krun manpage if krun not supported 2023-09-26 13:55:18 -04:00
Lokesh Mandvekar 8de06754f3
fix manpage installation 2023-09-26 13:33:15 -04:00
Packit b9acc59939 [packit] 1.9.1 upstream release
Upstream tag: 1.9.1
Upstream commit: 1f2769e1
2023-09-26 15:29:50 +00:00
Packit f8dd4474b1 [packit] 1.9 upstream release
Upstream tag: 1.9
Upstream commit: a538ac4e

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/crun.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.9-rawhide-update-propose_downstream
```
2023-09-07 14:03:27 +00:00
Packit 0c54bceac8 [packit] 1.8.7 upstream release
Upstream tag: 1.8.7
Upstream commit: 53a9996c

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/crun.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.8.7-rawhide-update-propose_downstream
```
2023-08-21 13:59:22 +00:00
Yaakov Selkowitz b6961f245f Disable wasm in RHEL builds
crun-wasm is not shipped in RHEL, so avoid the build dependency by not
building it at all.
2023-08-03 23:36:19 -04:00
Giuseppe Scrivano af069bdab7
bump to 1.8.6
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-07-27 09:52:51 +02:00
Fedora Release Engineering 86fd131d93 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 16:40:22 +00:00
Giuseppe Scrivano c636b7586e
bump to 1.8.5
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-05-20 21:29:36 +02:00
Giuseppe Scrivano 83c9dde998
bump to 1.8.4
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-04-13 21:24:13 +02:00
Giuseppe Scrivano 85c3a19695
update sources
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-03-25 08:48:07 +01:00
Giuseppe Scrivano bca7bed766
bump to 1.8.3
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-03-25 08:41:13 +01:00
Giuseppe Scrivano 4f279e7a34
update source for 1.8.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-03-21 16:03:33 +01:00
Giuseppe Scrivano 5dc658ac42
bump to 1.8.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-03-21 15:27:32 +01:00
Lokesh Mandvekar 4f9a5d69a2 migrated to SPDX license
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-03-06 16:42:00 +05:30
Giuseppe Scrivano 42d7001ab4
bump to 1.8.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-02-27 11:56:33 +01:00
Lokesh Mandvekar 68e76ac992 use arch: golang_arches_future
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-02-09 16:49:50 +05:30
Lokesh Mandvekar 885030c8ca bump to v1.8
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-02-02 18:44:12 +05:30
Fedora Release Engineering 88465aa8a3 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 00:43:56 +00:00
Giuseppe Scrivano c81e179cdc
crun: add gcrypt dependency
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-01-03 15:03:51 +01:00
Giuseppe Scrivano c14e1218f5
make criu a weak dependency
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-12-13 11:18:29 +01:00
Giuseppe Scrivano 8434a3b7bc
bump to 1.7.2
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-11-29 20:52:27 +01:00
Giuseppe Scrivano 07a7ba9e01
bump to 1.7.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-11-25 12:57:36 +01:00
Lokesh Mandvekar bdd508b2f6 wasmedge present on all active Fedoras
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-22 09:34:59 +05:30
Lokesh Mandvekar d68ce50deb use correct macro
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-11-16 18:19:51 +05:30
Daniel J Walsh c587fe84e8
local build 2022-11-07 07:13:04 -05:00
Lokesh Mandvekar f0e158812d 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>
2022-11-03 18:50:17 +05:30
Troy Dawson db6cce4e02 Add ExclusiveArch
If using golang, then you needs to use ExclusiveArch for those arches that do not have golang.
2022-10-28 15:56:02 +00:00
Lokesh Mandvekar 76df75985f Revert "auto bump to 1.6"
This reverts commit aac762a55d by
autobuilder.
2022-10-07 13:28:26 -04:00
RH Container Bot aac762a55d auto bump to 1.6 2022-10-07 15:14:05 +00:00
Lokesh Mandvekar 263de70111 remove debbuild macros to comply with fedora guidelines
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-04 15:02:13 -04:00
Daniel J Walsh 613edba48b
local build 2022-09-28 14:33:22 -04:00
Lokesh Mandvekar 00068edb16 use correct tarball
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-09-07 16:01:24 -04:00
RH Container Bot 57e8839cbd auto bump to 1.6 2022-09-07 15:03:24 +00:00
Lokesh Mandvekar 590ccfd018 use easier tag macros to make both fedora and debbuild happy
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-08-17 14:48:15 -04:00
Lokesh Mandvekar 9ee26cd499 Fix debbuild maintainer and dep issues
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-08-16 14:21:36 -04:00
Lokesh Mandvekar f2635da7ab fix libkrun conditionals
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-08-11 15:59:09 -04:00
Lokesh Mandvekar 9e192ca81a
handle criu dep for debbuild as well
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-07-25 14:52:59 -04:00
5 changed files with 189 additions and 51 deletions

26
.gitignore vendored
View File

@ -60,3 +60,29 @@ crun-0.1.1.tar.gz
/crun-1.4.4.tar.xz
/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
/crun-1.8.4.tar.xz
/crun-1.8.5.tar.xz
/crun-1.8.6.tar.xz
/crun-1.8.7.tar.xz
/crun-1.9.tar.xz
/crun-1.9.1.tar.xz
/crun-1.9.2.tar.xz
/crun-1.10.tar.xz
/crun-1.11.tar.xz
/crun-1.11.1.tar.xz
/crun-1.11.2.tar.xz
/crun-1.12.tar.xz
/crun-1.13.tar.xz
/crun-1.14.tar.xz
/crun-1.14.1.tar.xz
/crun-1.14.2.tar.xz
/crun-1.14.3.tar.xz
/crun-1.14.4.tar.xz

57
.packit.yaml Normal file
View File

@ -0,0 +1,57 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: rpm/crun.spec
srpm_build_deps:
- git-archive-all
- make
actions:
create-archive:
- "git-archive-all -v --force-submodules rpm/crun-HEAD.tar.xz"
- bash -c "ls -1 rpm/crun-HEAD.tar.xz"
jobs:
- job: copr_build
trigger: pull_request
notifications:
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- fedora-eln-x86_64
- fedora-eln-aarch64
- centos-stream+epel-next-8-x86_64
- centos-stream+epel-next-8-aarch64
- centos-stream+epel-next-9-x86_64
- centos-stream+epel-next-9-aarch64
additional_repos:
- "copr://rhcontainerbot/podman-next"
# Run on commit to main branch
- job: copr_build
trigger: commit
notifications:
failure_comment:
message: "podman-next COPR build failed. @containers/packit-build please check."
branch: main
owner: rhcontainerbot
project: podman-next
- job: propose_downstream
trigger: release
update_release: false
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched # rawhide updates are created automatically

3
README.packit Normal file
View File

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.93.0.

152
crun.spec
View File

@ -1,95 +1,147 @@
%if 0%{?fedora} >= 37
%ifarch aarch64,x86_64
%global krun_support enabled
%endif
%else
%global krun_support disabled
%global krun_opts %{nil}
%global wasmedge_opts %{nil}
%global wasmtime_opts %{nil}
# krun and wasm[edge,time] support only on aarch64 and x86_64
%ifarch aarch64 || x86_64
%global wasm_support 1
# wasmedge not present on Fedora ELN environments
%if !0%{?eln}
%global wasmedge_support 1
%global wasmedge_opts --with-wasmedge
%endif
%global built_tag 1.5
# krun only exists on fedora
%if %{defined fedora}
%global krun_support 1
%global krun_opts --with-libkrun
%endif
# wasmtime exists only on podman-next copr for now
%if %{defined copr_project} && "%{?copr_project}" == "podman-next"
%global wasmtime_support 1
%global wasmtime_opts --with-wasmtime
%endif
%endif
Summary: OCI runtime written in C
Name: crun
Version: 1.5
%if %{defined copr_username}
Epoch: 102
%endif
# DO NOT TOUCH the Version string!
# The TRUE source of this specfile is:
# https://github.com/containers/crun/blob/main/rpm/crun.spec
# If that's what you're reading, Version must be 0, and will be updated by Packit for
# copr and koji builds.
# If you're reading this on dist-git, the version is automatically filled in by Packit.
Version: 1.14.4
Release: %autorelease -e 0.riscv64
URL: https://github.com/containers/%{name}
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
%if "%{_vendor}" == "debbuild"
Packager: Lokesh Mandvekar <lsm5@fedoraproject.org>
License: GPL-2.0+
Release: 0%{?dist}
License: GPL-2.0-only
%if %{defined golang_arches_future}
ExclusiveArch: %{golang_arches_future}
%else
License: GPLv2+
Release: %autorelease
ExclusiveArch: aarch64 ppc64le riscv64 s390x x86_64
%endif
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
%else
BuildRequires: gcc
BuildRequires: git-core
BuildRequires: python3
BuildRequires: gperf
BuildRequires: libcap-devel
%if %{defined krun_support}
BuildRequires: libkrun-devel
%endif
BuildRequires: systemd-devel
BuildRequires: yajl-devel
%if "%{krun_support}" == "enabled"
BuildRequires: libkrun-devel
Provides: krun
%endif
BuildRequires: libseccomp-devel
BuildRequires: libselinux-devel
BuildRequires: python3-libmount
BuildRequires: make
BuildRequires: glibc-static
BuildRequires: libtool
BuildRequires: protobuf-c-devel
%ifnarch %ix86
%ifnarch riscv64
BuildRequires: criu-devel >= 3.17.1-2
Recommends: criu >= 3.17.1
Recommends: criu-libs
%endif
%if %{defined wasmedge_support}
BuildRequires: wasmedge-devel
%endif
%if %{defined wasmtime_support}
BuildRequires: wasmtime-c-api-devel
%endif
%if %{defined rhel} && 0%{?rhel} == 8
BuildRequires: python3
%else
BuildRequires: python
%endif
Requires: criu >= 3.17.1-2
Provides: oci-runtime
%description
%{name} is a runtime for running OCI containers
%{name} is a OCI runtime
%if %{defined krun_support}
%package krun
Summary: %{name} with libkrun support
Requires: libkrun
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: krun = %{?epoch:%{epoch}:}%{version}-%{release}
%description krun
krun is a symlink to the %{name} binary, with libkrun as an additional dependency.
%endif
%if %{defined wasm_support}
%package wasm
Summary: %{name} with wasm support
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: wasm-library
Recommends: wasmedge
%description wasm
%{name}-wasm is a symlink to the %{name} binary, with wasm as an additional dependency.
%endif
%prep
%autosetup -Sgit
%autosetup -Sgit -n %{name}-%{version}
%build
./autogen.sh
%if "%{krun_support}" == "enabled"
%configure --disable-silent-rules --with-libkrun
%else
%configure --disable-silent-rules
%endif
./configure --disable-silent-rules %{krun_opts} %{wasmedge_opts} %{wasmtime_opts}
%make_build
%install
%make_install
%make_install prefix=%{_prefix}
rm -rf %{buildroot}%{_prefix}/lib*
%if "%{krun_support}" == "enabled"
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/krun
%if %{defined krun_support}
ln -s %{name} %{buildroot}%{_bindir}/krun
%endif
%if %{defined wasm_support}
ln -s %{name} %{buildroot}%{_bindir}/%{name}-wasm
%endif
%files
%license COPYING
%{_bindir}/%{name}
%if "%{krun_support}" == "enabled"
%{_mandir}/man1/%{name}.1.gz
%if %{defined krun_support}
%files krun
%license COPYING
%{_bindir}/krun
%{_mandir}/man1/krun.1.gz
%endif
%if %{defined wasm_support}
%files wasm
%license COPYING
%{_bindir}/%{name}-wasm
%endif
%{_mandir}/man1/*
%changelog
%if "%{_vendor}" != "debbuild"
%autochangelog
%endif

View File

@ -1 +1 @@
SHA512 (crun-1.5.tar.xz) = 8ae5c6e306878194842f3a6a40bfc07038f69b9bd693395d64251133acf59186ce79272a45a3aee26b2a9812cbedb7a37370aece582abb3119ab7cdf7183e57b
SHA512 (crun-1.14.4.tar.xz) = 1681ea85de3540958b4d7efadcf22c6f47c991fc4681a5028404952567c0b1b0220ad0ce0e0f0d727da27d8e63495a8bfc43a13b3511b1455106fdfec2e32e49