]>
Commit | Line | Data |
---|---|---|
1da57690 AG |
1 | # ToDo: |
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 | |
8 | Name: TORCS | |
9 | Version: 1.2.0 | |
10 | Release: 0.1 | |
11 | License: GPL | |
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) | |
23 | ||
24 | %define _prefix /usr/X11R6 | |
25 | ||
26 | %description | |
27 | ||
28 | %description -l pl | |
29 | ||
30 | %prep | |
31 | %setup -q -n torcs-1.2.0 -a 2 4 5 6 | |
32 | ||
33 | %build | |
34 | CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS | |
35 | CFLAGS="-I/usr/X11R6/include"; export CFLAGS | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %configure \ | |
39 | --x-includes=%{_prefix}/include | |
40 | %{__make} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc ChangeLog README | |
54 | %attr(755,root,root) %{_bindir}/* | |
55 | %{_datadir}/%{name} |