File mrboom.spec of Package mrboom

# spec file for package mrboom
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018, Martin Hauke <>
# 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

Name:           mrboom
Version:        4.9
Release:        0
Summary:        A Bomberman clone
License:        MIT
Group:          Amusements/Games/Action/Other
# PATCH-FIX-OPENSUSE mrboom-fix-build.patch -- Fix broken Makefile for standalone builds.
Patch0:         mrboom-fix-build.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(libmodplug)
BuildRequires:  pkgconfig(minizip)
BuildRequires:  pkgconfig(sdl2)

This is an SDL2 version of the original 1999 version of Mr. Boom.
The goal of the game is to bomb away enemies and other players.

%setup -q -n %{name}-libretro-%{version}
%patch0 -p1
sed -i 's|GIT_VERSION := " $(shell git rev-parse --short HEAD)"|GIT_VERSION := " %{version}"|g' Makefile

export CFLAGS="%{optflags} -fPIE"
export CXXFLAGS="%{optflags} -fPIE"
export LDFLAGS="-pie"
make mrboom LIBSDL2=1 %{?_smp_mflags}

%make_install PREFIX=%{_prefix} MANDIR=share/man/man6
# icons
for i in 16x16 32x32 48x48 256x256; do
  install -D -m0644 Assets/hicolor/$i/apps/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/$i/apps/%{name}.png
# desktop file
%suse_update_desktop_file -c %{name} %{name} "8 player Bomberman clone" %{name} %{name} Game ArcadeGame ActionGame

%if 0%{?suse_version} < 1500


%license LICENSE

openSUSE Build Service is sponsored by