2016-04-29 05:36:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package stockfish
|
|
|
|
#
|
2016-06-03 08:42:17 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: stockfish
|
2016-11-04 16:13:20 +00:00
|
|
|
Version: 8
|
2016-04-29 05:36:32 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Powerful open source chess engine
|
|
|
|
License: GPL-3.0+
|
|
|
|
Url: http://stockfishchess.org
|
|
|
|
Source0: https://github.com/official-stockfish/Stockfish/archive/sf_%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
# 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
|
|
|
|
# If 'Version' is not set it will display the date as version number. We dont want __DATE__ and Version is set anyways.
|
|
|
|
Patch: date.patch
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
Recommends: xboard
|
|
|
|
Provides: chess_backend
|
2016-11-20 22:00:04 +00:00
|
|
|
ExclusiveArch: %power64 %ix86 x86_64 armv7l armv7hl armv7hnl
|
2016-04-29 05:36:32 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Stockfish-sf_%{version}
|
|
|
|
%patch -p1
|
|
|
|
cp -p %{SOURCE10} %{SOURCE11} .
|
|
|
|
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
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root)
|
2016-06-13 10:21:11 +00:00
|
|
|
%doc AUTHORS %{name}-interface.txt Readme.md Copying.txt
|
2016-04-29 05:36:32 +00:00
|
|
|
%{_mandir}/man*/%{name}.*
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|