# Electron payload: stripping corrupts the embedded snapshot; rpm 6 also # fails on the empty debugsource list — see AGENTS.md %define debug_package %{nil} %global __strip /bin/true # bundled python stdlib ships "#!/usr/bin/env python" shebangs brp-mangle rejects %global __brp_mangle_shebangs %{nil} # Bundled Electron + Python runtime must not leak into rpm provides/requires %global __provides_exclude_from ^%{_libdir}/hydra-launcher/.*$ %global __requires_exclude_from ^%{_libdir}/hydra-launcher/.*$ ExclusiveArch: x86_64 Name: hydra-launcher Version: 4.3.0 Release: 1%{?dist} Summary: Game launcher with a self-hosted torrent library source License: MIT AND GPL-3.0-only URL: https://github.com/hydralauncher/hydra Source0: %{url}/releases/download/v%{version}/hydralauncher-%{version}.x86_64.rpm Source1: %{url}/raw/refs/tags/v%{version}/LICENSE BuildRequires: bsdtar BuildRequires: desktop-file-utils Requires: gtk3 Requires: nss Requires: libsecret Requires: alsa-lib Requires: libXScrnSaver %description Hydra is a game launcher that lets you organize and launch your library, track playtime, achievements and leaderboards, and download games from self-hosted torrent library sources. Also launches Epic titles via the bundled Legendary and runs Windows games through umu/proton. Bundles its own Electron and Python runtimes. %prep %setup -T -q -c bsdtar -xf %{SOURCE0} %build %install # bundled Python runtime (legendary) ships tcl/tk libs with a nonexistent # build-machine rpath (/tools/deps/lib); harmless in a bundled payload export QA_RPATHS=0x0002 appdir=%{buildroot}%{_libdir}/hydra-launcher install -d "$appdir" cp -a opt/Hydra/. "$appdir"/ rm -f "$appdir"/resources/app-update.yml install -d %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/hydralauncher < - 4.3.0-1 - Initial package