File amoebax.spec of Package amoebax
#
# spec file for package amoebax
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2013 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: amoebax
Version: 0.2.1
Release: 0
Summary: Action-puzzle game
License: GPL-2.0-or-later AND LAL-1.2
Group: Amusements/Games/Action/Other
URL: https://www.emma-soft.com/games/amoebax/
Source0: https://www.emma-soft.com/games/amoebax/download/amoebax-0.2.1.tar.bz2
Source99: amoebax-rpmlintrc
# PATCH-FIX-OPENSUSE amoebax-fix-invalid-conversion-error.patch malcolmlewis@opensuse.org -- Fix build error for later gcc changes.
Patch0: amoebax-fix-invalid-conversion-error.patch
# PATCH-FIX-OPENSUSE fix-desktop-and-appdata.patch -- Fix icon name in desktopfile
Patch1: fix-desktop-and-appdata.patch
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: inkscape
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
%description
Amoebax is a cute and addictive action-puzzle game. Due an awful mutation,
some amoeba's species have started to multiply until they take the world
if you can't stop them. Fortunately the mutation made then too unstable
and lining up four or more will make them disappear.
Follow Kim or Tom through 6 levels in their quest to prevent the cute
multiplying amoebas to take the world and become the new Amoeba Master.
Watch out for the cute but amoeba's controlled creatures that will try to
put and end to your quest.
Amoebax is designed with levels for everyone, from children to adults.
With the training mode everybody will quickly become a master and the
tournament mode will let you have a good time with your friends. There is
also catchy music, funny sound effects, and beautiful screens that sure
appeal to everyone in the family.
%prep
%autosetup -p1
%build
%configure
%make_build
%install
%make_install
# Remove pdf as we package with %%doc
rm %{buildroot}%{_datadir}/doc/%{name}/manual.pdf
# Appdata
install -Dm644 data/amoebax.appdata.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
# Install icons
export INKSCAPE="-o"
for res in 256 128 96 64 48 24; do
install -d "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/"
inkscape $INKSCAPE "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/%{name}.png" -w "$res" -h "$res" data/amoebax.svg
done
install -vDm644 %{buildroot}%{_datadir}/pixmaps/amoebax.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
rm -rv %{buildroot}%{_datadir}/pixmaps
%files
%doc AUTHORS NEWS README* THANKS doc/manual.pdf
%license COPYING*
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/amoebax.6%{?ext_man}
%{_datadir}/icons/hicolor/*/apps/amoebax.*
%{_datadir}/metainfo/amoebax.appdata.xml
%changelog