1 Summary: The Open Racing Car Simulator
2 Summary(pl.UTF-8): The Open Racing Car Simulator - symulator wyścigów samochodowych
7 Group: X11/Applications/Games
8 Source0: http://dl.sourceforge.net/torcs/%{name}-%{version}-src.tgz
9 # Source0-md5: 915c89f9d3618d13dddd5bfb4d199539
10 Source1: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
11 # Source1-md5: da007d61447f38fbdbd22aec029cc26c
12 Source2: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
13 # Source2-md5: abeb72ba3913ef0bde727fdaa9699eef
14 Source3: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-bt.tgz
15 # Source3-md5: ca8506aecc30bee308a5e198304b71b2
16 Source4: http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-olethros.tgz
17 # Source4-md5: 227d47687b821298fe6b2f147071e73f
18 Source5: http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
19 # Source5-md5: 8bff8540f7994dce02d32ba8fb4ad8a8
20 Source6: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-dirt.tgz
21 # Source6-md5: 7c1d5dab87d6c06ac8e7ba8bab30f0b1
22 Source7: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-oval.tgz
23 # Source7-md5: a27ce8b505dfbf2caba91ac6cc802bab
24 Source8: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-road.tgz
25 # Source8-md5: 8e30d3cc03dafb8392d690d96459f317
26 Source9: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
27 # Source9-md5: 248ae5c165f703b22bd7224d7c2caed4
28 Source10: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-gt.tgz
29 # Source10-md5: 02fb83162e78ac52c4d8ea829e34f8b3
30 Source11: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-roadsters.tgz
31 # Source11-md5: b4c3399c5dab66d41790f00eec2c6bd3
32 Source12: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-sport.tgz
33 # Source12-md5: d6b67de89c964fb42b27d6fb777549bd
34 Source13: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-nascar.tgz
35 # Source13-md5: 40de51f6a929d121f46dd47709d58b8b
36 Source14: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
37 # Source14-md5: 1b38279fb1e0c12ec256d26d6b17e1cc
38 Source15: http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-VM.tgz
39 # Source15-md5: c58aeff1bb7fb8a100e06cfdfa65d9e6
40 Source16: %{name}.desktop
42 Patch0: %{name}-link.patch
43 URL: http://www.torcs.org/
44 BuildRequires: autoconf
45 BuildRequires: automake
46 BuildRequires: freealut-devel
47 BuildRequires: glut-devel >= 3.7-14
48 BuildRequires: libpng-devel
49 BuildRequires: libstdc++-devel
50 BuildRequires: plib-devel >= 1.8.3
51 BuildRequires: xorg-lib-libXrandr-devel
52 BuildRequires: xorg-lib-libXxf86vm-devel
53 BuildRequires: zlib-devel
54 Requires: %{name}-data = %{version}-%{release}
57 Requires: plib >= 1.8.3
58 Obsoletes: TORCS-robots-K1999
59 Obsoletes: TORCS-robots-astigot
60 Obsoletes: TORCS-robots-billy
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 %define _noautoreqdep libGL.so.1 libGLU.so.1
66 The Open Racing Car Simulator.
68 %description -l pl.UTF-8
69 The Open Racing Car Simulator - symulator wyścigów samochodowych.
72 Summary: Data files for TORCS
73 Summary(pl.UTF-8): Pliki z danymi dla TORCS
74 Group: X11/Applications/Games
75 Requires: %{name} = %{version}-%{release}
76 Requires: %{name}-data-cars-extra = %{version}-%{release}
77 Requires: %{name}-data-tracks-road = %{version}-%{release}
78 Requires: %{name}-robots-base = %{version}-%{release}
83 %description data -l pl.UTF-8
84 Pliki z danymi dla TORCS.
86 %package data-tracks-road
87 Summary: Road-circuit tracks for TORCS
88 Summary(pl.UTF-8): Trasy dla TORCS
89 Group: X11/Applications/Games
90 Requires: %{name} = %{version}-%{release}
92 %description data-tracks-road
93 Base tracks data files for TORCS.
95 %description data-tracks-road -l pl.UTF-8
98 %package data-tracks-oval
99 Summary: Oval-like tracks for TORCS
100 Summary(pl.UTF-8): Trasy owalne dla TORCS
101 Group: X11/Applications/Games
102 Requires: %{name} = %{version}-%{release}
104 %description data-tracks-oval
105 Oval-like tracks for TORCS.
107 %description data-tracks-oval -l pl.UTF-8
108 Trasy owalne dla TORCS.
110 %package data-tracks-dirt
111 Summary: Dirt tracks for TORCS
112 Summary(pl.UTF-8): Trasy szutrowe dla TORCS
113 Group: X11/Applications/Games
114 Requires: %{name} = %{version}-%{release}
116 %description data-tracks-dirt
117 Dirt tracks for TORCS.
119 %description data-tracks-dirt -l pl.UTF-8
120 Trasy szutrowe dla TORCS.
122 %package data-cars-extra
123 Summary: Recommended cars for TORCS
124 Summary(pl.UTF-8): Zalecane samochody dla TORCS
125 Group: X11/Applications/Games
126 Requires: %{name} = %{version}-%{release}
128 %description data-cars-extra
129 Recommended cars for TORCS.
131 %description data-cars-extra -l pl.UTF-8
132 Zalecane samochody dla TORCS.
134 %package data-cars-nascar
135 Summary: Nascar cars for TORCS
136 Summary(pl.UTF-8): Samochody Nascar dla TORCS
137 Group: X11/Applications/Games
138 Requires: %{name} = %{version}-%{release}
139 Requires: %{name}-data-cars-extra = %{version}-%{release}
141 %description data-cars-nascar
142 Nascar cars for TORCS.
144 %description data-cars-nascar -l pl.UTF-8
145 Samochody Nascar dla TORCS.
147 %package data-cars-Patwo-Design
148 Summary: Rally cars for TORCS
149 Summary(pl.UTF-8): Samochody rajdowe dla TORCS
150 License: distributable (see readme.txt)
151 Group: X11/Applications/Games
152 Requires: %{name} = %{version}-%{release}
154 %description data-cars-Patwo-Design
155 Rally cars for TORCS.
157 %description data-cars-Patwo-Design -l pl.UTF-8
158 Samochody rajdowe dla TORCS.
160 %package data-cars-kcendra-gt
161 Summary: GT cars from the 60's for TORCS
162 Summary(pl.UTF-8): Samochody GT z lat 60' dla TORCS
163 License: distributable (see readme.txt)
164 Group: X11/Applications/Games
165 Requires: %{name} = %{version}-%{release}
167 %description data-cars-kcendra-gt
168 GT cars from the 60's for TORCS.
170 %description data-cars-kcendra-gt -l pl.UTF-8
171 Samochody GT z lat 60' dla TORCS.
173 %package data-cars-kcendra-roadsters
174 Summary: Roadsters from the 60's for TORCS
175 Summary(pl.UTF-8): Samochody Roadsters z lat 60' dla TORCS
176 License: distributable (see readme.txt)
177 Group: X11/Applications/Games
178 Requires: %{name} = %{version}-%{release}
180 %description data-cars-kcendra-roadsters
181 Roadsters from the 60's for TORCS.
183 %description data-cars-kcendra-roadsters -l pl.UTF-8
184 Samochody Roadsters z lat 60' dla TORCS.
186 %package data-cars-kcendra-sport
187 Summary: Sport cars from the 60's for TORCS
188 Summary(pl.UTF-8): Samochody sportowe z lat 60' dla TORCS
189 License: distributable (see readme.txt)
190 Group: X11/Applications/Games
191 Requires: %{name} = %{version}-%{release}
193 %description data-cars-kcendra-sport
194 Sport cars from the 60's for TORCS.
196 %description data-cars-kcendra-sport -l pl.UTF-8
197 Samochody sportowe z lat 60' dla TORCS.
199 %package data-cars-VM
200 Summary: Race cars for TORCS
201 Summary(pl.UTF-8): Samochody wyścigowe dla TORCS
202 License: distributable (see readme.txt)
203 Group: X11/Applications/Games
204 Requires: %{name} = %{version}-%{release}
206 %description data-cars-VM
209 %description data-cars-VM -l pl.UTF-8
210 Samochody wyścigowe dla TORCS.
213 Summary: Base robots files for TORCS
214 Summary(pl.UTF-8): Podstawowe pliki komputerowych kierowców dla TORCS
215 Group: X11/Applications/Games
216 Requires: %{name} = %{version}-%{release}
218 %description robots-base
219 Base robots files for TORCS.
221 %description robots-base -l pl.UTF-8
222 Podstawowe pliki komputerowych kierowców dla TORCS.
224 %package robots-berniw
225 Summary: Berniw robots files for TORCS
226 Summary(pl.UTF-8): Pliki komputerowych kierowców dla TORCS - Berniw
227 Group: X11/Applications/Games
228 Requires: %{name} = %{version}-%{release}
230 %description robots-berniw
231 Berniw robots files for TORCS.
233 %description robots-berniw -l pl.UTF-8
234 Pliki komputerowych kierowców dla TORCS - Berniw.
237 Summary: Bt robots files for TORCS
238 Summary(pl.UTF-8): Pliki komputerowych kierowców dla TORCS - bt
239 Group: X11/Applications/Games
240 Requires: %{name} = %{version}-%{release}
242 %description robots-bt
243 Bt robots files for TORCS.
245 %description robots-bt -l pl.UTF-8
246 Pliki komputerowych kierowców dla TORCS - bt.
248 %package robots-olethros
249 Summary: Olethros robots files for TORCS
250 Summary(pl.UTF-8): Pliki komputerowych kierowców dla TORCS - olethros
251 Group: X11/Applications/Games
252 Requires: %{name} = %{version}-%{release}
254 %description robots-olethros
255 Olethros robots files for TORCS.
257 %description robots-olethros -l pl.UTF-8
258 Pliki komputerowych kierowców dla TORCS - olethros.
261 %setup -q -n torcs-%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15
262 mv torcs-%{version}/src/drivers/* src/drivers
263 rm -r torcs-%{version}
273 rm -rf $RPM_BUILD_ROOT
274 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
277 DESTDIR=$RPM_BUILD_ROOT
279 cp -rf data cars categories tracks menu $RPM_BUILD_ROOT%{_datadir}/games/torcs
280 install %{SOURCE16} $RPM_BUILD_ROOT%{_desktopdir}
281 install %{SOURCE17} $RPM_BUILD_ROOT%{_pixmapsdir}
283 find $RPM_BUILD_ROOT%{_datadir}/games/torcs -name "Makefile" -exec rm -f {} \;
286 rm -rf $RPM_BUILD_ROOT
289 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_bindir}/*
292 %dir %{_libdir}/torcs
293 %attr(755,root,root) %{_libdir}/torcs/*-bin
294 %attr(755,root,root) %{_libdir}/torcs/*.sh
295 %dir %{_libdir}/torcs/lib
296 %attr(755,root,root) %{_libdir}/torcs/lib/*.so
297 %dir %{_libdir}/torcs/modules
298 %dir %{_libdir}/torcs/modules/graphic
299 %attr(755,root,root) %{_libdir}/torcs/modules/graphic/*.so
300 %dir %{_libdir}/torcs/modules/simu
301 %attr(755,root,root) %{_libdir}/torcs/modules/simu/*.so
302 %dir %{_libdir}/torcs/modules/telemetry
303 %attr(755,root,root) %{_libdir}/torcs/modules/telemetry/*.so
304 %dir %{_libdir}/torcs/modules/track
305 %attr(755,root,root) %{_libdir}/torcs/modules/track/*.so
306 %dir %{_datadir}/games/torcs
307 %{_datadir}/games/torcs/config
308 %{_desktopdir}/*.desktop
312 %defattr(644,root,root,755)
313 %dir %{_datadir}/games/torcs/cars
314 %{_datadir}/games/torcs/cars/360-modena
315 %dir %{_datadir}/games/torcs/categories
316 %{_datadir}/games/torcs/categories/free.xml
317 %{_datadir}/games/torcs/categories/F1.xml
318 %{_datadir}/games/torcs/categories/Historic.xml
319 %{_datadir}/games/torcs/categories/Offroad*.xml
320 %{_datadir}/games/torcs/categories/Track*.xml
321 %{_datadir}/games/torcs/data
322 %dir %{_datadir}/games/torcs/drivers
323 %dir %{_libdir}/torcs/drivers
324 %{_datadir}/games/torcs/drivers/human
325 %dir %{_libdir}/torcs/drivers/human
326 %attr(755,root,root) %{_libdir}/torcs/drivers/human/*.so
327 %{_datadir}/games/torcs/menu
328 %{_datadir}/games/torcs/results
329 %{_datadir}/games/torcs/telemetry
330 %dir %{_datadir}/games/torcs/tracks
332 %files data-tracks-road
333 %defattr(644,root,root,755)
334 %{_datadir}/games/torcs/tracks/road
336 %files data-tracks-oval
337 %defattr(644,root,root,755)
338 %{_datadir}/games/torcs/tracks/oval
340 %files data-tracks-dirt
341 %defattr(644,root,root,755)
342 %{_datadir}/games/torcs/tracks/dirt
344 %files data-cars-extra
345 %defattr(644,root,root,755)
346 %{_datadir}/games/torcs/cars/155-DTM
347 %{_datadir}/games/torcs/cars/acura-nsx-sz
348 %{_datadir}/games/torcs/cars/baja-bug
349 %{_datadir}/games/torcs/cars/buggy
350 %{_datadir}/games/torcs/cars/car1-trb1
351 %{_datadir}/games/torcs/cars/clkdtm
352 %{_datadir}/games/torcs/cars/gt40
353 %{_datadir}/games/torcs/cars/lotus-gt1
354 %{_datadir}/games/torcs/cars/mclaren-f1
355 %{_datadir}/games/torcs/cars/p406
356 %{_datadir}/games/torcs/cars/porsche-gt1
357 %{_datadir}/games/torcs/cars/porsche-gt3rs
358 %{_datadir}/games/torcs/cars/sc-f1
359 %{_datadir}/games/torcs/cars/viper-gts-r
360 %{_datadir}/games/torcs/cars/xj-220
362 %files data-cars-nascar
363 %defattr(644,root,root,755)
364 %{_datadir}/games/torcs/cars/cg-nascar-rwd
365 %{_datadir}/games/torcs/categories/Nascar.xml
367 %files data-cars-Patwo-Design
368 %defattr(644,root,root,755)
369 %{_datadir}/games/torcs/cars/pw-*
371 %files data-cars-kcendra-gt
372 %defattr(644,root,root,755)
373 %{_datadir}/games/torcs/cars/kc-2000gt
374 %{_datadir}/games/torcs/cars/kc-5300gt
375 %{_datadir}/games/torcs/cars/kc-corvette-ttop
376 %{_datadir}/games/torcs/cars/kc-daytona
377 %{_datadir}/games/torcs/cars/kc-db4z
378 %{_datadir}/games/torcs/cars/kc-dbs
379 %{_datadir}/games/torcs/cars/kc-dino
380 %{_datadir}/games/torcs/cars/kc-ghibli
381 %{_datadir}/games/torcs/cars/kc-grifo
383 %files data-cars-kcendra-roadsters
384 %defattr(644,root,root,755)
385 %{_datadir}/games/torcs/cars/kc-bigh
387 %files data-cars-kcendra-sport
388 %defattr(644,root,root,755)
389 %{_datadir}/games/torcs/cars/kc-a110
390 %{_datadir}/games/torcs/cars/kc-alfatz2
391 %{_datadir}/games/torcs/cars/kc-coda
392 %{_datadir}/games/torcs/cars/kc-conrero
393 %{_datadir}/games/torcs/cars/kc-gt40
394 %{_datadir}/games/torcs/cars/kc-gto
395 %{_datadir}/games/torcs/cars/kc-p4
398 %defattr(644,root,root,755)
399 %{_datadir}/games/torcs/cars/vm-x2
400 %{_datadir}/games/torcs/cars/vm-x4
403 %defattr(644,root,root,755)
404 %{_datadir}/games/torcs/drivers/cylos1
405 %dir %{_libdir}/torcs/drivers/cylos1
406 %attr(755,root,root) %{_libdir}/torcs/drivers/cylos1/*.so
407 %{_datadir}/games/torcs/drivers/damned
408 %dir %{_libdir}/torcs/drivers/damned
409 %attr(755,root,root) %{_libdir}/torcs/drivers/damned/*.so
410 %{_datadir}/games/torcs/drivers/inferno*
411 %dir %{_libdir}/torcs/drivers/inferno*
412 %attr(755,root,root) %{_libdir}/torcs/drivers/inferno*/*.so
413 %{_datadir}/games/torcs/drivers/lliaw
414 %dir %{_libdir}/torcs/drivers/lliaw
415 %attr(755,root,root) %{_libdir}/torcs/drivers/lliaw/*.so
416 %{_datadir}/games/torcs/drivers/tanhoj
417 %dir %{_libdir}/torcs/drivers/tanhoj
418 %attr(755,root,root) %{_libdir}/torcs/drivers/tanhoj/*.so
419 %{_datadir}/games/torcs/drivers/tita
420 %dir %{_libdir}/torcs/drivers/tita
421 %attr(755,root,root) %{_libdir}/torcs/drivers/tita/*.so
424 %defattr(644,root,root,755)
425 %{_datadir}/games/torcs/drivers/berniw*
426 %dir %{_libdir}/torcs/drivers/berniw*
427 %attr(755,root,root) %{_libdir}/torcs/drivers/berniw*/*.so
428 %{_datadir}/games/torcs/drivers/sparkle
429 %dir %{_libdir}/torcs/drivers/sparkle
430 %attr(755,root,root) %{_libdir}/torcs/drivers/sparkle/*.so
433 %defattr(644,root,root,755)
434 %{_datadir}/games/torcs/drivers/bt
435 %dir %{_libdir}/torcs/drivers/bt
436 %attr(755,root,root) %{_libdir}/torcs/drivers/bt/*.so
438 %files robots-olethros
439 %defattr(644,root,root,755)
440 %{_datadir}/games/torcs/drivers/olethros
441 %dir %{_libdir}/torcs/drivers/olethros
442 %attr(755,root,root) %{_libdir}/torcs/drivers/olethros/*.so