File tworld.spec of Package TileWorld
#
# spec file for package tworld (1.3.0)
#
# Copyright (c) Kirk Coombs
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to kcoombs@gmail.com
#
# norootforbuild
Summary: Emulation of the Game "Chip's Challenge"
Name: tworld
Version: 1.3.0
Release: 1
License: GPL
BuildRequires: SDL-devel
Requires: xorg-x11, SDL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Amusements/Games/Logic
Source0: http://www.muppetlabs.com/~breadbox/pub/software/tworld/tworld-1.3.0-CCLP2.tar.gz
Source1: extras.tar
%description
Tile World is an emulation of the game "Chip's Challenge". "Chip's Challenge"
was originally written for the Atari Lynx by Chuck Sommerville, and was later
ported to MS Windows by Microsoft (among other ports).
"Chip's Challenge" is a game made up of both intellectually engaging puzzles
and situations demanding fast reflexes. As you might have guessed, it is a
tile-based game. The object of each level is simply to get out -- i.e., to
find and achieve the exit tile. This simple task, however, can sometimes be
extremely challenging.
%prep
%setup
%setup -a 1
%build
./configure
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/usr/local/share/tworld/sets
mkdir -p $RPM_BUILD_ROOT/usr/local/share/tworld/data
mkdir -p $RPM_BUILD_ROOT/usr/local/share/tworld/res
mkdir -p $RPM_BUILD_ROOT/usr/local/man/man6
cp -i ./tworld $RPM_BUILD_ROOT/usr/local/bin/
cp -i sets/*.dac $RPM_BUILD_ROOT/usr/local/share/tworld/sets/
cp -i data/*.dat $RPM_BUILD_ROOT/usr/local/share/tworld/data/
cp -i res/rc $RPM_BUILD_ROOT/usr/local/share/tworld/res/
cp -i res/*.bmp $RPM_BUILD_ROOT/usr/local/share/tworld/res/
cp -i res/*.txt $RPM_BUILD_ROOT/usr/local/share/tworld/res/
cp -i res/*.wav $RPM_BUILD_ROOT/usr/local/share/tworld/res/
cp -i docs/tworld.6 $RPM_BUILD_ROOT/usr/local/man/man6/
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
cp docs/* $RPM_BUILD_ROOT/%{_docdir}/%{name}
cp tworld.png $RPM_BUILD_ROOT/%{_docdir}/%{name}
cp tworld.desktop $RPM_BUILD_ROOT/usr/share/applications
%clean
rm -rf $RPM_BUILD_ROOT/
%files
%defattr(-,root,root)
/usr/local/bin/tworld
/usr/local/share/tworld/
/usr/local/man/man6/tworld.6.gz
%{_docdir}/%{name}
/usr/share/applications/tworld.desktop
%changelog
* Fri Jan 25 2008 Kirk Coombs <kcoombs@gmail.com>
- Initial build from 1.3.0 CCLP2 sources