From df7e4bcc31b149e236f5451bde5e15cd7b1082fc Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 11 Sep 2021 14:08:50 -0500 Subject: [PATCH] Add spec for Stockfish 14 --- SPECS/stockfish.spec | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 SPECS/stockfish.spec diff --git a/SPECS/stockfish.spec b/SPECS/stockfish.spec new file mode 100644 index 0000000..032a8ad --- /dev/null +++ b/SPECS/stockfish.spec @@ -0,0 +1,40 @@ +%global srcname Stockfish + +%global _vpath_srcdir src + +Name: stockfish +Version: 14 +Release: 1%{?dist} +Source0: https://github.com/official-%{srcname}/%{name}/archive/sf_%{version}/%{srcname}-sf_%{version}.tar.gz +Summary: Powerful open source chess engine +License: GPLv3+ +URL: http://%{name}chess.org + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: make + +%description +Stockfish is a free UCI chess engine derived from Glaurung 2.1. It is not a +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. + +%global debug_package %{nil} + +%prep +%setup -q -n %{srcname}-sf_%{version} + +%build +cd src +make build ARCH=x86-64-modern + +%install +cd src +make PREFIX=%{buildroot}%{_prefix} install + +%files +%license Copying.txt +%doc AUTHORS README.md +%{_bindir}/%{name}