%global debug_package %{nil} # libkrun tests require access to "/dev/kvm", which is usually not be available # on build sandboxes. %bcond_with check Name: libkrun Version: 1.6.0~asahikrun Release: 3%{?dist} Summary: Dynamic library providing Virtualization-based process isolation capabilities License: Apache-2.0 URL: https://github.com/containers/libkrun Source0: %{name}-%{version}.tar.gz # libkrun only supports x86_64 and aarch64 ExclusiveArch: x86_64 aarch64 # While this project is composed mostly of Rust code, this is not a # conventional Rust crate. The root of the project is a workspace, there's a C # file that also needs to be compiled, and the resulting binary a dynamic # library providing a C-compatible ABI. # # As a result, we can't fully rely on rust-packaging for managing this package. # Instead, we use some of its tasks (cargo_prep and cargo_test) and combine # them with using the Makefile provided by the project. We also need to manage # BuildRequires manually, as rust-packaging gets confused trying to generate # them dynamically. BuildRequires: rust-packaging >= 21 BuildRequires: glibc-static BuildRequires: patchelf BuildRequires: binutils BuildRequires: git BuildRequires: pipewire-devel BuildRequires: alsa-lib-devel BuildRequires: libepoxy-devel BuildRequires: libdrm-devel BuildRequires: virglrenderer-devel >= 1.0.0~asahikrun BuildRequires: clang-devel BuildRequires: libkrunfw-devel >= 4.0.0~asahikrun %ifarch aarch64 BuildRequires: libfdt-devel %endif Requires: virglrenderer >= 1.0.0~asahikrun %description %{summary}. %package devel Summary: Header files and libraries for libkrun development Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The libkrun-devel package containes the libraries and headers needed to develop programs that use libkrun Virtualization-based process isolation capabilities. %prep %autosetup -S git %build %{make_build} %install %{make_install} PREFIX=%{_prefix} %files %license LICENSE %doc README.md %{_libdir}/libkrun.so.1.6.0 %{_libdir}/libkrun.so.1 %files devel %{_libdir}/libkrun.so %{_libdir}/pkgconfig/libkrun.pc %{_includedir}/libkrun.h %if %{with check} %check %cargo_test %endif %changelog * Wed Jul 19 2023 Sergio Lopez - 1.5.0-4 - Update license specification to conform SPDX format * Wed Jul 19 2023 Sergio Lopez - 1.5.0-3 - Update vm-memory requirement to version 0.12.0 - Update kvm-ioctls requirement to version 0.14.0 - Add a temporary patch to accomodate an API change in kvm-ioctls * Wed May 03 2023 Fabio Valentini - 1.5.0-2 - Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024}) * Thu Feb 09 2023 Sergio Lopez - 1.5.0-1 - Update to version 1.5.0 - Update vm-memory, kvm-bindings, kvm-ioctls, vmm-sys-utils and sev dependencies - Add a patch to update and relax vm-memory dependency * Thu Jan 19 2023 Fedora Release Engineering - 1.4.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 8 2022 Sergio Lopez - 1.4.8-1 - Update to upstream version 1.4.8 - Add crossbeam-channel to the list of dependencies - Update libkrun-remove-sev-deps.diff patch * Fri Aug 26 2022 Cole Robinson - 1.4.2-2 - Allow building with rust-sev-0.3.0 * Wed Aug 17 2022 Sergio Lopez - 1.4.2-1 - Update to upstream version 1.4.2 - Add the libkrun-sev and libkrun-sev-devel subpackages with the SEV variant of the library. * Thu Jul 21 2022 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Sergio Lopez - 1.2.2-1 - Initial package