File anarch.spec of Package anarch

#
# spec file for package anarch
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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:           anarch
Version:        1.0
Release:        0
Summary:        A Doom-like 3D first person shooter
License:        CC0-1.0
Group:          Amusements/Games/3D/Shoot
URL:            https://drummyfish.gitlab.io/anarch/
Source:         https://gitlab.com/drummyfish/anarch/-/archive/%{version}/%{name}-%{version}.tar.bz2
Patch0:         anarch-fix-build.patch
BuildRequires:  ImageMagick
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(sdl2)

%description
The game is a "pseudo 3D" first person shooter, like Doom, and
consists of 10 levels. The graphics uses a 256 color palette
and is a little simpler than that of Doom, having e.g. no
textures on floor and ceiling and using just 32x32 pixel images.
The engine uses software rendering and 2D raycasting for
rendering. There are multiple enemy types, weapons and items to
pick up. Music is 8bit and procedurally generated (utilizing so
called bytebeat).

%prep
%setup -q
%patch0 -p1

%build
./make.sh sdl

%install
install -D -m 0755 anarch %{buildroot}%{_bindir}/anarch
%suse_update_desktop_file -c %{name} "A Doom-like 3D first person shooter" %{name} %{name} %{name} Game ActionGame
install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
convert -strip assets/ICON.BMP %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

%files
%license LICENSE
%doc README.md
%{_bindir}/anarch
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by