File xblast.spec of Package xblast
#
# spec file for package xblast
#
# Copyright (c) 2021 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: xblast
Version: 2.10.4
Release: 0
Summary: Multiplayer Bomberman+Dynablaster Clone
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
URL: http://xblast.sourceforge.net
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-data.tar.bz2
Source2: %{name}.png
Source3: %{name}.desktop
Patch0: fix-multiple-definitions.patch
BuildRequires: autogen
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: xorg-x11-devel
%description
Xblast is a multiplayer only game inspired by classic games like
Bomberman+Dynablaster.
%prep
%setup -q -a 1
%patch0 -p1
%build
autoreconf -fi
%configure --enable-admin --with-otherdatadir="%{_datadir}/%{name}"
%make_build
%install
%make_install
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}
%files
%doc AUTHORS ChangeLog README NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}
%lang(de) %{_datadir}/%{name}/locale/de/LC_MESSAGES/xblast.mo
%lang(fr) %{_datadir}/%{name}/locale/fr/LC_MESSAGES/xblast.mo
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog