Name: virt-firmware-rs Version: 25.8 Release: %autorelease Summary: Tools for EFI and virtual machine firmware License: MIT URL: https://gitlab.com/kraxel/virt-firmware-rs Source0: https://gitlab.com/kraxel/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz Source1: %{name}-vendor-v%{version}.tar.gz Source2: config-vendor.toml BuildRequires: cargo rustc BuildRequires: pkgconfig(libudev) %description A collection of tools to deal with efi and virtual machine firmware. This package has linux tools. %prep %autosetup -n %{name}-v%{version} -p1 tar xf %{SOURCE1} mkdir -p .cargo cp %{SOURCE2} .cargo/config.toml %build cargo build --release --package virtfw-efi-tools --features udev cargo build --release --package virtfw-efi-tools cargo build --release --package virtfw-igvm-tools %install # efi-tools + igvm-tools install -d %{buildroot}%{_bindir} install -v -m 755 target/release/generate-boot-csv %{buildroot}%{_bindir} install -v -m 755 target/release/list-sb-vars %{buildroot}%{_bindir} install -v -m 755 target/release/mini-bootcfg %{buildroot}%{_bindir} install -v -m 755 target/release/uefi-boot-menu %{buildroot}%{_bindir}/uefi-boot-menu-rs install -v -m 755 target/release/igvm-inspect %{buildroot}%{_bindir} install -v -m 755 target/release/igvm-wrap %{buildroot}%{_bindir} # rename readme files for dir in efi-apps efi-tools igvm-tools; do cp -v ${dir}/README.md README.${dir}.md done %files %license LICENSE %doc README.md %doc README.efi-tools.md %doc README.igvm-tools.md %{_bindir}/generate-boot-csv %{_bindir}/list-sb-vars %{_bindir}/mini-bootcfg %{_bindir}/uefi-boot-menu-rs %{_bindir}/igvm-inspect %{_bindir}/igvm-wrap %changelog %autochangelog