diff --git a/trigger-rally-0.5.2.1-glew.patch b/trigger-rally-0.5.2.1-glew.patch new file mode 100644 index 0000000..4262016 --- /dev/null +++ b/trigger-rally-0.5.2.1-glew.patch @@ -0,0 +1,10 @@ +--- src/Jamfile ++++ src/Jamfile +@@ -7,7 +7,6 @@ + C++FLAGS += -DDATADIR='\"$(datadir)\"' ; + + +-SubInclude TOP src glew ; + SubInclude TOP src pengine ; + SubInclude TOP src psim ; + SubInclude TOP src trigger ; diff --git a/trigger-rally.spec b/trigger-rally.spec index 58c3c55..5e2f6ce 100644 --- a/trigger-rally.spec +++ b/trigger-rally.spec @@ -4,10 +4,11 @@ Version: 0.5.2.1 Release: 1 License: GPL Group: Amusements/Games/Action/Race -Source0: trigger-%{version}.tar.bz2 +Source0: trigger-%{version}-src.tar.bz2 Source1: %{name}.desktop Source2: %{name}32.xpm Source3: %{name}64.xpm +Patch0: %{name}-%{version}-glew.patch Url: http://sourceforge.net/projects/trigger-rally BuildRoot: %{_tmppath}/build-root-%{name} BuildRequires: gcc-c++ SDL-devel SDL_image-devel freealut-devel Mesa-devel openal-devel physfs-devel boost-jam update-desktop-files @@ -19,7 +20,12 @@ Trigger is a fast-paced open source rally racing game. Copyright (C) 2004-2006 Jasmine Langridge, Richard Langridge %prep -%setup -q +%setup -q -n trigger-%{version}-src +# use system glew +%patch0 +rm -rf src/glew +# set attributes +chmod a-x Jam* config.* configure.ac doc/* mk/autoconf/* mk/jam/* src/Jamfile src/pengine/* src/psim/* src/trigger/* %build ./configure --datadir=%{_datadir}/trigger-rally