]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- added compile_fix patch (fixes compilation)
[packages/TORCS.git] / TORCS.spec
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 - symulator wy¶cigów samochodowych
8 Name:           TORCS
9 Version:        1.2.1
10 Release:        0.2
11 License:        GPL     
12 Group:          X11/Applications/Games
13 Source0:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src.tgz
14 # Source0-md5:  5e43742b252f1e96f8d93da82b8f9fbb
15 Source1:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
16 # Source1-md5:  f21e4e88c2d6982efb28798d02b1c491
17 Source2:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
18 # Source2-md5:  df4588752f50eedee7aa0d6f5df74036
19 Source3:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-K1999.tgz
20 # Source3-md5:  ee6a5f0099723087585d1295a2d3b48d
21 Source4:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
22 # Source4-md5:  b7c8729b122d1a3bc1fc563783828d12
23 Source5:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-base.tgz
24 # Source5-md5:  afb991a29f875e2030f2ad24d82d2c22
25 Source6:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
26 # Source6-md5:  1b96f6f9eedda8d1857f9bd112664ab6
27 Source7:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
28 # Source7-md5:  dddb6ffec22c15a9f8c60d0c69a806cf
29 Patch0:         %{name}-inc.patch
30 Patch1:         %{name}-compile_fix.patch
31 URL:            http://torcs.sourceforge.net/
32 BuildRequires:  plib > 1.7.0-1
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 The Open Racing Car Simulator.
37
38 %description -l pl
39 The Open Racing Car Simulator - symulator wy¶cigów samochodowych.
40
41 %prep
42 %setup -q -n torcs-%{version} -a1 -a2 -a3 -a4 -a5 -a6
43 mv torcs-%{version}/src/drivers/* src/drivers
44 rm -r torcs-%{version}
45 %patch0 -p1
46 %patch1 -p1
47
48 %build
49 CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS
50 CFLAGS="-I/usr/X11R6/include"; export CFLAGS
51 %{__aclocal}
52 %{__autoconf}
53 %configure \
54         --x-includes=/usr/X11R6/include
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 cp -rf data cars categories tracks menu $RPM_BUILD_ROOT%{_datadir}/games/torcs
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc CHANGELOG.html README.linux
72 %attr(755,root,root) %{_bindir}/*
73 %attr(755,root,root) %{_libdir}/lib*.so
74 %dir %{_datadir}/games/torcs
75 %{_datadir}/games/torcs/cars
76 %{_datadir}/games/torcs/categories
77 %{_datadir}/games/torcs/config
78 %{_datadir}/games/torcs/data
79 %{_datadir}/games/torcs/drivers
80 %{_datadir}/games/torcs/menu
81 %{_datadir}/games/torcs/modules
82 %{_datadir}/games/torcs/results
83 %{_datadir}/games/torcs/telemetry
84 %{_datadir}/games/torcs/tracks
85 %{_datadir}/games/torcs/setup_linux.sh
86 %attr(755,root,root) %{_datadir}/games/torcs/torcs
This page took 0.816357 seconds and 4 git commands to generate.