Accepting request 441053 from home:susnux:branches:games

426762

OBS-URL: https://build.opensuse.org/request/show/441053
OBS-URL: https://build.opensuse.org/package/show/games/stockfish?expand=0&rev=7
This commit is contained in:
Michael Vetter 2016-11-20 22:00:04 +00:00 committed by Git OBS Bridge
parent 5e88d684ed
commit 993df75736
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 20 14:52:27 UTC 2016 - rpm@fthiessen.de
- Fixed architecture detection in spec file.
-------------------------------------------------------------------
Fri Nov 4 15:56:52 UTC 2016 - mvetter@suse.com

View File

@ -32,7 +32,7 @@ BuildRequires: dos2unix
BuildRequires: gcc-c++
Recommends: xboard
Provides: chess_backend
ExclusiveArch: %ix86 x86_64 %arm %{power64}
ExclusiveArch: %power64 %ix86 x86_64 armv7l armv7hl armv7hnl
%description
Stockfish is a free UCI chess engine derived from Glaurung 2.1. It is not a
@ -52,14 +52,18 @@ dos2unix Copying.txt
cd src
%ifarch x86_64
make %{?_smp_mflags} build ARCH=x86-64
%else if %{power_64}
make %{?_smp_mflags} build ARCH=ppc-64
%else if armv7l armv7hl armv7hnl
make %{?_smp_mflags} build ARCH=armv7
#ix86
%else
%ifarch %power_64
make %{?_smp_mflags} build ARCH=ppc-64
%else
%ifarch armv7l armv7hl armv7hnl
make %{?_smp_mflags} build ARCH=armv7
%else
#ix86
make %{?_smp_mflags} build ARCH=general-32
%endif
%endif
%endif
%install
mkdir -p %{buildroot}%{_bindir}