1
0
forked from pool/trigger-rally
trigger-rally/trigger-rally.spec

60 lines
1.9 KiB
RPMSpec

Name: trigger-rally
Summary: Fast-paced open source rally racing game
Version: 0.5.2.1
Release: 1
License: GPL
Group: Amusements/Games/Action/Race
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
Requires: trigger-rally-data == %{version}
%description
Trigger is a fast-paced open source rally racing game.
Copyright (C) 2004-2006 Jasmine Langridge, Richard Langridge
%prep
%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
jam
# Data directory for program execution is set during compilation !
# We only use jam for compilation, NOT FOR INSTALLATION (only datadir must be specified)
# See ./configure --help for directory options
%install
# Program:
install -d $RPM_BUILD_ROOT%{_prefix}/games
install -s -m 755 trigger $RPM_BUILD_ROOT%{_prefix}/games
# Icons:
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
install -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
# Desktop menu entry:
%suse_update_desktop_file -i %{name} Game SportsGame
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc doc/*
%{_prefix}/games/trigger
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.xpm
%changelog
* Sun Mar 01 2009 Frank Schaefer <schaeferf.obs@googlemail.com>
- Initial openSUSE package release (0.5.2.1)