Sjeng xboard / eboard compatible chess engine .spec
Posted 03-25-2008 at 09:27 PM by unSpawn
Tags chess engine, rpm, sjeng, spec file
Sjeng: http://www.sjeng.org/
Xboard: http://www.tim-mann.org/xboard.html
Eboard: http://eboard.sourceforge.net/
Xboard: http://www.tim-mann.org/xboard.html
Eboard: http://eboard.sourceforge.net/
Code:
%define origname Sjeng-Free-11.2 %define name sjeng %define ver 11.2 %define rel 1 %define debug_packages %{nil} %define debug_package %{nil} Name: %{name} Summary: %{name}, a xboard compatible chess engine Version: %{ver} Release: %{rel} License: GPL Group: Amusements/Games Source0: %{origname}.tar.gz Prereq: xboard Provides: %{name} Buildarch: noarch Vendor: Gian-Carlo Pascutto URL: http://www.sjeng.org/ BuildRoot: %{_tmppath}/%{name}-%{version} %description Sjeng is a xboard compatible chess engine. Sjeng currently plays standard chess, crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and losers. It can also play variants which have the same rules as normal chess, but a different starting position. Technically, Sjeng is a highly advanced alpha-beta searcher, using modern techniques like history and killer moves, transposition tables, SEE move ordering and pruning, and search enhancements like selective extensions, Aspiration Principal Variation Search, Adaptive nullmove pruning, Extended Futility Pruning and Limited Razoring. Sjeng can use an opening book and learns from the games it plays. On 14th of October 2000, Sjeng won it's first title by becoming the World Computer Crazyhouse Chess Champion. On December 31th 2000, Sjeng became the first computer program to reach the #1 spot on the crazyhouse rating list on the Free Internet Chess Server. It had been #1 on the Internet Chess Club before. Early 2001 Sjeng became the #1 losers/giveaway player on the Internet Chess Club. %prep %setup -n %{origname} %build ./configure --prefix=$RPM_BUILD_ROOT/usr/local make %install if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/usr/local/bin make install install %{name} -m 0755 $RPM_BUILD_ROOT/usr/local/bin/%{name} # Yes, I should make a .desktop file... cat << EOC > $RPM_BUILD_ROOT/usr/local/bin/%{name}.sh #!/bin/sh exec xboard -fcp /usr/local/bin/%{name} exit 0 EOC else echo "Invalid Build root \'"$RPM_BUILD_ROOT"\'" exit 1 fi %clean if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then rm -rf $RPM_BUILD_ROOT else echo "Invalid Build root \'"$RPM_BUILD_ROOT"\'" exit 1 fi %define _docdir /usr/local/share/doc %files %defattr(-,root,root) %doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README THANKS TODO %attr(755,root,root) /usr/local/bin/%{name} %attr(755,root,root) /usr/local/bin/%{name}.sh %changelog * Wed Mar 26 2008 unSpawn - - initial .spec. - patch Makefile.