forked from pool/trigger-rally
54 lines
1.6 KiB
RPMSpec
54 lines
1.6 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}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
Source2: %{name}32.xpm
|
|
Source3: %{name}64.xpm
|
|
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
|
|
|
|
%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)
|