File moon-lander.spec of Package moon-lander
#
# spec file for package moon-lander
#
# Copyright (c) 2013 SUSE LINUX Products 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:           moon-lander
Version:        1.0
Release:        0
Summary:        A 2D Game of Gravity
License:        BSD-2-Clause
Group:          Amusements/Games/Action/Arcade
Url:            http://magigames.org
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-autopilot.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         %{name}-overflow.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         %{name}-makefile.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2:         %{name}-autopilot.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch3:         %{name}-readme.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch4:         %{name}-datapath.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch5:         %{name}-startup-fix.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch6:         %{name}-overwork1.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch7:         %{name}-expanded.patch
BuildRequires:  SDL-devel
BuildRequires:  SDL_image-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%description
Moon Lander is a 2D game of gravity.  Land your ship on the landing
pad. Do not go too fast or you will crash.
%prep
%setup -q -n %{name} -b0 -a1
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%build
make %{?_smp_mflags}
%install
# make install is broken, using manual
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a moon-lander.bin %{buildroot}%{_bindir}/%{name}
cp -a fonts images sounds %{buildroot}%{_datadir}/%{name}
%files
%defattr(-,root,root)
%doc README.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%changelog