rpms/supertux/F-7 supertux.spec,1.14,1.15

Nils Philippsen (nphilipp) fedora-extras-commits at redhat.com
Wed Nov 7 12:00:11 UTC 2007


Author: nphilipp

Update of /cvs/pkgs/rpms/supertux/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17246

Modified Files:
	supertux.spec 
Log Message:
use opengl-games-wrapper.sh from Fedora 7 on (#335701)



Index: supertux.spec
===================================================================
RCS file: /cvs/pkgs/rpms/supertux/F-7/supertux.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- supertux.spec	13 Feb 2007 17:31:42 -0000	1.14
+++ supertux.spec	7 Nov 2007 11:59:37 -0000	1.15
@@ -1,6 +1,12 @@
+%if %{?fedora}%{!?fedora:7} >= 7
+%define _opengl_wrapper 1
+%else
+%define _opengl_wrapper 0
+%endif
+
 Name:           supertux
 Version:        0.3.0
-Release:        1%{?dist}
+Release:        3%{?dist}
 Summary:        Jump'n run like game similar to Mario Bros
 Group:          Amusements/Games
 License:        GPL
@@ -11,6 +17,10 @@
 BuildRequires:  zlib-devel, desktop-file-utils, libGLU-devel
 BuildRequires:  physfs-devel, openal-devel, libvorbis-devel
 BuildRequires:  gettext, flex, bison, jam
+%if %_opengl_wrapper
+BuildRequires: sed
+Requires: opengl-games-utils
+%endif
 
 %description
 SuperTux is a jump'n run like game, with strong inspiration from the
@@ -32,10 +42,18 @@
 jam -sDESTDIR=$RPM_BUILD_ROOT install 
 
 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/supertux.desktop
+rm -rf desktop_file
+mkdir desktop_file
+%if %_opengl_wrapper
+ln -snf opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/supertux-wrapper
+sed 's:^Exec=\(.*\)$:Exec=\1-wrapper:g' < supertux.desktop > desktop_file/supertux.desktop
+%else
+cp -dpf supertux.desktop desktop_file/supertux.desktop
+%endif
 desktop-file-install \
         --vendor fedora \
         --add-category X-Fedora \
-        --dir $RPM_BUILD_ROOT%{_datadir}/applications supertux.desktop
+        --dir $RPM_BUILD_ROOT%{_datadir}/applications desktop_file/supertux.desktop
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,6 +67,12 @@
 %{_datadir}/pixmaps/*
 
 %changelog
+* Fri Oct 19 2007 Nils Philippsen <nphilipp at redhat.com> 0.3.0-3
+- use opengl-games-wrapper.sh from Fedora 7 on (#335701)
+
+* Fri Oct 19 2007 Nils Philippsen <nphilipp at redhat.com> 0.3.0-2
+- use opengl-games-wrapper.sh from Fedora 8 on (#335701)
+
 * Tue Feb 13 2007 Steven Pritchard <steve at kspei.com> 0.3.0-1
 - Update to 0.3.0.
 - Update URL.




More information about the fedora-extras-commits mailing list