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 http://bugs.opensuse.org/
#
Name: bomberclone
Version: 0.11.9
Release: 0
Summary: Clone of the game AtomicBomberMan
License: GPL-2.0+
Group: Amusements/Games/Action/Other
Url: http://www.bomberclone.de/
Source0: http://downloads.sourceforge.net/project/bomberclone/bomberclone/%{name}-%{version}.tar.gz
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 marguerite@opensuse.org - 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
%description
Clone of the game AtomicBomberMan.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
%patch6 -p1
%build
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}
%install
%make_install
%suse_update_desktop_file -i %{name}
%fdupes %{buildroot}
%files
%defattr(-,root,root)
%{_docdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog