commit 97450166b76b014012d503eac1cc1d4959f7246f
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sat Jun 16 18:07:14 2018 +0200
Added an upstream patch to fix compiling on ppc64
snes9x-1.56.1-ppc64.patch | 22 ++++++++++++++++++++++
snes9x.spec | 9 ++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/snes9x-1.56.1-ppc64.patch b/snes9x-1.56.1-ppc64.patch
new file mode 100644
index 0000000..bbeea11
--- /dev/null
+++ b/snes9x-1.56.1-ppc64.patch
@@ -0,0 +1,22 @@
+From 35389f5595d796cbc1fdd527781897133fc62d07 Mon Sep 17 00:00:00 2001
+From: OV2 <OV2(a)sessionclan.de>
+Date: Sat, 16 Jun 2018 16:30:38 +0200
+Subject: [PATCH] GTK+: use new constant name (#338)
+
+---
+ gtk/src/gtk_display.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp
+index 75118ca8..509a3ad1 100644
+--- a/gtk/src/gtk_display.cpp
++++ b/gtk/src/gtk_display.cpp
+@@ -247,7 +247,7 @@ internal_convert_mask (void *src_buffer,
+ unsigned int bpp)
+ {
+ #ifdef __BIG_ENDIAN__
+- if (endianess == ENDIAN_MSB)
++ if (endianess == ENDIAN_SWAPPED)
+ #else
+ if (endianess == ENDIAN_NORMAL)
+ #endif
diff --git a/snes9x.spec b/snes9x.spec
index 37d2665..490257e 100644
--- a/snes9x.spec
+++ b/snes9x.spec
@@ -1,13 +1,16 @@
Summary: Super Nintendo Entertainment System emulator
Name: snes9x
Version: 1.56.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: Other
URL:
http://www.snes9x.com/
Source0:
https://github.com/snes9xgit/snes9x/archive/%{version}.tar.gz#/%{name}-%{...
Source1: %{name}.appdata.xml
# Fix CFLAGS usage in CLI version
Patch0: %{name}-1.56.1-unix_flags.patch
+# Fix compiling on ppc64
+#
https://github.com/snes9xgit/snes9x/issues/338
+Patch1: %{name}-1.56.1-ppc64.patch
BuildRequires: gcc-c++
BuildRequires: autoconf
BuildRequires: zlib-devel
@@ -49,6 +52,7 @@ This package contains a graphical user interface using GTK+.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
@@ -112,6 +116,9 @@ appstream-util validate-relax --nonet
%{buildroot}%{_datadir}/metainfo/*.appdata
%changelog
+* Sat Jun 16 2018 Andrea Musuruane <musuruan(a)gmail.com> - 1.56.1-2
+- Added an upstream patch to fix compiling on ppc64
+
* Sat Jun 16 2018 Andrea Musuruane <musuruan(a)gmail.com> - 1.56.1-1
- Updated to 1.56.1
- Removed obsolete scriptlets