Dominique Leuenberger 2020-10-12 11:59:44 +00:00 committed by Git OBS Bridge
commit 5673616069
7 changed files with 45 additions and 13 deletions

View File

@ -1,7 +1,8 @@
diff -urEbwB Stockfish-sf_7/src/misc.cpp Stockfish-sf_7.new/src/misc.cpp
--- Stockfish-sf_7/src/misc.cpp 2016-01-02 21:26:02.000000000 +0100
+++ Stockfish-sf_7.new/src/misc.cpp 2016-04-28 11:35:29.001468116 +0200
@@ -99,18 +99,10 @@
Index: Stockfish-sf_12/src/misc.cpp
===================================================================
--- Stockfish-sf_12.orig/src/misc.cpp
+++ Stockfish-sf_12/src/misc.cpp
@@ -140,18 +140,10 @@ public:
const string engine_info(bool to_uci) {
@ -18,6 +19,6 @@ diff -urEbwB Stockfish-sf_7/src/misc.cpp Stockfish-sf_7.new/src/misc.cpp
- ss << setw(2) << day << setw(2) << (1 + months.find(month) / 4) << year.substr(2);
- }
-
ss << (Is64Bit ? " 64" : "")
<< (HasPext ? " BMI2" : (HasPopCnt ? " POPCNT" : ""))
<< (to_uci ? "\nid author ": " by ")
ss << (to_uci ? "\nid author ": " by ")
<< "the Stockfish developers (see AUTHORS file)";

3
nn-baeb9ef2d183.nnue.xz Normal file
View File

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

View File

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

3
stockfish-12.tar.gz Normal file
View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Oct 10 00:00:00 CEST 2020 - dsterba@suse.cz
- Update to version 12:
* 130 Elo stronger than version 11
* powered by NNUE (nn-baeb9ef2d183.nnue)
* More at https://github.com/official-stockfish/Stockfish/commit/c306d838697011da0a960758dde3f7ede6849060
* Added patch: update-nnue.patch
-------------------------------------------------------------------
Mon Jan 20 08:12:08 UTC 2020 - Michael Vetter <mvetter@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package stockfish
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,8 +16,10 @@
#
%define nnuenet nn-baeb9ef2d183.nnue
Name: stockfish
Version: 11
Version: 12
Release: 0
Summary: Chess engine
License: GPL-3.0-or-later
@ -26,10 +28,13 @@ Source0: https://github.com/official-stockfish/Stockfish/archive/sf_%{ver
# steal some documentation from ubuntu
Source10: https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/%{name}/vivid/download/head:/engineinterface.txt-20091204230329-yljoyxocuxhxg1ot-78/engine-interface.txt#/%{name}-interface.txt
Source11: https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/%{name}/vivid/download/head:/%{name}.6-20091204230329-yljoyxocuxhxg1ot-76/%{name}.6
Source12: %{nnuenet}.xz
# If 'Version' is not set it will display the date as version number. We dont want __DATE__ and Version is set anyways.
Patch0: date.patch
Patch1: update-nnue.patch
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: xz
Recommends: xboard
Provides: chess_backend
ExclusiveArch: %{power64} %{ix86} x86_64 armv7l armv7hl armv7hnl
@ -47,7 +52,10 @@ information about how to use Stockfish with your GUI.
%prep
%setup -q -n Stockfish-sf_%{version}
%patch0 -p1
%patch1 -p0
cp -p %{SOURCE10} %{SOURCE11} .
xz -cd %{SOURCE12} > src/%{nnuenet}
dos2unix %{name}-interface.txt
dos2unix Copying.txt
@ -76,7 +84,7 @@ cp -p %{name}.6 %{buildroot}%{_mandir}/man6
%files
%license Copying.txt
%doc AUTHORS %{name}-interface.txt Readme.md
%doc AUTHORS %{name}-interface.txt README.md
%{_mandir}/man*/%{name}.*
%{_bindir}/%{name}

11
update-nnue.patch Normal file
View File

@ -0,0 +1,11 @@
--- src/evaluate.h.orig 2020-10-10 13:33:54.744383007 +0200
+++ src/evaluate.h 2020-10-10 13:34:04.772383312 +0200
@@ -38,7 +38,7 @@
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
// for the build process (profile-build and fishtest) to work. Do not change the
// name of the macro, as it is used in the Makefile.
- #define EvalFileDefaultName "nn-82215d0fd0df.nnue"
+ #define EvalFileDefaultName "nn-baeb9ef2d183.nnue"
namespace NNUE {