diff --git a/README.md b/README.md index 8ac9be2..a9bbd1e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # gnuchess +GNU Chess lets most modern computers play a full game of chess. +It has a plain terminal interface but supports visual interfaces such as X-Windows "xboard". + diff --git a/book_1.01.pgn.gz b/book_1.01.pgn.gz new file mode 100644 index 0000000..6b8070a Binary files /dev/null and b/book_1.01.pgn.gz differ diff --git a/gnuchess-5.07-input_thread.patch b/gnuchess-5.07-input_thread.patch new file mode 100644 index 0000000..f65669c --- /dev/null +++ b/gnuchess-5.07-input_thread.patch @@ -0,0 +1,12 @@ +Index: src/input.c +--- src/input.c.orig 2003-07-01 19:06:43 +0200 ++++ src/input.c 2005-10-14 11:46:35 +0200 +@@ -92,7 +92,7 @@ + fgets(inputstr, MAXSTR, stdin); + } + +-static pthread_t input_thread; ++pthread_t input_thread; + + /* Mutex and condition variable for thread communication */ + diff --git a/gnuchess.spec b/gnuchess.spec new file mode 100644 index 0000000..f0295cd --- /dev/null +++ b/gnuchess.spec @@ -0,0 +1,95 @@ +%define book_version 1.01 +Name: gnuchess +Version: 6.1.1 +Release: 1mamba +Summary: GNU Chess lets most modern computers play a full game of chess +Group: Applications/Games +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.gnu.org/software/chess/ +Source: http://ftp.gnu.org/pub/gnu/chess/%{name}-%{version}.tar.gz +Source1: http://ftp.gnu.org/pub/gnu/chess/book_%{book_version}.pgn.gz +Patch0: %{name}-5.07-input_thread.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libncurses-devel +BuildRequires: libreadline-devel +## AUTOBUILDREQ-END +Requires(post): %{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot + +%description +GNU Chess lets most modern computers play a full game of chess. +It has a plain terminal interface but supports visual interfaces such as X-Windows "xboard". + +%prep +%setup -q +#%patch0 +gunzip -c %{SOURCE1} > book.pgn + +%build +%configure +%make + +# compile book +./src/gnuchess xboard << EOF +book add book.pgn +quit +_EOF + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall +install -D book.pgn %{buildroot}%{_datadir}/games/gnuchess/book.pgn + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post +%install_info %{name}.info + +%preun +%uninstall_info %{name}.info +exit 0 + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/gnuchess +%{_bindir}/gnuchessu +%{_bindir}/gnuchessx +%{_datadir}/gnuchess/smallbook.bin +%{_datadir}/gnuchess/gnuchess.ini +%{_datadir}/games/gnuchess/book.pgn +%{_infodir}/gnuchess.info* +%doc AUTHORS COPYING +# ChangeLog INSTALL NEWS README TODO + +%changelog +* Tue Nov 26 2013 Automatic Build System 6.1.1-1mamba +- automatic version update by autodist + +* Tue Nov 12 2013 Automatic Build System 6.1.0-1mamba +- automatic version update by autodist + +* Mon Oct 21 2013 Silvan Calarco 6.0.3-2mamba +- fixed the opening book generation + +* Thu Mar 14 2013 Automatic Build System 6.0.3-1mamba +- automatic version update by autodist + +* Wed Jun 13 2012 Automatic Build System 6.0.2-1mamba +- update to 6.0.2 + +* Wed Jun 15 2011 Automatic Build System 6.0.0-1mamba +- automatic update by autodist + +* Wed Apr 02 2008 Silvan Calarco 5.07-2mamba +- specfile updates +- added opening book in /usr/share/gnuchess + +* Thu Nov 25 2004 Davide Madrisan 5.07-1qilnx +- package created by autospec