File cervi.spec of Package cervi
#
# spec file for package cervi (Version 0.4.0)
#
# norootforbuild
Name: cervi
BuildRequires: esound-devel gcc-c++ timidity
%if %{defined fedora_version}
BuildRequires: gtk+-devel
%else
BuildRequires: gtk-devel
%endif
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} < 1020
BuildRequires: pkgconfig
%endif
Summary: Multiplayer Game
Version: 0.4.0
Release: 1
License: GPL
Group: Amusements/Games/Arcade
URL: http://www.nomi.cz
Source: %{name}-svn-%{version}.tar.bz2
Source1: %{name}.png
Patch1: %{name}-svn-%{version}-makefile.patch
Patch2: %{name}-svn-%{version}-intptr.patch
Patch3: %{name}-svn-%{version}-declaration.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: esound
%description
GTK Cervi is clone of Cervi. I'm not really sure if Cervi is original name
of it but I know this game as Cervi so it will be named GTK Cervi. It is
a multiplayer game (for 2-8 players) where players drive their worms. Worms
are getting longer and players mustn't collide with any worm. Winner is the
last surviving worm. For more information see `Gameplay internals' section.
Authors:
--------
Tomáš Janoušek <tomi@nomi.cz>, ICQ #161807083, Brno, Czech Republic
* author and maintainer of this project
* programming
Vladimír Chvátil, Brno, Czech Republic
* made original Cervi, (C) 1993
* Cervi music, (C) 1993
%prep
%setup -q -n cervi-svn-0.4.0
%patch1
%patch2
%patch3
%build
#no configure in package
# use of RPM_OPT_FLAGS are implemented in patch1
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 644 %{S:1} $RPM_BUILD_ROOT/usr/share/pixmaps/
%if 0%{?suse_version}
%suse_update_desktop_file -c %name Cervi "GTK Worms" cervi cervi X-SuSE-ActionGame
%endif
%files
%defattr(-,root,root)
/usr/bin/cervi
/usr/share/cervi
%doc changelog README COPYRIGHT COPYING AUTHORS INSTALL
/usr/share/pixmaps/*
%if 0%{?suse_version}
/usr/share/applications/%name.desktop
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%changelog -n cervi
* Tue Mar 27 2007 - lmichnovic@suse.cz
- fixed pointer casting on 64-bit (*inptr.patch)
* Mon Mar 26 2007 - lmichnovic@suse.cz
- added $DESTDIR and $RPM_OPT_FLAGS to Makefile (*makefile.patch)
* Fri Mar 23 2007 - lmichnovic@suse.cz
- Initial version of cervi 0.4.0 from svn.