2008-11-06 15:29:34 +01:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: gnuchess
|
2011-04-15 14:14:20 +02:00
|
|
|
Version: 5.07.94.1b
|
|
|
|
Release: 1
|
2010-01-14 18:28:49 +01:00
|
|
|
License: GPLv2+
|
2011-04-15 14:14:20 +02:00
|
|
|
Summary: GNU Chess Program (enhanced version)
|
|
|
|
Url: http://alpha.uhasselt.be/Research/Algebra/Toga/gnuchess-release/
|
2008-11-06 15:29:34 +01:00
|
|
|
Group: Amusements/Games/Board/Chess
|
2011-04-15 14:14:20 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2008-11-06 15:29:34 +01:00
|
|
|
# WARNING: Don't forget to re-generate book.dat manually before submit!
|
|
|
|
# Simply remove the source and build, updated book will be generated.
|
|
|
|
Source1: book_1.01.pgn.bz2
|
|
|
|
Source2: book.dat.bz2
|
|
|
|
Source3: genbook.sh
|
|
|
|
Source4: gnuchess.6
|
2011-04-15 14:14:20 +02:00
|
|
|
Source5: xgnuchess
|
2008-11-06 15:29:34 +01:00
|
|
|
Patch0: gnuchess-nonstatic.diff
|
2011-04-15 14:14:20 +02:00
|
|
|
Patch1: gnuchess-no-return-in-nonvoid-function.diff
|
|
|
|
Patch2: gnuchess-missing-includes_implicit-fortify-decl.diff
|
|
|
|
Patch3: gnuchess-add_new_bookpath.diff
|
|
|
|
Patch4: gnuchess-getline.diff
|
|
|
|
Patch5: gnuchess-fix-missing-fclose.diff
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
Provides: chess_backend
|
|
|
|
Provides: gchess
|
2008-11-06 15:29:34 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
A worthy chess opponent that runs in text mode. Find an X11 interface
|
|
|
|
in the xboard package.
|
|
|
|
|
2011-04-15 14:14:20 +02:00
|
|
|
This version includes some enhancements be Michel Vandenbergh, it is not an official release
|
|
|
|
from the GNU project.
|
|
|
|
Development on the official version seems to have stalled for several years now and this version also contains a few bug fixes.
|
2008-11-06 15:29:34 +01:00
|
|
|
|
2011-04-15 14:14:20 +02:00
|
|
|
See http://alpha.uhasselt.be/Research/Algebra/Toga/ for more information.
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%prep
|
2011-04-15 14:14:20 +02:00
|
|
|
%setup -q
|
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p0
|
|
|
|
%patch2 -p0
|
|
|
|
%patch3 -p0
|
|
|
|
%patch4 -p0
|
|
|
|
%patch5 -p0
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%build
|
2011-04-15 14:14:20 +02:00
|
|
|
export CFLAGS="%{optflags} -pthread"
|
|
|
|
%configure
|
2008-11-06 15:29:34 +01:00
|
|
|
sed '/\/usr\/lib\/games\/gnuchess\/book\.dat/d;s:/usr/share/games:%{_datadir}:' <src/book.h >src/book.h~
|
|
|
|
mv src/book.h~ src/book.h
|
2011-04-15 14:14:20 +02:00
|
|
|
make CFLAGS="%{optflags} -pthread"
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
if [ -f %{SOURCE2} ] ; then
|
|
|
|
bzcat %{SOURCE2} >book.dat
|
|
|
|
else
|
|
|
|
sh %{SOURCE3} %{SOURCE1}
|
|
|
|
fi
|
|
|
|
rm -rf doc/CVS
|
2011-04-15 14:14:20 +02:00
|
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man6
|
|
|
|
cp %{SOURCE4} %{buildroot}%{_mandir}/man6
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gnuchess
|
|
|
|
cp book.dat %{buildroot}%{_datadir}/gnuchess
|
|
|
|
# install xgnuchess
|
|
|
|
install -m 755 %{SOURCE5} %{buildroot}/%{_bindir}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%clean
|
2011-04-15 14:14:20 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-04-15 14:14:20 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO doc
|
|
|
|
%{_bindir}/*
|
2008-11-06 15:29:34 +01:00
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_datadir}/gnuchess
|
|
|
|
|
|
|
|
%changelog
|