File HeroicGamesLauncher.spec of Package HeroicGamesLauncher
#
# spec file for package HeroicGamesLauncher-bin
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: HeroicGamesLauncher
Version: 2.15.1
Release: 0
Summary: Open source games launcher for epic and gog games - bin version
License: GPL-3.0-only
Group: Amusements/Games/Other
URL: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher
Source0: %{url}/releases/download/v%{version}/heroic-%{version}.tar.xz
Source1: HeroicGamesLauncher.desktop
Source2: HeroicGamesLauncher.png
BuildRequires: -post-build-checks
BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme
Recommends: gamemode%{?_isa}
Recommends: libvkd3d%{?_isa}
Recommends: mangohud%{?_isa}
Recommends: wine-staging%{?_isa}
Recommends: winetricks%{?_isa}
Provides: HeroicGamesLauncher = %{version}
Conflicts: HeroicGamesLauncher
%description
Heroic is an Open Source Game Launcher for Epic Games Store and
GOG Games (using legendary for epic and gogdl for gog games).
Feature availables right now:
* Login with an existing Epic Games account
* Login with an existing GOG account
* Install/Uninstall Games
* Import an already installed game
* Play online [EAC not supported on Linux]
* Update installed Games
* Repair installed Games
* Move installed games to different folders
* Play games using the default wine and default prefix [Linux]
* Play game with custom wine and prefix [Linux]
* Check basic information about your Games
* Open game page on Epic Store
* Open game page on GOG.com
* Search for the game on ProtonDB [Linux]
* Sync installed games with an existing Epic Games installation
* Sync saves with the cloud [Epic]
%prep
%setup -q -n heroic-%{version}
%check
%build
%install
mkdir -p %{buildroot}/usr/lib
mkdir -p %{buildroot}/usr/bin
tar -xvf %{SOURCE0} -C %{buildroot}/usr/lib/
mv %{buildroot}/usr/lib/heroic-%{version} %{buildroot}/usr/lib/Heroic
ln -s /usr/lib/Heroic/heroic %{buildroot}/usr/bin/heroic
mkdir -p %{buildroot}%{_datadir}/applications/
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/HeroicGamesLauncher.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png
%files
/usr/lib/Heroic
/usr/bin/heroic
%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png
%{_datadir}/applications/HeroicGamesLauncher.desktop
%changelog