## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global krun_opts %{nil} %global wasmedge_opts %{nil} %global yajl_opts %{nil} %if %{defined copr_username} %define copr_build 1 %endif # krun and wasm support only on aarch64 and x86_64 %ifarch aarch64 || x86_64 # Disable wasmedge on rhel 10 until EPEL10 is in place, otherwise it causes # build issues on copr %if %{defined fedora} || (%{defined copr_build} && %{defined rhel} && 0%{?rhel} < 10) %global wasm_support 1 %global wasmedge_support 1 %global wasmedge_opts --with-wasmedge %endif # krun only exists on fedora %if %{defined fedora} %global krun_support 1 %global krun_opts --with-libkrun %endif %endif %if %{defined fedora} || (%{defined rhel} && 0%{?rhel} < 10) %global system_yajl 1 %else %global yajl_opts --enable-embedded-yajl %endif Summary: OCI runtime written in C Name: crun %if %{defined copr_build} 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.19.1 Release: %autorelease URL: https://github.com/containers/%{name} Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.zst License: GPL-2.0-only %if %{defined golang_arches_future} ExclusiveArch: %{golang_arches_future} %else ExclusiveArch: aarch64 ppc64le riscv64 s390x x86_64 %endif BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: git-core BuildRequires: gperf BuildRequires: libcap-devel %if %{defined krun_support} BuildRequires: libkrun-devel %endif BuildRequires: systemd-devel %if %{defined system_yajl} BuildRequires: yajl-devel %endif BuildRequires: libseccomp-devel BuildRequires: python3-libmount BuildRequires: libtool BuildRequires: protobuf-c-devel %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 BuildRequires: python Provides: oci-runtime %description %{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} # wasm packages are not present on RHEL yet and are currently a PITA to test # Best to only include wasmedge as weak dep on rhel %if %{defined fedora} Requires: wasm-library %endif Recommends: wasmedge %description wasm %{name}-wasm is a symlink to the %{name} binary, with wasm as an additional dependency. %endif %prep %autosetup -Sgit -n %{name}-%{version} %build ./autogen.sh ./configure --disable-silent-rules %{krun_opts} %{wasmedge_opts} %{yajl_opts} %make_build %install %make_install prefix=%{_prefix} rm -rf %{buildroot}%{_prefix}/lib* %files %license COPYING %{_bindir}/%{name} %{_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 %changelog ## START: Generated by rpmautospec * Tue Dec 17 2024 Packit - 102:1.19.1-1 - Update to 1.19.1 upstream release * Fri Dec 06 2024 Packit - 102:1.19-1 - Update to 1.19 upstream release * Thu Oct 31 2024 Packit - 102:1.18.2-1 - Update to 1.18.2 upstream release * Wed Oct 30 2024 Packit - 102:1.18.1-1 - Update to 1.18.1 upstream release * Tue Oct 22 2024 Packit - 102:1.18-1 - Update to 1.18 upstream release * Wed Oct 09 2024 David Abdurachmanov - 102:1.17-2 - Disable criu support on riscv64 * Tue Sep 10 2024 Lokesh Mandvekar - 102:1.17-1 - bump to 1.17 * Wed Jul 17 2024 Fedora Release Engineering - 1.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 02 2024 Packit - 1.15-1 - Update to 1.15 upstream release * Wed Mar 27 2024 Lokesh Mandvekar - 102:1.14.4-5 - wasmedge should stay enabled for official fedora * Wed Mar 27 2024 Lokesh Mandvekar - 102:1.14.4-4 - remove eln macro * Tue Mar 05 2024 Giuseppe Scrivano - 102:1.14.4-3 - Revert "Add riscv64 support." * Tue Mar 05 2024 Giuseppe Scrivano - 102:1.14.4-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec