File astromenace.spec of Package astromenace
#
# spec file for package astromenace
#
# 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: astromenace
Version: 1.4.3
Release: 0
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
Summary(ru): Хардкорный космический 3D шутер с возможностью апгрейда корабля
License: GPL-3.0-only
Group: Amusements/Games/3D/Shoot
URL: https://www.viewizard.com/
Source0: https://github.com/viewizard/astromenace/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
Requires: %{name}-data = %{version}
%description
Space is a vast area, an unbounded territory where it seems there is a
room for everybody, but reversal of fortune put things differently. The
hordes of hostile creatures crawled out from the dark corners of the
universe, craving to conquer your homeland. Their force is compelling,
their legions are interminable. However, humans didn't give up without
a final showdown and put their best pilot to fight back. These malicious
invaders chose the wrong galaxy to conquer and you are to prove it!
Go ahead and make alien aggressors regret their insolence.
%description -l ru
Чтоб стать абсолютным победителем в игре AstroMenace, вам придется пройти
15 захватывающих миссий и сразиться с более чем 100 различными типами врагов.
Причем один не похож на другого, у каждого есть свое уникальное оружие и свой
собственный стиль борьбы, иногда очень непредсказуемый.
%package data
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
Summary(ru): Хардкорный космический 3D шутер с возможностью апгрейда корабля
Group: Amusements/Games/3D/Shoot
Requires: %{name} = %{version}
%description data
Space is a vast area, an unbounded territory where it seems there is a
room for everybody, but reversal of fortune put things differently. The
hordes of hostile creatures crawled out from the dark corners of the
universe, craving to conquer your homeland. Their force is compelling,
their legions are interminable. However, humans didn't give up without
a final showdown and put their best pilot to fight back. These malicious
invaders chose the wrong galaxy to conquer and you are to prove it!
Go ahead and make alien aggressors regret their insolence.
%description data -l ru
Чтоб стать абсолютным победителем в игре AstroMenace, вам придется пройти
15 захватывающих миссий и сразиться с более чем 100 различными типами врагов.
Причем один не похож на другого, у каждого есть свое уникальное оружие и свой
собственный стиль борьбы, иногда очень непредсказуемый.
%prep
%setup -q
# fix wrong-file-end-of-line-encoding
sed -e "s/\r$//" -i CHANGELOG.md LICENSE.md README.md licenses/*.txt
# fix spurious-executable-perm
chmod -x CHANGELOG.md LICENSE.md README.md licenses/*.txt
%build
%cmake \
-DDATADIR=%{_datadir}/astromenace
%make_build
%install
install -D -m 0644 build/gamedata.vfs %{buildroot}%{_datadir}/%{name}/gamedata.vfs
install -D -m 0755 build/astromenace %{buildroot}%{_bindir}/astromenace
install -D -m 0644 share/astromenace.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
install -D -m 0644 share/astromenace_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -D -m 0644 share/astromenace_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -D -m 0644 share/astromenace.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -i -r astromenace "Game;ActionGame;"
%files
%license LICENSE.md licenses/*
%doc CHANGELOG.md README.md
%{_bindir}/astromenace
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%files data
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%changelog