commit e645b1f391fd881f382b2d46b09adcab9e02087a
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Thu May 4 11:17:19 2017 +0100
Try fix build on ppc64le
1dd8c04f6813779e509fa7427b06bbc47d408329.patch | 2331 ------------------------
684c227381fe0d9cece3bfeed0f37eebab05404c.diff | 20 +
stella-4.7.3-gcc7.patch | 12 -
stella.spec | 2 +
4 files changed, 22 insertions(+), 2343 deletions(-)
---
diff --git a/684c227381fe0d9cece3bfeed0f37eebab05404c.diff
b/684c227381fe0d9cece3bfeed0f37eebab05404c.diff
new file mode 100644
index 0000000..2ebb5c9
--- /dev/null
+++ b/684c227381fe0d9cece3bfeed0f37eebab05404c.diff
@@ -0,0 +1,20 @@
+diff --git a/src/common/SDL_lib.hxx b/src/common/SDL_lib.hxx
+index 2981dfb..fbcf999 100644
+--- a/src/common/SDL_lib.hxx
++++ b/src/common/SDL_lib.hxx
+@@ -19,6 +19,14 @@
+ #define SDL_LIB_HXX
+
+ #include <SDL.h>
+-#undef bool // Seems to be needed for ppc64le, doesn't hurt other archs
++
++/*
++ Seems to be needed for ppc64le, doesn't hurt other archs
++ Note that this is a problem in SDL2, which includes <altivec.h>
++
https://bugzilla.redhat.com/show_bug.cgi?id=1419452
++*/
++#undef vector
++#undef pixel
++#undef bool
+
+ #endif
diff --git a/stella.spec b/stella.spec
index 4b7739b..a161b1b 100644
--- a/stella.spec
+++ b/stella.spec
@@ -8,6 +8,7 @@ Group: Applications/Emulators
URL:
https://stella-emu.github.io/
#Source0:
https://github.com/stella-emu/%{name}/releases/download/release-%{version...
Source0:
https://github.com/stella-emu/%{name}/archive/%{version}%{?prerel:-%{prer...
+Patch0: 684c227381fe0d9cece3bfeed0f37eebab05404c.diff
#ExcludeArch: %{power64}
@@ -33,6 +34,7 @@ by considering a contribution.
%prep
%setup -q -n %{name}-%{version}%{?prerel:-%{prerel}}
+%patch0 -p1
rm -r src/zlib src/libpng
sed -i "s/-c -s -m/-m/" Makefile