File khunphan.spec of Package khunphan

#
# spec file for package khunphan (Version 0.55)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           khunphan
BuildRequires:  SDL_image-devel SDL_mixer-devel freeglut-devel gcc-c++ libdrm-devel
BuildRequires:  libstdc++ libstdc++-devel libxml2-devel update-desktop-files xorg-x11-Mesa-devel
Summary:        Traditional Thai Puzzle Board Game in 3D with Wooden Blocks
Version:        0.55
Release:        327
Source0:        http://www.ibiblio.org/pub/Linux/games/strategy/khunphan-0.55.tar.bz2
Source1:        %name.desktop
Source2:        configure.ac
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 v2 or later
Url:            http://geocities.com/khunphangame/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _bindir  /usr/games/
%define _datadir /usr/share/games/

%description
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
calculated.

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
(www.nifflas.com) gives the game a unique atmosphere.



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

%build
autoreconf -fi
%configure

%install
%makeinstall
#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

%files
%attr(-,root,root) %doc README
%defattr(-,games,games)
%{_bindir}/*
%{_datadir}/*
/usr/share/applications/%name.desktop

%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Oct 11 2007 - pth@suse.de
- Add missing includes.
- Fix warnings reported by rpmlint.
* Fri Feb 24 2006 - nadvornik@suse.cz
- correctly use png_uint_32 [#60738]
* Fri Jan 27 2006 - pth@suse.de
- Fux BuildReqires
* Fri Jan 27 2006 - pth@suse.de
- Add mesa-devel to BuildRequires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Apr 30 2005 - pth@suse.de
- Get rid of unnecessary KDE-Stuff kdevelop puts into
  the autoconf files.
- Fix the handling of uint64_t
- Clean up the code.
* Fri Apr 08 2005 - coolo@suse.de
- fix more gcc problems
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Thu Oct 02 2003 - sndirsch@suse.de
- better patch to fix build with freeglut
* Thu Oct 02 2003 - sndirsch@suse.de
- fixed build for using freeglut instead of mesaglut
* Tue Aug 19 2003 - aj@suse.de
- Fix invalid C++.
* Tue Aug 12 2003 - ro@suse.de
- comment broken type definition
* Tue Aug 12 2003 - sndirsch@suse.de
- added destkop file
* Thu Aug 07 2003 - bk@suse.de
- puzzle board game in 3D after a thai saga, implemented with blocks
openSUSE Build Service is sponsored by