File project.diff of Package stockfish

--- stockfish.changes.orig
+++ stockfish.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Oct 12 00:00:00 CEST 2020 - dsterba@suse.cz
+
+- force AVX2 optimized build
+
+-------------------------------------------------------------------
 Sat Oct 10 00:00:00 CEST 2020 - dsterba@suse.cz
 
 - Update to version 12:
--- stockfish.spec.orig
+++ stockfish.spec
@@ -37,12 +37,10 @@ BuildRequires:  gcc-c++
 BuildRequires:  xz
 Recommends:     xboard
 Provides:       chess_backend
-ExclusiveArch:  %{power64} %{ix86} x86_64 armv7l armv7hl armv7hnl
-%ifarch %{power64}
-BuildRequires:  gcc-c++-32bit
-%endif
+ExclusiveArch:  %{ix86} x86_64
 
 %description
+(Optimized build, requires AVX2.)
 Stockfish is a 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
@@ -62,19 +60,11 @@ dos2unix Copying.txt
 %build
 cd src
 %ifarch x86_64
-make %{?_smp_mflags} build ARCH=x86-64
-%else
-%ifarch %{power_64}
-make %{?_smp_mflags} build ARCH=ppc-64
-%else
-%ifarch armv7l armv7hl armv7hnl
-make %{?_smp_mflags} build ARCH=armv7
+make %{?_smp_mflags} build ARCH=x86-64-avx2
 %else
 #ix86
 make %{?_smp_mflags} build ARCH=general-32
 %endif
-%endif
-%endif
 
 %install
 mkdir -p %{buildroot}%{_bindir}
openSUSE Build Service is sponsored by