File atanks.spec of Package atanks
#
# spec file for package atanks
#
# Copyright (c) 2022 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: atanks
Version: 6.6
Release: 0
Summary: A fun tank game, which plays like Scorched Earth
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
URL: http://atanks.sourceforge.net/
Source0: http://sourceforge.net/projects/atanks/files/atanks/atanks-%{version}/atanks-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(allegro)
%description
Atomic tanks is a multi-player game in which you attempt to destroy other tanks
while trying to protect your own. You earn money for destroying other tanks;
with this money you can buy upgrades and better weapons for your tank.
This game is similar to Scorched Earth or the Worms series of games.
%prep
%autosetup
%build
%make_build CXXFLAGS='%{optflags}' INSTALLDIR=%{_datadir}/atanks
%install
%make_install INSTALLDIR=%{_datadir}/atanks
rm %{buildroot}%{_datadir}/atanks/{COPYING,README,TODO,Changelog,*.txt}
%fdupes %{buildroot}%{_datadir}/atanks
%files
%license COPYING
%doc README TODO Changelog *.txt
%{_bindir}/atanks
%{_datadir}/atanks
%{_datadir}/applications/atanks.desktop
%{_datadir}/metainfo/io.sourceforge.atanks.metainfo.xml
%{_datadir}/icons/hicolor/48x48/apps/atanks.png
%changelog