Summary: The GNU chess program. Name: gnuchess Version: 4.0.pl80 Release: 1 Copyright: GPL Group: Amusements/Games Source: ftp://ftp.gnu.org/gnu/chess/gnuchess-%{version}.tar.gz Buildroot: /var/tmp/chess-root Provides: chessprogram Prefix: %{_prefix} %ifarch ia64 %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define DEFCC cc %endif %description The gnuchess package contains the GNU chess program. By default, GNUchess uses a curses text-based interface. Alternatively, GNUchess can be used in conjunction with the xboard user interface and the X Window System for a graphical chessboard. Install the gnuchess package if you would like to play chess on your computer. You'll also need to install the curses package. If you'd like to use a graphical interface with GNUchess, you'll also need to install the xboard package and the X Window System. %prep %setup -q %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi cd src rm -f config.status config.cache %configure make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/lib/games/gnuchess $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT%{prefix}/bin $RPM_BUILD_ROOT%{prefix}/lib mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6 cd src %makeinstall MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man6 cd $RPM_BUILD_ROOT%{prefix}/bin /usr/bin/strip * || : (cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{prefix}/bin/* . cd - ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc doc/ARTICLE* doc/C* doc/GENERAL doc/HEURISTICS doc/MOVE-GEN doc/PORTING %{prefix}/bin/gnuchess %{prefix}/bin/gnuchessr %{prefix}/bin/gnuchessn %{prefix}/bin/gnuchessx %{prefix}/bin/gnuchessc %{prefix}/bin/postprint %{prefix}/bin/gnuan %{prefix}/bin/game %{prefix}/lib/gnuchess.lang %{prefix}/lib/eco.pgn %{prefix}/lib/gnuchess.data %{prefix}/lib/gnuchess.eco %{_mandir}/man6/* /usr/bin/* %changelog * Mon May 21 2001 David Clissold - first build for AIX Toolbox * Thu Jul 13 2000 Prospector - automatic rebuild * Fri Jun 10 2000 Bill Nottingham - rebuid in new environment * Mon Apr 3 2000 Bernhard Rosenkraenzer - Rebuild with new ncurses - do NOT update to 5.00 because it sucks: The UI is gone, the print tools are gone, and the Makefile contains DOS-specific instructions. * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Sat Aug 14 1999 Bill Nottingham - provide chessprogram, don't require xboard * Fri Jul 29 1999 Bill Nottingham - update to 4.0pl80 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Mon Jan 23 1999 Michael Maher - changed group name * Thu Dec 17 1998 Michael Maher - rebuilt for 6.0, cleaned up spec file. * Fri May 01 1998 Prospector System - translations modified for de, fr, tr * Wed Apr 15 1998 Erik Troan - built against new ncurses * Fri Oct 17 1997 Donnie Barnes - BuildRoot'ed * Thu Jul 10 1997 Erik Troan - built against glibc