rpms/supertux/devel supertux.spec,1.14,1.15
Nils Philippsen (nphilipp)
fedora-extras-commits at redhat.com
Fri Oct 19 12:20:03 UTC 2007
Author: nphilipp
Update of /cvs/pkgs/rpms/supertux/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24265
Modified Files:
supertux.spec
Log Message:
use opengl-games-wrapper.sh from Fedora 8 on (#335701)
Index: supertux.spec
===================================================================
RCS file: /cvs/pkgs/rpms/supertux/devel/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 19 Oct 2007 12:19:29 -0000 1.15
@@ -1,6 +1,12 @@
+%if %{?fedora}%{!?fedora:8} >= 8
+%define _opengl_wrapper 1
+%else
+%define _opengl_wrapper 0
+%endif
+
Name: supertux
Version: 0.3.0
-Release: 1%{?dist}
+Release: 2%{?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,9 @@
%{_datadir}/pixmaps/*
%changelog
+* 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