File cube-escape.spec of Package cube-escape

#
# spec file for package cube-escape
#
# Copyright (c) 2012 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:           cube-escape
Version:        0.8
Release:        0
Url:            http://code.google.com/p/cube-escape/
Summary:        Progress over a maze etched on the surface of a cube
License:        GPL-2.0+
Group:          Amusements/Games
Source:         http://cube-escape.googlecode.com/files/%{name}-%{version}-src.tar.gz
Patch0:         %{name}-%{version}.patch
Patch1:         %{name}-%{version}-nonvoid.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  SDL-devel
BuildRequires:  SDL_image-devel
BuildRequires:  SDL_ttf-devel
Requires:       liberation-fonts

%description
You are inside a cube made up of numerous shells, with a maze etched
on the surface of each shell. Escape the cube by traveling through
the mazes, including over cube edges, until you find an upward exit.
When you reach the red exit, you win.

%prep
%setup -q
%patch0
%patch1

%build
make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS"

%install
install -D -m 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp data/*.png $RPM_BUILD_ROOT%{_datadir}/%{name}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by