commit fc00831b6706acd3b117868fa91af38d26b1a0d3
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Tue Jul 5 12:38:07 2016 +0200
Fix FTBFS
- Rebuild for F24
roadfighter-1.0.1269-build-fix.patch | 12 ++++++++++++
roadfighter.spec | 8 +++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/roadfighter-1.0.1269-build-fix.patch b/roadfighter-1.0.1269-build-fix.patch
new file mode 100644
index 0000000..f74168e
--- /dev/null
+++ b/roadfighter-1.0.1269-build-fix.patch
@@ -0,0 +1,12 @@
+diff -up roadfighter-1.0.1269/src/auxiliar.cpp~ roadfighter-1.0.1269/src/auxiliar.cpp
+--- roadfighter-1.0.1269/src/auxiliar.cpp~ 2008-03-18 21:00:21.000000000 +0100
++++ roadfighter-1.0.1269/src/auxiliar.cpp 2016-07-04 23:28:20.105838888 +0200
+@@ -84,7 +84,7 @@ SDL_Surface *load_maskedimage(char *imag
+ mask=IMG_Load(name);
+
+ if (tmp==0 ||
+- mask==0) return false;
++ mask==0) return NULL;
+
+ res=SDL_DisplayFormatAlpha(tmp);
+
diff --git a/roadfighter.spec b/roadfighter.spec
index f9a0142..0dbf7da 100644
--- a/roadfighter.spec
+++ b/roadfighter.spec
@@ -1,6 +1,6 @@
Name: roadfighter
Version: 1.0.1269
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Konami's Road Fighter remake
#
http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
@@ -10,6 +10,7 @@ Source0:
http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%
Source1: roadfighter.sh
Patch0: %{name}-1.0.1269-Makefile.patch
Patch1: %{name}-1.0.1269-fix-string-format-bug.patch
+Patch2: %{name}-1.0.1269-build-fix.patch
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
@@ -30,6 +31,7 @@ running out of time, hitting other cars or running out of fuel.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# Fix char encondig
iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8
@@ -95,6 +97,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||
:
%changelog
+* Mon Jul 4 2016 Hans de Goede <j.w.r.degoede(a)gmail.com> - 1.0.1269-9
+- Fix FTBFS
+- Rebuild for F24
+
* Tue Sep 30 2014 Andrea Musuruane <musuruan(a)gmail.com> - 1.0.1269-8
- Fix FTBFS
- Dropped obsolete Group, Buildroot, %%clean and %%defattr