rpms/roadfighter/F-20 roadfighter-1.0.1269-fix-string-format-bug.patch, NONE, 1.1 roadfighter.spec, 1.5, 1.6

Andrea Musuruane musuruan at rpmfusion.org
Tue Sep 30 21:29:45 CEST 2014


Author: musuruan

Update of /cvs/nonfree/rpms/roadfighter/F-20
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv26104

Modified Files:
	roadfighter.spec 
Added Files:
	roadfighter-1.0.1269-fix-string-format-bug.patch 
Log Message:
* Tue Sep 30 2014 Andrea Musuruane <musuruan at gmail.com> - 1.0.1269-8
- Fix FTBFS
- Dropped obsolete Group, Buildroot, %clean and %defattr
- Dropped cleaning at the beginning of %install
- Remove extension from Icon in Desktop file


roadfighter-1.0.1269-fix-string-format-bug.patch:
 debug.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE roadfighter-1.0.1269-fix-string-format-bug.patch ---
diff -durN roadfighter-1.0.1269.orig/src/debug.cpp roadfighter-1.0.1269/src/debug.cpp
--- roadfighter-1.0.1269.orig/src/debug.cpp	2008-03-18 21:00:21.000000000 +0100
+++ roadfighter-1.0.1269/src/debug.cpp	2014-09-29 17:45:57.588997083 +0200
@@ -28,7 +28,7 @@
     if (fp == 0)
 		fp = f1open("roadfighter.dbg", "w", USERDATA);
 
-    fprintf(fp, text);
+    fprintf(fp, "%s", text);
     fflush(fp);
 } /* glprintf */
 


Index: roadfighter.spec
===================================================================
RCS file: /cvs/nonfree/rpms/roadfighter/F-20/roadfighter.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- roadfighter.spec	12 Mar 2013 21:43:13 -0000	1.5
+++ roadfighter.spec	30 Sep 2014 19:29:45 -0000	1.6
@@ -1,16 +1,15 @@
 Name:           roadfighter
 Version:        1.0.1269
-Release:        6%{?dist}
+Release:        8%{?dist}
 Summary:        Konami's Road Fighter remake
 
-Group:          Amusements/Games
 # http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
 License:        Distributable
 URL:            http://roadfighter.jorito.net/
 Source0:        http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}.tgz
 Source1:        roadfighter.sh
-Patch0:         %{name}-1.0.1269-Makefile.patch 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0:         %{name}-1.0.1269-Makefile.patch
+Patch1:         %{name}-1.0.1269-fix-string-format-bug.patch 
 
 BuildRequires:  SDL_image-devel
 BuildRequires:  SDL_mixer-devel
@@ -18,7 +17,7 @@
 BuildRequires:  SDL_ttf-devel
 BuildRequires:  ImageMagick
 BuildRequires:  desktop-file-utils 
-Requires: hicolor-icon-theme
+Requires:       hicolor-icon-theme
 
 
 %description
@@ -30,6 +29,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # Fix char encondig
 iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8
@@ -43,8 +43,6 @@
 
 
 %install
-rm -rf %{buildroot}
-
 # Install wrapper script
 install -d %{buildroot}%{_bindir}
 install -m 755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{name}
@@ -68,13 +66,10 @@
 mkdir -p %{buildroot}%{_datadir}/applications
 desktop-file-install \
   --dir %{buildroot}%{_datadir}/applications \
+  --set-icon=roadfighter \
   build/linux/%{name}.desktop
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
@@ -91,7 +86,6 @@
 
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_libexecdir}/%{name}
@@ -101,6 +95,15 @@
 
 
 %changelog
+* Tue Sep 30 2014 Andrea Musuruane <musuruan at gmail.com> - 1.0.1269-8
+- Fix FTBFS
+- Dropped obsolete Group, Buildroot, %%clean and %%defattr
+- Dropped cleaning at the beginning of %%install
+- Remove extension from Icon in Desktop file
+
+* Sun Aug 31 2014 Sérgio Basto <sergio at serjux.com> - 1.0.1269-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
 * Tue Mar 12 2013 Nicolas Chauvet <kwizart at gmail.com> - 1.0.1269-6
 - https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the rpmfusion-commits mailing list