1 Commits

Author SHA256 Message Date
8db48512b4 Accepting request 1303161 from games
- Update to 6.3.0:
  - Look for gnuchess.ini in XDG_CONFIG_HOME or ~/.config/.
  - Dynamically configure gnuchess.ini from gnuchess.ini.in.
  - Disable engine book on 'book off'.
  - Improve style of some help messages.
  - More graceful program termination if book does not exist.
  - Bug fix in (epd)load command.
  - Fix potential buffer overflows in the pipes read/write.
- Remove xgnuchess, it is non-functional (we don’t package xboard
  any more). For the same reason, we don’t package gnuchessx
  either.

- Add txtJ07eHdR0m6.patch to fix CVE-2021-30184 (reported upstream on
  + Book file allowed to be read only unless the BookLearn
- change generation of recent book dat from source during build
  from glibc
- remove NoSource tag
- added flex,bison to buildreq
- man to /usr/share/man

OBS-URL: https://build.opensuse.org/request/show/1303161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuchess?expand=0&rev=30
2025-09-09 18:29:38 +00:00
9 changed files with 58 additions and 65 deletions

4
_scmsync.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
mtime: 1757322312
commit: 6637f0b89bf625ac97aece5adc7a95b2abd0929fe0df853e80dd5640b39ea2c1
url: https://src.opensuse.org/mcepl/gnuchess.git
revision: factory

3
build.specials.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d2517fc4ef3b2c454427d34be86b3e8f90edf18c74be2d562478209364707e2
size 320

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddfcc20bdd756900a9ab6c42c7daf90a2893bf7f19ce347420ce36baebc41890
size 802697

View File

@@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAABCAAGBQJg7hQNAAoJEEOsf/k87VprJFgIAKEY/80e19y56lhqnpngDv+v
x6kwkz5RxQ6iR52nUJ1YUSDewlw+BKe1OsTnmvmR2fm7gg9wDhJRP8HerqCIv3oS
wz/syH1KBgCtlO45jeFO2+6goiXc5li7pCeFWujm78ZBkzzo/vppyYbbrO5oaRHh
Cu6EaZFdLyL1u7o0EY9qKuTVRnJwL7kpdDnmBR2jyK5Yab9MRMfsn8SGanOitTJb
0KWkOtHl5wOuBPW6/kkZXXUlTF0pFtYKeeDygW9DW0BBAOK0tZMKHaXghkQ+4jro
Frir0fpYmxpzF/5m7pSHIMoQk1v7AbwLL1+Sr+/wX8ARDhp/ierS8M8cXuVChdw=
=siQc
-----END PGP SIGNATURE-----

BIN
gnuchess-6.3.0.tar.gz LFS Normal file

Binary file not shown.

11
gnuchess-6.3.0.tar.gz.sig Normal file
View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEENDGcm1C40hdvVVbFQ6x/+TztWmsFAminWz8ACgkQQ6x/+Tzt
WmtyrQf/ev9qkbanpScVgfJgs6ZwS36tgHHraEBJR02IoO28iHym42fUqedCI6Q1
qq21QB9//PXR9rjCs4KdCp1C1WOfUkOiu5dk5SNKYkyxBB0o9BjYiS+L2tDvwK5M
UGSSIkCn3+gLRjC6rbjDvjUqQmU5Roi3A6N2Uu+oskEvjNoUzShai+GyUwU+5ri9
B1WNtM87x6wQpgr4ap/m3U5TXiCcjs2EdQ/GqxwtdA7EcyJmc9gOU5a/y/Myc6aK
qgB2BA0HkBb+TYUguArR4vpQ+ieIDcD+3hJ2rbwBInMp//EoXco4PS6JOvCqXqKt
SvxPN55ze8RHp+GInSzeN4J+RRQSLw==
=HNQn
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sun Sep 7 16:40:14 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 6.3.0:
- Look for gnuchess.ini in XDG_CONFIG_HOME or ~/.config/.
- Dynamically configure gnuchess.ini from gnuchess.ini.in.
- Disable engine book on 'book off'.
- Improve style of some help messages.
- More graceful program termination if book does not exist.
- Bug fix in (epd)load command.
- Fix potential buffer overflows in the pipes read/write.
- Remove xgnuchess, it is non-functional (we dont package xboard
any more). For the same reason, we dont package gnuchessx
either.
-------------------------------------------------------------------
Fri Feb 18 12:34:45 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
@@ -21,7 +36,7 @@ Fri May 14 12:42:17 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
-------------------------------------------------------------------
Thu Apr 8 20:46:21 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add txtJ07eHdR0m6.patch to fix CVE-2021-30184 (reported upstream on
- Add txtJ07eHdR0m6.patch to fix CVE-2021-30184 (reported upstream on
https://lists.gnu.org/archive/html/bug-gnu-chess/2021-04/msg00000.html )
(boo#1184531)
@@ -132,7 +147,7 @@ Fri Oct 26 11:15:22 UTC 2012 - lars@linux-schulserver.de
- update gnuchess to 6.0.2:
+ New option --addbook to compile a book.
+ Maximum file name length of EPD files extended to 127 characters.
+ Book file allowed to be read only unless the BookLearn
+ Book file allowed to be read only unless the BookLearn
option is set.
- new upstream Url
- removed upstreamed gnuchess-return-nonvoid.patch
@@ -143,7 +158,7 @@ Tue Nov 29 12:08:41 UTC 2011 - jreidinger@suse.com
- update gnuchess to official version 6.0.1
- clean up patches
- change generation of recent book dat from source during build
- change generation of recent book dat from source during build
-------------------------------------------------------------------
Wed Aug 4 17:37:37 UTC 2010 - packman@links2linux.de
@@ -172,17 +187,17 @@ Fri Oct 16 11:16:01 CEST 2009 - marek.belisko@open-nandra.com
Sun Jun 7 12:00:28 CEST 2009 - ro@suse.de
- rename getline to my_getline to avoid conflict with function
from glibc
from glibc
-------------------------------------------------------------------
Thu Nov 6 15:28:52 CET 2008 - ro@suse.de
- remove NoSource tag
- remove NoSource tag
-------------------------------------------------------------------
Fri Mar 30 02:02:57 CEST 2007 - ro@suse.de
- added flex,bison to buildreq
- added flex,bison to buildreq
-------------------------------------------------------------------
Wed Jan 25 21:36:15 CET 2006 - mls@suse.de
@@ -245,7 +260,7 @@ Tue Apr 11 13:20:37 CEST 2000 - vinil@suse.cz
-------------------------------------------------------------------
Thu Jan 20 18:09:54 CET 2000 - ro@suse.de
- man to /usr/share/man
- man to /usr/share/man
-------------------------------------------------------------------
Wed Oct 13 01:39:09 CEST 1999 - ro@suse.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package gnuchess
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,9 @@
#
%define book_ver 1.02
Name: gnuchess
Version: 6.2.9
Version: 6.3.0
Release: 0
Summary: GNU Chess Program
License: GPL-3.0-or-later
@@ -25,24 +26,21 @@ Group: Amusements/Games/Board/Chess
URL: https://www.gnu.org/software/chess/
Source0: https://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz.sig
# WARNING: Don't forget to re-generate book.dat manually before submit!
# Simply remove the source and build, updated book will be generated.
Source2: book_1.02.pgn.bz2
Source2: book_%{book_ver}.pgn.bz2
Source3: genbook.sh
Source4: xgnuchess
Source5: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=chess&download=1#/gnuchess.keyring
BuildRequires: expect
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: help2man
BuildRequires: readline-devel
%if 0%{?suse_version} && 0%{?suse_version} < 1550
Requires(post): info
Requires(preun):info
%endif
Suggests: xboard
Provides: chess_backend
Provides: gchess
%if 0%{?suse_version} && 0%{?suse_version} < 1550
Requires(post): info
Requires(preun): info
%endif
%description
A worthy chess opponent that runs in text mode. Find an X11 interface
@@ -54,13 +52,13 @@ in the xboard package.
%build
%configure
%make_build
sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' src/gnuchess.ini
sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' doc/gnuchess.ini
sh %{SOURCE3} %{SOURCE2}
%install
%make_install
# install xgnuchess
install -m 755 %{SOURCE4} %{buildroot}/%{_bindir}
install -m 644 -D -t %{buildroot}%{_datadir}/gnuchess src/book.bin
rm -v %{buildroot}%{_bindir}/gnuchessx
%find_lang %{name}
%if 0%{?suse_version} && 0%{?suse_version} < 1550
@@ -72,10 +70,11 @@ install -m 755 %{SOURCE4} %{buildroot}/%{_bindir}
%endif
%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%doc AUTHORS ChangeLog NEWS README TODO doc/gnuchess.ini
%license COPYING
%{_bindir}/*
%{_mandir}/man*/*
%{_bindir}/gnuchess
%{_bindir}/gnuchessu
%{_mandir}/man1/gnuchess.1%{?ext_man}
%{_infodir}/gnuchess.info%{?ext_info}
%{_datadir}/gnuchess
%dir %{_datadir}/games/plugins

View File

@@ -1,28 +0,0 @@
#! /bin/sh
#
# Run xboard with gnuchess as chess program.
#
# modified from "xcrafty" originally from:
#
# Steffen Winterfeldt <wfeldt@suse.de>
#
# 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 "$@" &