Modif Makefile
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@10 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
0f27cad718
commit
1c064201d1
|
@ -1,42 +1,42 @@
|
|||
Summary: TORCS - K1999 Robots
|
||||
Name: TORCS-robots-K1999
|
||||
Summary: TORCS NG - K1999 Robots
|
||||
Name: TORCS-NG-robots-K1999
|
||||
Version: @VERSION@
|
||||
Release: 1
|
||||
Epoch: 1
|
||||
Source: TORCS-%{version}-src.tgz
|
||||
Source1: TORCS-%{version}-src-robots-K1999.tgz
|
||||
Source: TORCS-NG-%{version}-src.tgz
|
||||
Source1: TORCS-NG-%{version}-src-robots-K1999.tgz
|
||||
Group: Amusements/Games
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Copyright: GPL
|
||||
BuildArch: i386
|
||||
URL: http://torcs.org
|
||||
Packager: Eric Espié <Eric.Espie@free.fr>
|
||||
Requires: TORCS
|
||||
Requires: TORCS-NG
|
||||
|
||||
%description
|
||||
K1999 Robots for TORCS
|
||||
K1999 Robots for TORCS NG
|
||||
by Rémi Coulom <remi.coulom@free.fr>
|
||||
|
||||
%prep
|
||||
%setup -n torcs-@VERSION@
|
||||
%setup -T -D -b 1 -n torcs-@VERSION@
|
||||
cd $RPM_BUILD_DIR/torcs-@VERSION@/src/drivers
|
||||
%setup -n torcs-ng-@VERSION@
|
||||
%setup -T -D -b 1 -n torcs-ng-@VERSION@
|
||||
cd $RPM_BUILD_DIR/torcs-ng-@VERSION@/src/drivers
|
||||
rm -rf human
|
||||
|
||||
%build
|
||||
export TORCS_BASE=`pwd` MAKE_DEFAULT=`pwd`/Make-default.mk
|
||||
export TORCSNG_BASE=`pwd` MAKE_DEFAULT=`pwd`/Make-default.mk
|
||||
./configure --prefix=%{_prefix}
|
||||
make
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{_tmppath}/%{name}-ship
|
||||
cd %{_tmppath}/%{name}-ship/%{_prefix}/share/games/torcs
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/games/torcs
|
||||
cp -r drivers $RPM_BUILD_ROOT/%{_prefix}/share/games/torcs
|
||||
cd %{_tmppath}/%{name}-ship/%{_prefix}/share/games/torcs-ng
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/games/torcs-ng
|
||||
cp -r drivers $RPM_BUILD_ROOT/%{_prefix}/share/games/torcs-ng
|
||||
cd -
|
||||
cd %{_tmppath}/%{name}-ship/%{_prefix}/lib/torcs
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/torcs
|
||||
cp -r drivers $RPM_BUILD_ROOT/%{_prefix}/lib/torcs
|
||||
cd %{_tmppath}/%{name}-ship/%{_prefix}/lib/torcs-ng
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/torcs-ng
|
||||
cp -r drivers $RPM_BUILD_ROOT/%{_prefix}/lib/torcs-ng
|
||||
cd -
|
||||
rm -rf %{_tmppath}/%{name}-ship
|
||||
|
||||
|
@ -45,8 +45,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}/share/games/torcs/*
|
||||
%{_prefix}/lib/torcs/*
|
||||
%{_prefix}/share/games/torcs-ng/*
|
||||
%{_prefix}/lib/torcs-ng/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 25 2003 Eric Espié <Eric.Espie@free.fr> 1.2.2
|
||||
|
|
Loading…
Reference in New Issue