Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 47b267623d63c3e5746edc6adeb39808 > files > 3

grhino-0.13.0-1mdk.src.rpm

%define version 0.13.0
%define release 1mdk

Summary:	An Othello/Reversi chess with strong AI
Name:		grhino
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Games/Boards
URL:		http://rhino.sourceforge.net/
Source:		http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		grhino-0.13.0-destdir.patch.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	libgnomeui2-devel
BuildRequires:	scrollkeeper
Prereq:		scrollkeeper

%description
GRhino, or Rhino its former name, is an Othello/Reversi game on Linux
and other UNIX-like systems. What distinguish GRhino from most other
Othello games is that GRhino will be targeted for experienced Othello
players. Strong AI is the main focus and the ultimate target strength
of the AI is that it should be able to beat the best human player at
the highest difficulty level.

%prep
%setup -q
%patch0 -p1 -b .destdir

%build
%configure2_5x --bindir=%{_gamesbindir}
%make


%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p %{buildroot}%{_menudir}
cat << _EOF_ > %{buildroot}%{_menudir}/%{name}
?package(%{name}): \
 command="%{_gamesbindir}/%{name}" \
 icon="strategy_section.png" \
 longtitle="An Othello/Reversi chess with strong AI" \
 needs="x11" \
 section="More Applications/Games/Boards" \
 title="GRhino"
_EOF_

# move omf file to correct location
mkdir -p %{buildroot}%{_datadir}/omf/%{name}
mv %{buildroot}%{_datadir}/gnome/help/%{name}/C/*.omf %{buildroot}%{_datadir}/omf/%{name}/

%find_lang %{name} --with-gnome --all-name


%post
%update_menus
if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi

%postun
%clean_menus
if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi

%clean
rm -rf %{buildroot}


%files -f %{name}.lang
%defattr(-,root,root)
%doc README
%{_gamesbindir}/*
%{_menudir}/%{name}
%{_datadir}/%{name}-%{version}
%{_datadir}/omf/*

%changelog
* Sun Mar 27 2005 Abel Cheung <deaddog@mandrake.org> 0.13.0-1mdk
- New release 0.13.0
- Redo P0

* Mon Nov 29 2004 Abel Cheung <deaddog@mandrake.org> 0.12.0-2mdk
- Likely Rafael and me submitted same package at same time, so
  rebuild and pray for everything to automatically clean up themselves
  (Rafael, if you really did submit grhino, can you add your changes here?)

* Mon Nov 22 2004 Abel Cheung <deaddog@mandrake.org> 0.12.0-1mdk
- First Mandrake package