File garden.spec of Package garden

#
# spec file for package garden
#
# Copyright (c) 2017 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:           garden
Version:        1.0.8
Release:        0
Summary:        An innovative old-school 2D vertical shoot-em-up
Group:          Amusements/Games/Action/Arcade
License:        GPL-3.0+
URL:            http://garden.sourceforge.net/
Source0:        %{name}-%{version}.tar.gz
Patch0:         garden-dso.patch
Patch1:         garden-bo.patch
BuildRoot:      %{_tmppath}/build-root-%{name}
BuildRequires:  automake
BuildRequires:  autoconf
BuildRequires:  allegro-devel
BuildRequires:  desktop-file-utils
BuildRequires:  update-desktop-files
BuildRequires:  hicolor-icon-theme
Requires:       allegro

%description
Garden of colored lights is an old school 2D vertical shoot-em-up with some
innovative elements. Innovative graphics, soundtrack and game concept. The
game itself is very challenging and as you progress, you will understand that
you are dealing with a true piece of art...

%prep
%setup -q

# patch for DSO-linking
# https://sourceforge.net/tracker/?func=detail&aid=2982590&group_id=242667&atid=1121672
%patch0 -p1 -b .dso
%patch1

%build
%configure 
make %{?_smp_mflags}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file -i -G 'shoot-em-up' %{name} Game ArcadeGame

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README NEWS AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

%changelog
* Tue Oct 11 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.8-4
- rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild