2016-04-29 05:36:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package stockfish
|
|
|
|
#
|
2024-02-26 12:18:29 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-04-29 05:36:32 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-11 14:57:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-29 05:36:32 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-04-29 10:23:07 +00:00
|
|
|
# See evaluate.h > EvalFileDefaultName
|
2024-02-26 12:18:29 +00:00
|
|
|
%define nnuenetS nn-baff1ede1f90.nnue
|
|
|
|
%define nnuenetB nn-b1a57edbea57.nnue
|
2016-04-29 05:36:32 +00:00
|
|
|
Name: stockfish
|
2024-02-26 12:18:29 +00:00
|
|
|
Version: 16.1
|
2016-04-29 05:36:32 +00:00
|
|
|
Release: 0
|
2018-12-11 14:57:32 +00:00
|
|
|
Summary: Chess engine
|
2018-07-16 14:46:42 +00:00
|
|
|
License: GPL-3.0-or-later
|
2022-03-28 08:50:50 +00:00
|
|
|
URL: https://stockfishchess.org
|
2021-04-29 10:23:07 +00:00
|
|
|
Source0: https://github.com/official-stockfish/Stockfish/archive/sf_%{version}.tar.gz#/Stockfish-sf_%{version}.tar.gz
|
2024-02-26 12:18:29 +00:00
|
|
|
Source1: https://tests.stockfishchess.org/api/nn/%{nnuenetS}
|
|
|
|
Source2: https://tests.stockfishchess.org/api/nn/%{nnuenetB}
|
2016-04-29 05:36:32 +00:00
|
|
|
# steal some documentation from ubuntu
|
2022-12-06 15:18:36 +00:00
|
|
|
Source10: %{name}-interface.txt
|
|
|
|
Source11: %{name}.6-20091204230329-yljoyxocuxhxg1ot-76/%{name}.6
|
2016-04-29 05:36:32 +00:00
|
|
|
# If 'Version' is not set it will display the date as version number. We dont want __DATE__ and Version is set anyways.
|
2018-11-30 09:50:41 +00:00
|
|
|
Patch0: date.patch
|
2022-04-20 19:23:58 +00:00
|
|
|
# Don't try to download file. We already have it.
|
|
|
|
Patch1: stockfish-remove-net.patch
|
2016-04-29 05:36:32 +00:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: gcc-c++
|
2020-10-12 09:03:11 +00:00
|
|
|
BuildRequires: xz
|
2016-04-29 05:36:32 +00:00
|
|
|
Recommends: xboard
|
|
|
|
Provides: chess_backend
|
2018-11-30 09:50:41 +00:00
|
|
|
ExclusiveArch: %{power64} %{ix86} x86_64 armv7l armv7hl armv7hnl
|
|
|
|
%ifarch %{power64}
|
|
|
|
BuildRequires: gcc-c++-32bit
|
|
|
|
%endif
|
2016-04-29 05:36:32 +00:00
|
|
|
|
|
|
|
%description
|
2018-12-11 14:57:32 +00:00
|
|
|
Stockfish is a UCI chess engine derived from Glaurung 2.1. It is not a
|
2016-04-29 05:36:32 +00:00
|
|
|
complete chess program, but requires some UCI compatible GUI (like XBoard with
|
|
|
|
PolyGlot, eboard, Arena, Sigma Chess, Shredder, Chess Partner or Fritz) in
|
|
|
|
order to be used comfortably. Read the documentation for your GUI of choice for
|
|
|
|
information about how to use Stockfish with your GUI.
|
|
|
|
|
|
|
|
%prep
|
2024-02-26 12:18:29 +00:00
|
|
|
%autosetup -p1 -n Stockfish-sf_%{version}
|
2021-04-29 10:23:07 +00:00
|
|
|
cp %{SOURCE1} src/
|
2024-02-26 12:18:29 +00:00
|
|
|
cp %{SOURCE2} src/
|
2016-04-29 05:36:32 +00:00
|
|
|
cp -p %{SOURCE10} %{SOURCE11} .
|
2020-10-12 09:03:11 +00:00
|
|
|
|
2016-04-29 05:36:32 +00:00
|
|
|
dos2unix %{name}-interface.txt
|
2016-11-04 16:13:20 +00:00
|
|
|
dos2unix Copying.txt
|
2016-04-29 05:36:32 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
|
|
|
%ifarch x86_64
|
|
|
|
make %{?_smp_mflags} build ARCH=x86-64
|
2016-11-20 22:00:04 +00:00
|
|
|
%else
|
2018-11-30 09:50:41 +00:00
|
|
|
%ifarch %{power_64}
|
2016-04-29 05:36:32 +00:00
|
|
|
make %{?_smp_mflags} build ARCH=ppc-64
|
2016-11-20 22:00:04 +00:00
|
|
|
%else
|
|
|
|
%ifarch armv7l armv7hl armv7hnl
|
2016-04-29 05:36:32 +00:00
|
|
|
make %{?_smp_mflags} build ARCH=armv7
|
|
|
|
%else
|
2016-11-20 22:00:04 +00:00
|
|
|
#ix86
|
2016-04-29 05:36:32 +00:00
|
|
|
make %{?_smp_mflags} build ARCH=general-32
|
|
|
|
%endif
|
2016-11-20 22:00:04 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2016-04-29 05:36:32 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 755 -p src/%{name} %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man6
|
|
|
|
cp -p %{name}.6 %{buildroot}%{_mandir}/man6
|
|
|
|
|
|
|
|
%files
|
2018-11-30 09:50:41 +00:00
|
|
|
%license Copying.txt
|
2020-10-12 09:03:11 +00:00
|
|
|
%doc AUTHORS %{name}-interface.txt README.md
|
2016-04-29 05:36:32 +00:00
|
|
|
%{_mandir}/man*/%{name}.*
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|