[packages/maxfighter] - fix build - rel 6

baggins baggins at pld-linux.org
Fri Nov 8 21:26:53 CET 2013


commit 3450d6fd7db4f2cc465dd67b08cc428c8077f67e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 8 21:26:37 2013 +0100

    - fix build
    - rel 6

 maxfighter-scons.patch | 9 +++++++++
 maxfighter.spec        | 5 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/maxfighter.spec b/maxfighter.spec
index 593d283..a479739 100644
--- a/maxfighter.spec
+++ b/maxfighter.spec
@@ -2,7 +2,7 @@ Summary:	Max Fighter vertical shoot'em up
 Summary(pl.UTF-8):	Strzelanka kosmiczna Max Fighter
 Name:		maxfighter
 Version:	1.0.1
-Release:	5
+Release:	6
 License:	GPL, Creative Commons NCSA 2.5
 Group:		X11/Applications/Games
 Source0:	http://source.musgit.com/files/%{name}_%{version}.tar.bz2
@@ -34,13 +34,14 @@ Strzelanka kosmiczna Max Fighter.
 sed -i "/RESOURCEDIR/s|resources/|/usr/share/games/%{name}/|" SConstruct
 %{__scons} \
 	%{!?debug:dist=1} \
+	EXE_EXTENSION='' \
 	CXXFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},/var/games/%{name}}
 
-install build/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
+install build/linux/%{name}.exe $RPM_BUILD_ROOT%{_bindir}/%{name}
 cp -r resources/* $RPM_BUILD_ROOT%{_datadir}/games/%{name}
 
 %clean
diff --git a/maxfighter-scons.patch b/maxfighter-scons.patch
index 205308c..2b90393 100644
--- a/maxfighter-scons.patch
+++ b/maxfighter-scons.patch
@@ -30,3 +30,12 @@ diff -ur maxfighter_1.0.orig/SConstruct maxfighter_1.0/SConstruct
  			env.Append(LIBS='vorbisfile');
  			env.Append(LIBS='vorbis');
  			env.Append(LIBS='ogg');
+@@ -157,7 +157,7 @@
+ 		env.Install(DIST_DIR+"/resources/sounds",glob.glob("resources/sounds/*.txt"));
+ 
+ 		if(platform=='linux'):
+-			env.Install(DIST_DIR,[BUILD_DIR+'/maxfighter']);
++			env.Install(DIST_DIR,[BUILD_DIR+'/maxfighter.exe']);
+ 			env.Install(DIST_DIR,['packaging/linux/install.sh','packaging/linux/uninstall.sh','packaging/linux/README']);
+ 			#env.Install(DIST_DIR,['packaging/readme.txt']);
+ 		else:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/maxfighter.git/commitdiff/3450d6fd7db4f2cc465dd67b08cc428c8077f67e



More information about the pld-cvs-commit mailing list