]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- many small fixes, mostly inpired by kloczek
[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.1
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 URL:            http://torcs.sourceforge.net/
31 BuildRequires:  plib > 1.7.0-1
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 The Open Racing Car Simulator.
36
37 %description -l pl
38 The Open Racing Car Simulator - symulator wy¶cigów samochodowych.
39
40 %prep
41 %setup -q -n torcs-%{version} -a1 -a2 -a3 -a4 -a5 -a6
42 mv torcs-%{version}/src/drivers/* src/drivers
43 rm -r torcs-%{version}
44 %patch0 -p1
45
46 %build
47 CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS
48 CFLAGS="-I/usr/X11R6/include"; export CFLAGS
49 %{__aclocal}
50 %{__autoconf}
51 %configure \
52         --x-includes=/usr/X11R6/include
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 cp -rf data cars categories tracks menu $RPM_BUILD_ROOT%{_datadir}/games/torcs
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc CHANGELOG.html README.linux
70 %attr(755,root,root) %{_bindir}/*
71 %attr(755,root,root) %{_libdir}/lib*.so
72 %dir %{_datadir}/games/torcs
73 %{_datadir}/games/torcs/cars
74 %{_datadir}/games/torcs/categories
75 %{_datadir}/games/torcs/config
76 %{_datadir}/games/torcs/data
77 %{_datadir}/games/torcs/drivers
78 %{_datadir}/games/torcs/menu
79 %{_datadir}/games/torcs/modules
80 %{_datadir}/games/torcs/results
81 %{_datadir}/games/torcs/telemetry
82 %{_datadir}/games/torcs/tracks
83 %{_datadir}/games/torcs/setup_linux.sh
84 %attr(755,root,root) %{_datadir}/games/torcs/torcs
This page took 0.091787 seconds and 4 git commands to generate.