2 # - make it compile - this one is horrible, it creates exports/include dir
3 # in top source directory and puts symlinks to various *.h files there.
4 # However, it does not put symlinks to plib/*.h or GL/*.h. Anyone knows
5 # how to fix it? Or maybe this one should be removed from repo?
6 Summary: The Open Racing Car Simulator
7 Summary(pl): The Open Racing Car Simulator
12 Group: X11/Applications/Games
13 Source0: http://dl.sourceforge.net/torcs/%{name}-%{version}-src.tgz
14 Source1: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
15 Source2: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
16 Source3: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-K1999.tgz
17 Source4: http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
18 Source5: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-base.tgz
19 Source6: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
20 Source7: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
21 URL: http://torcs.sourceforge.net/
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _prefix /usr/X11R6
31 %setup -q -n torcs-1.2.0 -a 2 4 5 6
34 CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS
35 CFLAGS="-I/usr/X11R6/include"; export CFLAGS
39 --x-includes=%{_prefix}/include
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT
46 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/*