Hello community,

here is the log from the commit of package gnuchess for openSUSE:Factory 
checked in at 2012-02-06 15:54:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnuchess (Old)
 and      /work/SRC/openSUSE:Factory/.gnuchess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnuchess", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnuchess/gnuchess.changes        2011-09-23 
02:01:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gnuchess.new/gnuchess.changes   2012-02-06 
15:54:43.000000000 +0100
@@ -1,0 +2,25 @@
+Tue Nov 29 12:08:41 UTC 2011 - [email protected]
+
+- update gnuchess to official version 6.0.1
+- clean up patches
+- change generation of recent book dat from source during build 
+
+-------------------------------------------------------------------
+Wed Aug  4 17:37:37 UTC 2010 - [email protected]
+
+- updated gnuchess to (unofficial) version 5.07.94.1b
+- updated to most recent book.dat
+- removed obsolete getline patch
+- added patches to fix a few rpmlint-warnings/errors
+- added gnuchess-add_new_bookpath.diff so gnuchess finds the default
+  opening book in /usr/share/gnuchess
+
+-------------------------------------------------------------------
+Mon Jan 11 00:00:00 UTC 2010 - [email protected]
+- updated to (unofficial) version 5.07.9b by M. Vandenbergh
+- added script "xgnuchess" to start xboard with gnuchess
+  as first and second chess engine
+- patches refreshed
+- description updated
+
+-------------------------------------------------------------------

Old:
----
  book.dat.bz2
  book_1.01.pgn.bz2
  gnuchess-5.07-fix-missing-fclose.patch
  gnuchess-5.07.tar.bz2
  gnuchess-getline.diff
  gnuchess-nonstatic.diff

New:
----
  book_1.02.pgn.bz2
  gnuchess-6.0.1.tar.bz2
  gnuchess-return-nonvoid.patch
  xgnuchess

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnuchess.spec ++++++
--- /var/tmp/diff_new_pack.p25x9p/_old  2012-02-06 15:54:49.000000000 +0100
+++ /var/tmp/diff_new_pack.p25x9p/_new  2012-02-06 15:54:49.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package gnuchess (Version 5.07)
+# spec file for package gnuchess
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,82 +15,71 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:           gnuchess
-BuildRequires:  bison flex readline-devel
-Url:            http://www.gnu.org/software/chess/chess.html
-License:        GPLv2+
-Group:          Amusements/Games/Board/Chess
-Provides:       chess_backend
-Provides:       gchess
-AutoReqProv:    on
-Version:        5.07
-Release:        145
+Version:        6.0.1
+Release:        0
 Summary:        GNU Chess Program
-Source:         %{name}-%{version}.tar.bz2
+License:        GPL-2.0+
+Group:          Amusements/Games/Board/Chess
+Url:            
http://alpha.uhasselt.be/Research/Algebra/Toga/gnuchess-release/
+Source0:        %{name}-%{version}.tar.bz2
 # 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
+Source1:        book_1.02.pgn.bz2
+#Source2:        book.dat.bz2
 Source3:        genbook.sh
 Source4:        gnuchess.6
-Patch0:         gnuchess-nonstatic.diff
-Patch1:         gnuchess-getline.diff
-# PATCH-FIX-OPENSUSE gnuchess-5.07-fix-missing-fclose.patch bnc#534576
-Patch2:         gnuchess-5.07-fix-missing-fclose.patch
+Source5:        xgnuchess
+Patch0:         gnuchess-return-nonvoid.patch
+BuildRequires:  bison
+BuildRequires:  expect
+BuildRequires:  flex
+BuildRequires:  gcc-c++
+BuildRequires:  readline-devel
+Requires(post): info
+Requires(preun):info
+Provides:       chess_backend
+Provides:       gchess
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 A worthy chess opponent that runs in text mode. Find an X11 interface
 in the xboard package.
 
-
-
-Authors:
---------
-    Hans Eric Sandstrom <[email protected]>
-    Stuart Cracraft <[email protected]>
-    Mike McGann <[email protected]>
-    Philippe Schnoebelen <[email protected]>
-    Tim Mann <[email protected]>
-
 %prep
