%global upstream_name vmbuddy %global giturl https://github.com/tulilirockz/vmbuddy.git %global gitbranch main %global gitcommit %(git ls-remote %{giturl} refs/heads/%{gitbranch} 2>/dev/null | awk '{print $1}') %global gitshort %(c="%{gitcommit}"; if [ -n "$c" ]; then echo "${c:0:7}"; else echo "unknown"; fi) Name: vmbuddy Version: 0.1.3.r5.g4f7ec5b Release: 100.2.2%{?dist} Summary: QEMU wrapper written in Bash with sensible defaults License: BSD-3-Clause URL: https://github.com/tulilirockz/vmbuddy Patch0: vmbuddy-system-firmware.patch ExclusiveArch: x86_64 aarch64 BuildRequires: git BuildRequires: patch Requires: bash Requires: coreutils Requires: util-linux Requires: procps-ng Requires: swtpm Requires: swtpm-tools %ifarch x86_64 Requires: qemu-system-x86-core Requires: edk2-ovmf %endif %ifarch aarch64 Requires: qemu-system-aarch64-core Requires: edk2-aarch64 %endif Recommends: qemu-ui-gtk Recommends: qemu-audio-pipewire Recommends: qemu-device-display-virtio-gpu-gl Recommends: qemu-device-display-virtio-vga-gl Recommends: qemu-device-usb-host Recommends: qemu-device-usb-redirect Provides: vmbuddy = %{version}-%{release} Conflicts: vmbuddy %description vmbuddy is a small Bash wrapper around QEMU. It autodetects the host QEMU binary, sets up UEFI, TPM, virtio devices, networking, audio, display, and other QEMU defaults for quickly launching VM disk images. This git package clones the upstream main branch during the RPM build. %prep rm -rf %{upstream_name} git clone --depth 1 --branch %{gitbranch} %{giturl} %{upstream_name} cd %{upstream_name} patch -Np1 -i %{PATCH0} %build # Nothing to build. vmbuddy is a shell script. %install install -Dm0755 %{upstream_name}/vmbuddy.sh %{buildroot}%{_bindir}/vmbuddy install -Dm0644 %{upstream_name}/LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE install -Dm0644 %{upstream_name}/README.md %{buildroot}%{_docdir}/%{name}/README.md %files %license %{_licensedir}/%{name}/LICENSE %doc %{_docdir}/%{name}/README.md %{_bindir}/vmbuddy %changelog * Fri Jun 26 2026 Sl (Shahaf Levi) - 0.1.0^git%{gitshort}-3 - Fix malformed firmware autodetection patch hunk length * Fri Jun 26 2026 Sl (Shahaf Levi) - 0.1.0^git%{gitshort}-2 - Patch upstream firmware autodetection to prefer system OVMF/AAVMF paths on Arch and Fedora - Keep upstream Flatpak firmware path as fallback for --flatpak usage * Fri Jun 26 2026 Sl (Shahaf Levi) - 0.1.0^git%{gitshort}-1 - Initial git package for vmbuddy built from upstream main - Support x86_64 and aarch64 builds