File cube-escape.spec of Package cube-escape

#
# spec file for package cube-escape
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           cube-escape
Version:        0.9
Release:        0
Summary:        Progress over a maze etched on the surface of a cube
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
License:        GPL-2.0-or-later
Group:          Amusements/Games
URL:            https://code.google.com/archive/p/cube-escape/
Source:         https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/cube-escape/cube-escape-%{version}.tar.gz
Patch0:         %{name}-0.8.patch
Patch1:         %{name}-0.8-nonvoid.patch
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
%define _lto_cflags %{nil}
%make_build OPTFLAGS="%{optflags}"

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

%files
%license COPYING
%doc README
%{_bindir}/%{name}
%{_datadir}/%{name}/

%changelog
openSUSE Build Service is sponsored by