-%setup
+%setup -q
 %patch0
-%patch1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS"
-./configure --prefix=%{_prefix} \
-    --mandir=%{_mandir} \
-    --datadir=%{_datadir}
-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
-make
+%configure
+make %{?_smp_mflags}
+sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = 
true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' src/gnuchess.ini
+sh %{SOURCE3} %{SOURCE1}
 
 %install
-if [ -f %{SOURCE2} ] ; then
-    bzcat %{SOURCE2} >book.dat
-else
-    sh %{SOURCE3} %{SOURCE1}
+%make_install
+mkdir -p %{buildroot}%{_mandir}/man6
+cp %{SOURCE4} %{buildroot}%{_mandir}/man6
+# install xgnuchess
+install -m 755 %{SOURCE5} %{buildroot}/%{_bindir}
+
+%post
+%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
+
+%preun
+if [ $1 = 0 ] ; then
+  if [ -f %{_infodir}/%{name}.info.gz ] ; then 
+    %install_info --info-dir=%{_infodir} --delete %{_infodir}/%{name}.info.gz
+  fi
 fi
-rm -rf doc/CVS
-make DESTDIR=$RPM_BUILD_ROOT install
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
-cp %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man6
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnuchess
-cp book.dat $RPM_BUILD_ROOT%{_datadir}/gnuchess
-
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%{_prefix}/bin/*
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%{_bindir}/*
 %{_mandir}/man*/*
+%{_infodir}/gnuchess.info.gz
 %{_datadir}/gnuchess
-%doc AUTHORS COPYING ChangeLog NEWS README TODO doc
 
 %changelog

++++++ genbook.sh ++++++
--- /var/tmp/diff_new_pack.p25x9p/_old  2012-02-06 15:54:49.000000000 +0100
+++ /var/tmp/diff_new_pack.p25x9p/_new  2012-02-06 15:54:49.000000000 +0100
@@ -14,10 +14,13 @@
 #echo -e "\nDone.\n"
 
 echo -e "\nGenerating book...\n"
-src/gnuchess <<EOF
-book add book.pgn
-quit
+expect <<EOF
+set timeout 360
+spawn src/gnuchess
+expect "White" { send "book add book.pgn\n" }
+expect "all done!" { send "quit\n" }
 EOF
+mv -v book.bin src/book.bin
 echo -e "\nDone.\n"
 
 echo "Books are ready!"

++++++ gnuchess-5.07.tar.bz2 -> gnuchess-6.0.1.tar.bz2 ++++++
++++ 98191 lines of diff (skipped)

++++++ gnuchess-return-nonvoid.patch ++++++
--- src/components.cc.old       2011-11-29 09:48:53.000000000 +0000
+++ src/components.cc   2011-11-29 09:56:31.000000000 +0000
@@ -65,6 +65,7 @@
   InitEngine();
   /* Start adapter main loop */
   adapter::main_adapter( 0, 0 );
+  return 0;
 }
 
 /*
@@ -100,6 +101,7 @@
 {
   /* Start engine main loop */
   engine::main_engine( 0, 0 );
+  return 0;
 }
 
 /*
++++++ xgnuchess ++++++
#! /bin/sh
#
# Run xboard with gnuchess as chess program.
#
# modified from "xcrafty" originally from:
#
# Steffen Winterfeldt <[email protected]>
#
# Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#

[ "$DISPLAY" ] || {
  echo >&2 "This is not a text mode application!"
  exit 63
}

emsg="You\'ll have to install package \'xboard\' first to run xgnuchess."

which xboard >/dev/null 2>&1 || {
  if tty -s ; then
    sh -c "echo >&2 $emsg"
  else
    xterm +sb -T "xgnuchess error" -bg white -fg red -e sh -c "echo $emsg ; 
read"
  fi
  exit 42
}

exec xboard -size bulky -fcp gnuchessx -scp gnuchessx "$@" &
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to