Summary: The GNU chess program Name: gnuchess Version: 5.08 Release: 1 License: GPLv2+ Group: Amusements/Games URL: ftp://ftp.gnu.org/pub/gnu/chess/ Source0: ftp://ftp.gnu.org/pub/gnu/chess/%{name}-%{version}.tar.gz Source1: ftp://ftp.gnu.org/pub/gnu/chess/%{name}-%{version}.tar.gz.sig # use precompiled book.dat: Source2: book_1.01.dat.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Provides: chessprogram BuildRequires: readline-devel >= 5.2-3 BuildRequires: flex Requires: readline >= 5.2-3 %description The gnuchess package contains the GNU chess program. By default, GNU chess uses a curses text-based interface. Alternatively, GNU chess can be used in conjunction with the xboard user interface and the X Window System for play using a graphical chess board. Install the gnuchess package if you would like to play chess on your computer. If you'd like to use a graphical interface with GNU chess, you'll also need to install the xboard package and the X Window System. %prep %setup -q %patch0 gzip -dc %{SOURCE2} > book/book.dat %build export CC="cc -qcpluscmt" ./configure \ --prefix=%{_prefix} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} cp book/book.dat ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ chmod 0644 ${RPM_BUILD_ROOT}%{_datadir}/%{name}/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc doc/* COPYING AUTHORS NEWS TODO %{_bindir}/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* /usr/bin/* %changelog * Thu Jan 27 2011 Michael Perzl - 5.08-1 - first version for AIX V5.1 and higher