forked from pool/trigger-rally
63 lines
2.0 KiB
RPMSpec
63 lines
2.0 KiB
RPMSpec
Name: trigger-rally
|
|
Summary: Fast-paced open source rally racing game
|
|
Version: 0.5.2_svn5
|
|
Release: 0.1
|
|
License: GPL
|
|
Group: Amusements/Games/Action/Race
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
BuildRoot: %{_tmppath}/build-root-%{name}
|
|
Url: http://sourceforge.net/projects/trigger-rally
|
|
BuildRequires: gcc-c++, SDL-devel >= 1.2.5, SDL_image-devel >= 1.2, freealut-devel, openal-devel, physfs-devel, boost-jam, update-desktop-files
|
|
%if 0%{?suse_version} == 1030
|
|
BuildRequires: Mesa-devel
|
|
%endif
|
|
Requires: SDL >= 1.2.5, SDL_image >= 1.2, freealut, openal, physfs, trigger-rally-data == %{version}
|
|
%if 0%{?suse_version} == 1030
|
|
Requires: Mesa
|
|
%endif
|
|
|
|
%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/%{_bindir}
|
|
install -s -m 755 trigger $RPM_BUILD_ROOT/%{_bindir}
|
|
# Icons:
|
|
install -d $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps
|
|
install -d $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps
|
|
install -m 644 icons/32x32/trigger.xpm $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps
|
|
install -m 644 icons/64x64/trigger.xpm $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps
|
|
# Desktop menu entry:
|
|
#%suse_update_desktop_file -c %{name} "Trigger Rally" "Rally Racing Game" trigger trigger Game SportsGame
|
|
%suse_update_desktop_file -i %{name} Game SportsGame
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
|
#rm -rf $RPM_SOURCE_DIR/trigger-rally.desktop
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc doc/*
|
|
%{_bindir}/trigger
|
|
/usr/share/applications/trigger-rally.desktop
|
|
/usr/share/icons/hicolor
|
|
|
|
%changelog
|
|
* Sun Mar 01 2009 Frank Schaefer <schaeferf.obs@googlemail.com>
|
|
- Initial openSUSE package release (0.5.2_svn5)
|