File clanbomber.spec of Package clanbomber

#
# spec file for package clanbomber
#
# Copyright (c) 2016 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:           clanbomber
Version:        1.05
Release:        0
Summary:        A Bomberman or Dynablaster Clone
License:        GPL-2.0+
Group:          Amusements/Games/Action/Arcade
Url:            http://clanbomber.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}.png
# PATCH-FIX-OPENSUSE clanbomber-1.05-destdir.patch
Patch0:         %{name}-%{version}-destdir.patch
# PATCH-FIX-OPENSUSE clanbomber-1.05-includes.patch
Patch1:         %{name}-%{version}-includes.patch
# PATCH-FIX-OPENSUSE clanbomber-1.05-make.patch
Patch2:         clanbomber-1.05-make.patch
# PATCH-FIX-UPSTREAM fix-conversion.patch -- https://sourceforge.net/p/clanbomber/bugs/8/
Patch3:         fix-conversion.patch
BuildRequires:  SDL-devel
BuildRequires:  automake
BuildRequires:  clanlib065-devel
BuildRequires:  gcc-c++
BuildRequires:  hermes-devel
BuildRequires:  libmikmod-devel
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ClanBomber is a very nice Bomberman-like and Dynablaster-like game. It
has multiplayer support (8 players), but no network support yet.

%prep
%setup -q
%patch0
%patch1
%patch2 -p1
%patch3 -p1

%build
autoreconf --force --install
%configure
make %{?_smp_mflags}

%install
%make_install
sed -e "s|pics/|%{_datadir}/clanbomber/pics/|g" \
    -e "s|wavs/|%{_datadir}/clanbomber/wavs/|g" \
    -i %{buildroot}%{_datadir}/clanbomber/clanbomber.scr
mkdir -p %{buildroot}%{_prefix}/games
%suse_update_desktop_file -i clanbomber Game ArcadeGame
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog IDEAS QUOTES README
%{_bindir}/clanbomber
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_datadir}/clanbomber

%changelog
openSUSE Build Service is sponsored by