File zatackax.spec of Package zatackax
#
# spec file for package zatackax
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020-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: zatackax
Version: 1.1.0
Release: 0
Summary: A remake of the classic game Achtung, die Kurve!
# game content (graphics, audio) are licensed under Creative Commons Attribution-ShareAlike (CC BY-SA)
License: GPL-3.0-or-later
Group: Amusements/Games/Other
URL: https://github.com/simenheg/zatackax
Source: https://github.com/simenheg/zatackax/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(sdl)
%description
Zatacka X is a modern, free remake of the classic Achtung, die
Kurve!. In addition to all the features from the original game,
Zatacka X includes special weapons, updated graphics, sound
effects and AI controlled opponents.
%prep
%setup -q
find -type f -name *.txt -exec chmod -x {} +
chmod -x COPYING NEWS.md AUTHORS.md README.md
%build
# FIXME: you should use the %%configure macro
./configure --prefix=%{buildroot}%{_prefix}/
make
%install
make install prefix=%{buildroot}%{_prefix}/
rm %{buildroot}%{_datadir}/zatackax/zatackax.desktop
%fdupes -s %{buildroot}
%files
%license COPYING
%doc NEWS.md AUTHORS.md README.md
%{_bindir}/zatackax
%{_datadir}/zatackax
%{_datadir}/applications/zatackax.desktop
%{_datadir}/icons/hicolor/128x128/apps/zatackax.png
%changelog