# 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 Electron must not leak into rpm provides/requires %global __provides_exclude_from ^%{_libdir}/heroic/.*$ %global __requires_exclude_from ^%{_libdir}/heroic/.*$ ExclusiveArch: x86_64 aarch64 Name: heroic Version: 2.22.4 Release: 1%{?dist} Summary: Open source game launcher for GOG, Epic Games and Amazon Games License: GPL-3.0-only URL: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher Source0: %{url}/releases/download/v%{version}/Heroic-%{version}-linux-x86_64.rpm Source1: %{url}/releases/download/v%{version}/Heroic-%{version}-linux-aarch64.rpm Source2: %{url}/raw/refs/tags/v%{version}/COPYING BuildRequires: bsdtar BuildRequires: desktop-file-utils Requires: gtk3 Requires: nss Requires: libsecret Requires: alsa-lib Requires: libXScrnSaver %description Heroic is an Open Source Game Launcher for Linux, Windows and macOS. It launches GOG, Epic Games and Amazon Games titles (native and via Wine/Proton). Bundles its own Electron runtime. %prep %setup -T -q -c %ifarch x86_64 bsdtar -xf %{SOURCE0} %else bsdtar -xf %{SOURCE1} %endif %build %install appdir=%{buildroot}%{_libdir}/heroic install -d "$appdir" cp -a opt/Heroic/. "$appdir"/ rm -f "$appdir"/resources/app-update.yml install -d %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/heroic < - 2.22.4-1 - Initial package