# Upstream source build is impractical (cross grub/edk2 + root image steps) %define debug_package %{nil} # Bundle ships 32-bit ELFs whose sonames must not leak into requires %global __requires_exclude_from ^/opt/ventoy/.*$ %global __provides_exclude_from ^/opt/ventoy/.*$ %global __strip /bin/true ExclusiveArch: x86_64 Name: ventoy Version: 1.1.18 Release: 1%{?dist} Summary: A new bootable USB solution License: GPL-3.0-or-later URL: https://www.ventoy.net Source0: https://github.com/ventoy/Ventoy/releases/download/v%{version}/ventoy-%{version}-linux.tar.gz Source1: https://raw.githubusercontent.com/ventoy/Ventoy/v%{version}/COPYING BuildRequires: desktop-file-utils Requires: bash Requires: dosfstools Recommends: parted Recommends: polkit %description Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files. You need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot from it. %prep %setup -T -q -b 0 -n ventoy-%{version} %build %install install -d %{buildroot}/opt/ventoy cp -a . %{buildroot}/opt/ventoy/ rm -f %{buildroot}/opt/ventoy/VentoyGUI.{aarch64,i386,mips64el} install -d %{buildroot}%{_bindir} for cmd in Ventoy2Disk VentoyWeb VentoyPlugson; do cat > %{buildroot}%{_bindir}/$(echo $cmd | tr 'A-Z' 'a-z') < %{buildroot}%{_bindir}/ventoygui < %{buildroot}%{_bindir}/ventoy-persistent < %{buildroot}%{_bindir}/ventoy-extend-persistent < %{buildroot}%{_datadir}/applications/ventoy.desktop < - 1.1.18-1 - Initial package