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