Patch1: %{name}-security.patch
Patch2: %{name}-portable.patch
Patch3: %{name}-spelling.patch
+Patch4: x32.patch
URL: http://www.craftychess.com/
BuildRequires: libstdc++-devel
BuildRequires: sed >= 4.0
%patch1 -p0
%patch2 -p0
%patch3 -p0
+%patch4 -p1
%{__mv} doc/read.me README
%{__mv} doc/* .
%{__mv} bitmaps/README.bitmaps .
--- /dev/null
+--- crafty-25.2/tbprobe.c~ 2020-03-27 22:38:46.000000000 +0100
++++ crafty-25.2/tbprobe.c 2020-03-27 22:39:45.477080526 +0100
+@@ -107,7 +107,7 @@
+ #define file(s) ((s) & 0x07)
+ #define board(s) ((uint64_t)1 << (s))
+ static inline unsigned _lsb(uint64_t b) {
+-#ifdef __x86_64__
++#if defined(__x86_64__) && !defined(__ILP32__)
+ size_t idx;
+ __asm__("bsfq %1, %0": "=r"(idx):"rm"(b));
+ return idx;