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