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