File stockfish_armv8.spec of Package stockfish
#
# spec file for package stockfish
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define nnuenet nn-5af11540bbfe.nnue
Name: stockfish
Version: 15
Release: 0
Summary: UCI chess engine
License: GPL-3.0-or-later
URL: https://stockfishchess.org
Source0: %{name}-%{version}.tar.xz
Source1: https://tests.stockfishchess.org/api/nn/%{nnuenet}
#Patch0: date.patch
BuildRequires: gcc-c++
BuildRequires: curl
ExclusiveArch: armv8el aarch64 aarch64_ilp32
%description
Stockfish is a free, powerful UCI chess engine derived from Glaurung 2.1.
Stockfish is not a complete chess program and requires a UCI-compatible graphical
user interface (GUI) (e.g. XBoard with PolyGlot, Scid, Cute Chess, 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 it.
%prep
%autosetup -p1
cp %{SOURCE1} src/
%build
cd src/
make %{?_smp_mflags} profile-build ARCH=armv8
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 -p src/%{name} %{buildroot}%{_bindir}
%files
%license Copying.txt
%doc AUTHORS README.md
%{_bindir}/%{name}
%changelog