File bomberclone.spec of Package bomberclone

# spec file for package bomberclone
# 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

Name:           bomberclone
Version:        0.11.9
Release:        0
Summary:        Clone of the game AtomicBomberMan
License:        GPL-2.0+
Group:          Amusements/Games/Action/Other
Source1:        bomberclone.desktop
Patch0:         %{name}-0.11.9-sdl.patch
Patch1:         %{name}-0.11.9-gcc46.patch
Patch2:         %{name}-0.11.9-prototype.patch
Patch3:         %{name}-0.11.9-dirs.patch
Patch4:         %{name}-0.11.9-libm.patch
Patch5:         %{name}-0.11.9-subscript.patch
#PATCH-FIX-UPSTREAM - gcc6 misleading indentation, 'if' clause does not guard
Patch6:         %{name}-0.11.9-gcc6.patch
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  libSDL_image-devel
BuildRequires:  libSDL_mixer-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Clone of the game AtomicBomberMan.

%setup -q
%patch5 -p1
%patch6 -p1

autoreconf -fi
# --enable-debug (default) adds -ggdb -O0 to CFLAGS - and does nothing else
# -O0 is not desired and -g is set via optflags by RPM, so we pass
# --disable-debug
%configure --docdir=%{_docdir}/%{name} --disable-debug CFLAGS="%{optflags} -fgnu89-inline"
make %{?_smp_mflags}

%suse_update_desktop_file -i %{name}
%fdupes %{buildroot}


openSUSE Build Service is sponsored by