# This library just contains the guest payload to be injected by libkrun into # the VM's memory, so no useful debug info can be generated from it. %global debug_package %{nil} Name: libkrunfw Version: 2.1.1 Release: 1%{?dist} Summary: A dynamic library bundling the guest payload consumed by libkrun License: LGPLv2 and GPLv2 URL: https://github.com/containers/libkrunfw Source0: https://github.com/containers/libkrunfw/archive/refs/tags/v%{version}.tar.gz # This package bundles a customized Linux kernel in a format that can only be # consumed by libkrun, which will run it in an isolated context using KVM # Virtualization. This kernel can't be used for booting a physical machine # and, by being bundled in a dynamic library, it can not be mistaken as a # regular kernel. # # The convenience of distributing a kernel this way and for this purpose was # discussed here: # https://lists.fedorahosted.org/archives/list/kernel@lists.fedoraproject.org/thread/2TMXPCE2VWF7USZA7OHQ3P2SBJAEGCSX/ Source1: https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.15.44.tar.xz # libkrunfw only provides configs for x86_64 and aarch64 as libkrun (the only # consumer of this library) only supports those architectures. ExclusiveArch: x86_64 aarch64 # libkrunfw + packaging requirements BuildRequires: gcc BuildRequires: git-core BuildRequires: make BuildRequires: python3-pyelftools # kernel build requirements BuildRequires: bc BuildRequires: bison BuildRequires: elfutils-devel BuildRequires: flex %ifarch aarch64 BuildRequires: perl-interpreter %endif %description %{summary} %package devel Summary: Header files and libraries for libkrunfw development Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The libkrunfw-devel package contains the libraries needed to develop programs that consume the guest payload integrated in libkrunfw. %prep %autosetup -S git mkdir tarballs cp %{SOURCE1} tarballs/ %build %{make_build} %install %{make_install} PREFIX=%{_prefix} %files %{_libdir}/libkrunfw.so.2 %{_libdir}/libkrunfw.so.%{version} %files devel %{_libdir}/libkrunfw.so %changelog * Mon Jun 06 2022 Sergio Lopez - 2.1.1-1 - Initial package