# Ventoy ships prebuilt binaries without build-ids or debug info %undefine _missing_build_ids_terminate_build %global debug_package %{nil} %global release_url https://github.com/ventoy/Ventoy # sha256 of Source0; update together with Version %global ventoy_checksum d86ff9de63d94c8b8f1f6b14d23c55af4b88e8207bf2893890892a6a97b1ad54 Name: ventoy Version: 1.1.18 Release: 2%{?dist} Summary: Tool to create bootable USB drives for ISO/WIM/IMG/VHD(x)/EFI files License: GPL-3.0-or-later URL: https://www.ventoy.net/ Source0: %{release_url}/releases/download/v%{version}/%{name}-%{version}-linux.tar.gz Source1: %{release_url}/raw/master/ICON/logo_256.png Source2: ventoy-launcher.sh Source3: ventoy.desktop # Architectures upstream ships Linux binaries for (i386 is also shipped, # but has no matching Fedora arch name) ExclusiveArch: x86_64 aarch64 mips64el BuildRequires: desktop-file-utils Requires: xz # VentoyGUI asks for root through pkexec Recommends: polkit Requires: hicolor-icon-theme %description Ventoy can be installed on a USB flash drive, local disk, SSD (NVMe), or SD Card and it will directly boot from the selected .iso, .wim, .img, .vhd(x), or .efi file(s) added. Ventoy does not extract the image file(s) to the USB drive, but uses them directly. It is possible to place multiple ISO images on a single device and select the image to boot from the menu displayed just after Ventoy boots. MBR and GPT partition styles, x86 Legacy BIOS and various UEFI boot methods (including persistence) are supported. ISO files larger than 4 GB can be used. Terminal commands: ventoy (Ventoy2Disk.sh), ventoy-gui, ventoy-web and ventoy-plugson. Ventoy itself is installed in /opt/ventoy. %prep # Refuse to build if the downloaded release doesn't match the expected checksum echo "%{ventoy_checksum} %{SOURCE0}" | sha256sum -c - %setup -q %build # Nothing to build: upstream ships prebuilt binaries %install mkdir -p %{buildroot}/opt/ventoy cp -a . %{buildroot}/opt/ventoy/ # Drop binaries for other architectures for arch in i386 x86_64 aarch64 mips64el; do [ "$arch" = "%{_arch}" ] && continue rm -rf %{buildroot}/opt/ventoy/tool/$arch %{buildroot}/opt/ventoy/VentoyGUI.$arch done # Upstream ships this data file as executable chmod 0644 %{buildroot}/opt/ventoy/tool/languages.json # Launcher commands in $PATH: one script that cd's into /opt/ventoy and runs # the tool matching the name it was called by (symlinks straight into # /opt/ventoy don't work, Ventoy's tools look for ./tool relative to $0/cwd) mkdir -p %{buildroot}%{_bindir} sed 's/@ARCH@/%{_arch}/' %{SOURCE2} > %{buildroot}%{_bindir}/ventoy chmod 0755 %{buildroot}%{_bindir}/ventoy for cmd in ventoy-gui ventoy-web ventoy-plugson; do ln -s ventoy %{buildroot}%{_bindir}/$cmd done # Icon and menu entry install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ventoy.png desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3} # Hidden entries matching the app IDs the GUI front ends' windows report # (Ventoy2Disk.gtk3, Ventoy2Disk.qt5, ...), so GNOME/KDE show the Ventoy # name and icon for the running window instead of a generic one for fe in gtk2 gtk3 qt5; do cat > Ventoy2Disk.$fe.desktop < - 1.1.18-2 - Add ventoy, ventoy-gui, ventoy-web and ventoy-plugson commands to $PATH - Launch the GUI through ventoy-gui, which stays alive as pkexec's parent, so the menu entry works from any desktop launcher (no Terminal=true needed) - Fix menu entry: Categories=Utility;X-GNOME-Utilities; and themed icon - Add hidden entries for the GUI windows' app IDs so GNOME and KDE show the Ventoy icon for the running window - Install VentoyGUI 0755 instead of world-writable 0777 - Install the whole upstream tree instead of a hand-written file list (adds the missing vtoygpt, mkexfatfs_static, create_ventoy_iso_part_dm.sh) - Drop the bogus per-file Provides, the redundant source download in %%prep and the obsolete update-desktop-database scriptlet - Use ExclusiveArch x86_64 aarch64 mips64el and an SPDX license tag * Sun Apr 20 2025 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.1.05 * Wed Jun 05 2024 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.98 * Sat Apr 27 2024 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.97 * Sun Oct 29 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.96 * Sat Jul 22 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.94 * Sat Jun 24 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.93 * Sat Apr 08 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.91 * Mon Mar 27 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.90 * Fri Feb 17 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Added /opt/ventoy removal in post-uninstall section * Fri Feb 03 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Added checksum checking * Wed Feb 01 2023 Karlis Kavacis karlis.kavacis@protonmail.com - Version change to v1.0.88 * Tue Nov 22 2022 Karlis Kavacis karlis.kavacis@protonmail.com - Initial RPM Build