File khunphan.spec of Package khunphan

# spec file for package khunphan
# Copyright (c) 2011 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

Name:           khunphan
BuildRequires:  SDL_image-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  automake
BuildRequires:  freeglut-devel
BuildRequires:  gcc-c++
BuildRequires:  libdrm-devel
BuildRequires:  libpng-devel
BuildRequires:  libxml2-devel
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-Mesa-devel
Summary:        Traditional Thai Puzzle Board Game in 3D with Wooden Blocks
Version:        0.55
Release:        0
Source1:        %name.desktop
Patch:          khunphan-0.55-codecleanup.diff
Patch1:         khunphan-freeglut.diff
Patch2:         khunphan-DESTDIR.diff
Patch3:         khunphan-0.55-png_uint_32.diff
Group:          Amusements/Games/3D/Other
License:        GPL-2.0+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _bindir  /usr/games/
%define _datadir /usr/share/games/

The goal of this game is to move the biggest token to a specific
position. A tutorial and solution hint is available for beginners. The
game is visible as a three-dimensional model with different camera
positions. All movements, including the menus, are physically

Different themes, like wood, rock, metal, marble, bubbles, and
painting, are available. Themes influence both the display and the
sound effects. Ambient and Drum & Bass music from Nifflas
( gives the game a unique atmosphere.

%setup -q
chmod -x khunphan/{*.cpp,*.h}
rm -f aclocal.m4 acinclude.m4 configure.files*
cp %{S:2} .

autoreconf -fi
make %{?_smp_mflags}

#install -D -m 755 -o games -g games %name %buildroot/%{binary}
#install -d -m 755 -o games -g games	  %buildroot/%{datadir}
#cp -rp data/.				  %buildroot/%{datadir}
%suse_update_desktop_file -i %name Game LogicGame

%attr(-,root,root) %doc README