File alephone-marathon2.spec of Package alephone-marathon2

# spec file for package alephone-marathon2
# Copyright (c) 2024 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

Name:           alephone-marathon2
Version:        20240119
Release:        0
Summary:        Bungie Game
License:        SUSE-Freeware
Group:          Amusements/Games/3D/Shoot
# The icon was converted from a .ico file within the alephone package
Source1:        %{name}.png
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires(post): update-desktop-files
Requires:       alephone = %{version}
Provides:       marathon2 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Fresh from your triumph on the starship Marathon, you are seized by
the rogue computer Durandal to do his bidding in a distant part of
the galaxy. Within the ruins of an ancient civilization, you must
seek the remnants of a lost clan and uncover their long-buried secrets.
Battle opponents ancient and terrible, with sophisticated weapons
and devious strategies, all the while struggling to escape the
alien nightmare…

This release of Marathon 2: Durandal includes the classic graphics,
and revamped high-definition textures and monsters from the
Xbox Live Arcade edition.

%setup -q -c -n %{name}-%{version}

# Creates a script that will be utilized by desktop file
cat > %{name}.sh <<EOF
/usr/bin/alephone %{_datadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/%{name}
mv -v Marathon\ 2/* %{buildroot}%{_datadir}/%{name}/

install -D -p -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

%suse_update_desktop_file -c %{name} "Marathon 2" "Marathon 2" %{name} %{name} "Game;ActionGame;"
%fdupes -s %{buildroot}/%{_prefix}


openSUSE Build Service is sponsored by