File atanks.spec of Package atanks

#
# spec file for package atanks
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           atanks
Version:        6.5
Release:        0
Summary:        A fun tank game, which plays like Scorched Earth
License:        GPL-2.0+
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 Scorched Earth or the Worms series of games.

%prep
%setup -q

%build
make CXXFLAGS='%{optflags}' %{?_smp_mflags}

%install
%make_install INSTALLDIR=%{_datadir}/atanks
rm -f %{buildroot}%{_datadir}/atanks/{COPYING,README,TODO,Changelog,*.txt}
%fdupes %{buildroot}%{_datadir}/atanks

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%doc COPYING README TODO Changelog *.txt
%{_bindir}/atanks
%{_datadir}/atanks
%{_datadir}/applications/atanks.desktop
%{_datadir}/icons/hicolor/48x48/apps/atanks.png

%changelog