]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- obsolete
[packages/TORCS.git] / TORCS.spec
1 Summary:        The Open Racing Car Simulator
2 Summary(pl):    The Open Racing Car Simulator - symulator wy¶cigów samochodowych
3 Name:           TORCS
4 Version:        1.2.4
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src.tgz
9 # Source0-md5:  f5b41bf29cb7b6160e5ead6e187380b6
10 Source1:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
11 # Source1-md5:  3afe0d23f1e637fe56efccd2b6e8a8f1
12 Source2:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
13 # Source2-md5:  40aed9595f91051e8468e8a19b65f809
14 Source3:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-bt.tgz
15 # Source3-md5:  337eecc6e545aceda094d945e12c3023
16 Source4:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-olethros.tgz
17 # Source4-md5:  13b1eeba1148ca57dc1d989fcb27d308
18 Source5:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
19 # Source5-md5:  0129c5c930bbc830964bd32024f9a47d
20 Source6:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-dirt.tgz
21 # Source6-md5:  2464de31150f97da54d9e7609ca125fe
22 Source7:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-oval.tgz
23 # Source7-md5:  b7ddc6ad362bfafc6f66cfcc459ec30b
24 Source8:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-road.tgz
25 # Source8-md5:  9084b2700d71f86fedfc7a5f55959b0b
26 Source9:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
27 # Source9-md5:  f11f0789885fe427f7b8958a17cc9f52
28 Source10:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-gt.tgz
29 # Source10-md5: fd91d2812aeab050d0a4c85927ba7955
30 Source11:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-roadsters.tgz
31 # Source11-md5: 40f495c44416d2154b8533f8e32a5a05
32 Source12:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-sport.tgz
33 # Source12-md5: c484d9be5b49a4820aeb5486b4cb4c49
34 Source13:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-nascar.tgz
35 # Source13-md5: 30e3ab4da6c503a6a7ba6eaf2898ede0
36 Source14:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
37 # Source14-md5: 42abef979a298dd829b7f41e025d6365
38 Source15:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-VM.tgz
39 # Source15-md5: 328a9bef7b1c81078dfe5ec3c968ddbc
40 Source16:       %{name}.desktop
41 Source17:       %{name}.png
42 Patch0:         %{name}-link.patch
43 Patch1:         %{name}-gcc4.patch
44 URL:            http://www.torcs.org/
45 BuildRequires:  autoconf
46 BuildRequires:  automake
47 BuildRequires:  freealut-devel
48 BuildRequires:  glut-devel >= 3.7-14
49 BuildRequires:  libpng-devel
50 BuildRequires:  libstdc++-devel
51 BuildRequires:  plib-devel >= 1.8.3
52 BuildRequires:  xorg-lib-libXrandr-devel
53 BuildRequires:  xorg-lib-libXxf86vm-devel
54 BuildRequires:  zlib-devel
55 Requires:       %{name}-data = %{version}-%{release}
56 Requires:       OpenGL
57 Requires:       freealut
58 Requires:       plib >= 1.8.3
59 Obsoletes:      TORCS-robots-K1999
60 Obsoletes:      TORCS-robots-astigot
61 Obsoletes:      TORCS-robots-billy
62 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
65
66 %description
67 The Open Racing Car Simulator.
68
69 %description -l pl
70 The Open Racing Car Simulator - symulator wy¶cigów samochodowych.
71
72 %package data
73 Summary:        Data files for TORCS
74 Summary(pl):    Pliki z danymi dla TORCS
75 Group:          X11/Applications/Games
76 Requires:       %{name} = %{version}-%{release}
77 Requires:       %{name}-data-cars-extra = %{version}-%{release}
78 Requires:       %{name}-data-tracks-road = %{version}-%{release}
79 Requires:       %{name}-robots-base = %{version}-%{release}
80
81 %description data
82 Data files for TORCS.
83
84 %description data -l pl
85 Pliki z danymi dla TORCS.
86
87 %package data-tracks-road
88 Summary:        Road-circuit tracks for TORCS
89 Summary(pl):    Trasy dla TORCS
90 Group:          X11/Applications/Games
91 Requires:       %{name} = %{version}-%{release}
92
93 %description data-tracks-road
94 Base tracks data files for TORCS.
95
96 %description data-tracks-road -l pl
97 Trasy dla TORCS.
98
99 %package data-tracks-oval
100 Summary:        Oval-like tracks for TORCS
101 Summary(pl):    Trasy owalne dla TORCS
102 Group:          X11/Applications/Games
103 Requires:       %{name} = %{version}-%{release}
104
105 %description data-tracks-oval
106 Oval-like tracks for TORCS.
107
108 %description data-tracks-oval -l pl
109 Trasy owalne dla TORCS.
110
111 %package data-tracks-dirt
112 Summary:        Dirt tracks for TORCS
113 Summary(pl):    Trasy szutrowe dla TORCS
114 Group:          X11/Applications/Games
115 Requires:       %{name} = %{version}-%{release}
116
117 %description data-tracks-dirt
118 Dirt tracks for TORCS.
119
120 %description data-tracks-dirt -l pl
121 Trasy szutrowe dla TORCS.
122
123 %package data-cars-extra
124 Summary:        Recommended cars for TORCS
125 Summary(pl):    Zalecane samochody dla TORCS
126 Group:          X11/Applications/Games
127 Requires:       %{name} = %{version}-%{release}
128
129 %description data-cars-extra
130 Recommended cars for TORCS.
131
132 %description data-cars-extra -l pl
133 Zalecane samochody dla TORCS.
134
135 %package data-cars-nascar
136 Summary:        Nascar cars for TORCS
137 Summary(pl):    Samochody Nascar dla TORCS
138 Group:          X11/Applications/Games
139 Requires:       %{name} = %{version}-%{release}
140 Requires:       %{name}-data-cars-extra = %{version}-%{release}
141
142 %description data-cars-nascar
143 Nascar cars for TORCS.
144
145 %description data-cars-nascar -l pl
146 Samochody Nascar dla TORCS.
147
148 %package data-cars-Patwo-Design
149 Summary:        Rally cars for TORCS
150 Summary(pl):    Samochody rajdowe dla TORCS
151 License:        distributable (see readme.txt)
152 Group:          X11/Applications/Games
153 Requires:       %{name} = %{version}-%{release}
154
155 %description data-cars-Patwo-Design
156 Rally cars for TORCS.
157
158 %description data-cars-Patwo-Design -l pl
159 Samochody rajdowe dla TORCS.
160
161 %package data-cars-kcendra-gt
162 Summary:        GT cars from the 60's for TORCS
163 Summary(pl):    Samochody GT z lat 60' dla TORCS
164 License:        distributable (see readme.txt)
165 Group:          X11/Applications/Games
166 Requires:       %{name} = %{version}-%{release}
167
168 %description data-cars-kcendra-gt
169 GT cars from the 60's for TORCS.
170
171 %description data-cars-kcendra-gt -l pl
172 Samochody GT z lat 60' dla TORCS.
173
174 %package data-cars-kcendra-roadsters
175 Summary:        Roadsters from the 60's for TORCS
176 Summary(pl):    Samochody Roadsters z lat 60' dla TORCS
177 License:        distributable (see readme.txt)
178 Group:          X11/Applications/Games
179 Requires:       %{name} = %{version}-%{release}
180
181 %description data-cars-kcendra-roadsters
182 Roadsters from the 60's for TORCS.
183
184 %description data-cars-kcendra-roadsters -l pl
185 Samochody Roadsters z lat 60' dla TORCS.
186
187 %package data-cars-kcendra-sport
188 Summary:        Sport cars from the 60's for TORCS
189 Summary(pl):    Samochody sportowe z lat 60' dla TORCS
190 License:        distributable (see readme.txt)
191 Group:          X11/Applications/Games
192 Requires:       %{name} = %{version}-%{release}
193
194 %description data-cars-kcendra-sport
195 Sport cars from the 60's for TORCS.
196
197 %description data-cars-kcendra-sport -l pl
198 Samochody sportowe z lat 60' dla TORCS.
199
200 %package data-cars-VM
201 Summary:        Race cars for TORCS
202 Summary(pl):    Samochody wy¶cigowe dla TORCS
203 License:        distributable (see readme.txt)
204 Group:          X11/Applications/Games
205 Requires:       %{name} = %{version}-%{release}
206
207 %description data-cars-VM
208 Race cars for TORCS.
209
210 %description data-cars-VM -l pl
211 Samochody wy¶cigowe dla TORCS.
212
213 %package robots-base
214 Summary:        Base robots files for TORCS
215 Summary(pl):    Podstawowe pliki komputerowych kierowców dla TORCS
216 Group:          X11/Applications/Games
217 Requires:       %{name} = %{version}-%{release}
218
219 %description robots-base
220 Base robots files for TORCS.
221
222 %description robots-base -l pl
223 Podstawowe pliki komputerowych kierowców dla TORCS.
224
225 %package robots-berniw
226 Summary:        Berniw robots files for TORCS
227 Summary(pl):    Pliki komputerowych kierowców dla TORCS - Berniw
228 Group:          X11/Applications/Games
229 Requires:       %{name} = %{version}-%{release}
230
231 %description robots-berniw
232 Berniw robots files for TORCS.
233
234 %description robots-berniw -l pl
235 Pliki komputerowych kierowców dla TORCS - Berniw.
236
237 %package robots-bt
238 Summary:        Bt robots files for TORCS
239 Summary(pl):    Pliki komputerowych kierowców dla TORCS - bt
240 Group:          X11/Applications/Games
241 Requires:       %{name} = %{version}-%{release}
242
243 %description robots-bt
244 Bt robots files for TORCS.
245
246 %description robots-bt -l pl
247 Pliki komputerowych kierowców dla TORCS - bt.
248
249 %package robots-olethros
250 Summary:        Olethros robots files for TORCS
251 Summary(pl):    Pliki komputerowych kierowców dla TORCS - olethros
252 Group:          X11/Applications/Games
253 Requires:       %{name} = %{version}-%{release}
254
255 %description robots-olethros
256 Olethros robots files for TORCS.
257
258 %description robots-olethros -l pl
259 Pliki komputerowych kierowców dla TORCS - olethros.
260
261 %prep
262 %setup -q -n torcs-%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15
263 mv torcs-%{version}/src/drivers/* src/drivers
264 rm -r torcs-%{version}
265 %patch0 -p1
266 %patch1 -p1
267
268 %build
269 %{__aclocal}
270 %{__autoconf}
271 %configure
272 %{__make}
273
274 %install
275 rm -rf $RPM_BUILD_ROOT
276 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
277
278 %{__make} install \
279         DESTDIR=$RPM_BUILD_ROOT
280
281 cp -rf data cars categories tracks menu $RPM_BUILD_ROOT%{_datadir}/games/torcs
282 install %{SOURCE16} $RPM_BUILD_ROOT%{_desktopdir}
283 install %{SOURCE17} $RPM_BUILD_ROOT%{_pixmapsdir}
284
285 find $RPM_BUILD_ROOT%{_datadir}/games/torcs -name "Makefile" -exec rm -f {} \;
286
287 %clean
288 rm -rf $RPM_BUILD_ROOT
289
290 %files
291 %defattr(644,root,root,755)
292 %doc CHANGELOG.html README.linux TODO.html
293 %attr(755,root,root) %{_bindir}/*
294 %dir %{_libdir}/torcs
295 %attr(755,root,root) %{_libdir}/torcs/*-bin
296 %attr(755,root,root) %{_libdir}/torcs/*.sh
297 %dir %{_libdir}/torcs/lib
298 %attr(755,root,root) %{_libdir}/torcs/lib/*.so
299 %dir %{_libdir}/torcs/modules
300 %dir %{_libdir}/torcs/modules/graphic
301 %attr(755,root,root) %{_libdir}/torcs/modules/graphic/*.so
302 %dir %{_libdir}/torcs/modules/simu
303 %attr(755,root,root) %{_libdir}/torcs/modules/simu/*.so
304 %dir %{_libdir}/torcs/modules/telemetry
305 %attr(755,root,root) %{_libdir}/torcs/modules/telemetry/*.so
306 %dir %{_libdir}/torcs/modules/track
307 %attr(755,root,root) %{_libdir}/torcs/modules/track/*.so
308 %dir %{_datadir}/games/torcs
309 %{_datadir}/games/torcs/config
310 %{_desktopdir}/*
311 %{_pixmapsdir}/*
312
313 %files data
314 %defattr(644,root,root,755)
315 %dir %{_datadir}/games/torcs/cars
316 %{_datadir}/games/torcs/cars/360-modena
317 %dir %{_datadir}/games/torcs/categories
318 %{_datadir}/games/torcs/categories/free.xml
319 %{_datadir}/games/torcs/categories/F1.xml
320 %{_datadir}/games/torcs/categories/Historic.xml
321 %{_datadir}/games/torcs/categories/Offroad*.xml
322 %{_datadir}/games/torcs/categories/Track*.xml
323 %{_datadir}/games/torcs/data
324 %dir %{_datadir}/games/torcs/drivers
325 %dir %{_libdir}/torcs/drivers
326 %{_datadir}/games/torcs/drivers/human
327 %dir %{_libdir}/torcs/drivers/human
328 %attr(755,root,root) %{_libdir}/torcs/drivers/human/*.so
329 %{_datadir}/games/torcs/menu
330 %{_datadir}/games/torcs/results
331 %{_datadir}/games/torcs/telemetry
332 %dir %{_datadir}/games/torcs/tracks
333
334 %files data-tracks-road
335 %defattr(644,root,root,755)
336 %{_datadir}/games/torcs/tracks/road
337
338 %files data-tracks-oval
339 %defattr(644,root,root,755)
340 %{_datadir}/games/torcs/tracks/oval
341
342 %files data-tracks-dirt
343 %defattr(644,root,root,755)
344 %{_datadir}/games/torcs/tracks/dirt
345
346 %files data-cars-extra
347 %defattr(644,root,root,755)
348 %{_datadir}/games/torcs/cars/155-DTM
349 %{_datadir}/games/torcs/cars/acura-nsx-sz
350 %{_datadir}/games/torcs/cars/baja-bug
351 %{_datadir}/games/torcs/cars/buggy
352 %{_datadir}/games/torcs/cars/clkdtm
353 %{_datadir}/games/torcs/cars/gt40
354 %{_datadir}/games/torcs/cars/lotus-gt1
355 %{_datadir}/games/torcs/cars/mclaren-f1
356 %{_datadir}/games/torcs/cars/p406
357 %{_datadir}/games/torcs/cars/porsche-gt1
358 %{_datadir}/games/torcs/cars/porsche-gt3rs
359 %{_datadir}/games/torcs/cars/sc-f1
360 %{_datadir}/games/torcs/cars/viper-gts-r
361 %{_datadir}/games/torcs/cars/xj-220
362
363 %files data-cars-nascar
364 %defattr(644,root,root,755)
365 %{_datadir}/games/torcs/cars/cg-nascar-rwd
366 %{_datadir}/games/torcs/categories/Nascar.xml
367
368 %files data-cars-Patwo-Design
369 %defattr(644,root,root,755)
370 %{_datadir}/games/torcs/cars/pw-*
371
372 %files data-cars-kcendra-gt
373 %defattr(644,root,root,755)
374 %{_datadir}/games/torcs/cars/kc-2000gt
375 %{_datadir}/games/torcs/cars/kc-5300gt
376 %{_datadir}/games/torcs/cars/kc-corvette-ttop
377 %{_datadir}/games/torcs/cars/kc-daytona
378 %{_datadir}/games/torcs/cars/kc-db4z
379 %{_datadir}/games/torcs/cars/kc-dbs
380 %{_datadir}/games/torcs/cars/kc-dino
381 %{_datadir}/games/torcs/cars/kc-ghibli
382 %{_datadir}/games/torcs/cars/kc-grifo
383
384 %files data-cars-kcendra-roadsters
385 %defattr(644,root,root,755)
386 %{_datadir}/games/torcs/cars/kc-bigh
387
388 %files data-cars-kcendra-sport
389 %defattr(644,root,root,755)
390 %{_datadir}/games/torcs/cars/kc-a110
391 %{_datadir}/games/torcs/cars/kc-alfatz2
392 %{_datadir}/games/torcs/cars/kc-coda
393 %{_datadir}/games/torcs/cars/kc-conrero
394 %{_datadir}/games/torcs/cars/kc-gt40
395 %{_datadir}/games/torcs/cars/kc-gto
396 %{_datadir}/games/torcs/cars/kc-p4
397
398 %files data-cars-VM
399 %defattr(644,root,root,755)
400 %{_datadir}/games/torcs/cars/vm-x2
401 %{_datadir}/games/torcs/cars/vm-x4
402
403 %files robots-base
404 %defattr(644,root,root,755)
405 %{_datadir}/games/torcs/drivers/cylos1
406 %dir %{_libdir}/torcs/drivers/cylos1
407 %attr(755,root,root) %{_libdir}/torcs/drivers/cylos1/*.so
408 %{_datadir}/games/torcs/drivers/damned
409 %dir %{_libdir}/torcs/drivers/damned
410 %attr(755,root,root) %{_libdir}/torcs/drivers/damned/*.so
411 %{_datadir}/games/torcs/drivers/inferno*
412 %dir %{_libdir}/torcs/drivers/inferno*
413 %attr(755,root,root) %{_libdir}/torcs/drivers/inferno*/*.so
414 %{_datadir}/games/torcs/drivers/lliaw
415 %dir %{_libdir}/torcs/drivers/lliaw
416 %attr(755,root,root) %{_libdir}/torcs/drivers/lliaw/*.so
417 %{_datadir}/games/torcs/drivers/tanhoj
418 %dir %{_libdir}/torcs/drivers/tanhoj
419 %attr(755,root,root) %{_libdir}/torcs/drivers/tanhoj/*.so
420 %{_datadir}/games/torcs/drivers/tita
421 %dir %{_libdir}/torcs/drivers/tita
422 %attr(755,root,root) %{_libdir}/torcs/drivers/tita/*.so
423
424 %files robots-berniw
425 %defattr(644,root,root,755)
426 %{_datadir}/games/torcs/drivers/berniw*
427 %dir %{_libdir}/torcs/drivers/berniw*
428 %attr(755,root,root) %{_libdir}/torcs/drivers/berniw*/*.so
429 %{_datadir}/games/torcs/drivers/sparkle
430 %dir %{_libdir}/torcs/drivers/sparkle
431 %attr(755,root,root) %{_libdir}/torcs/drivers/sparkle/*.so
432
433 %files robots-bt
434 %defattr(644,root,root,755)
435 %{_datadir}/games/torcs/drivers/bt
436 %dir %{_libdir}/torcs/drivers/bt
437 %attr(755,root,root) %{_libdir}/torcs/drivers/bt/*.so
438
439 %files robots-olethros
440 %defattr(644,root,root,755)
441 %{_datadir}/games/torcs/drivers/olethros
442 %dir %{_libdir}/torcs/drivers/olethros
443 %attr(755,root,root) %{_libdir}/torcs/drivers/olethros/*.so
This page took 0.099717 seconds and 3 git commands to generate.