File alephone-marathon2.spec of Package alephone-marathon2
#
# spec file for package alephone-marathon2
#
# Copyright (c) 2025 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: alephone-marathon2
Version: 20250829
Release: 0
Summary: Bungie Game
License: SUSE-Freeware
Group: Amusements/Games/3D/Shoot
URL: https://alephone.lhowon.org/
Source: https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{version}/Marathon2-%{version}-Data.zip
# The icon was converted from a .ico file within the alephone package
Source1: %{name}.png
BuildRequires: fdupes
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: alephone = %{version}
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
Provides: marathon2 = %{version}
BuildArch: noarch
%description
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.
%prep
%setup -q -c
%build
# Creates a script that will be utilized by desktop file
cat > %{name}.sh <<EOF
#!/bin/sh
%{_bindir}/alephone %{_datadir}/%{name}
EOF
%install
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 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} "Marathon 2" "Marathon 2" %{name} %{name} "Game;ActionGame;"
%fdupes -s %{buildroot}/%{_prefix}
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog