]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- requires freealut
[packages/TORCS.git] / TORCS.spec
1 Summary:        The Open Racing Car Simulator
2 Summary(pl.UTF-8):      The Open Racing Car Simulator - symulator wyścigów samochodowych
3 Name:           TORCS
4 Version:        1.3.1
5 Release:        3
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src.tgz
9 # Source0-md5:  91f2296213fbfb1f1971dee7535af9bc
10 Source1:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
11 # Source1-md5:  cf3cc25f774c1793446af432ff9fc704
12 Source2:        http://dl.sourceforge.net/torcs/%{name}-1.3.0-src-robots-berniw.tgz
13 # Source2-md5:  abeb72ba3913ef0bde727fdaa9699eef
14 Source3:        http://dl.sourceforge.net/torcs/%{name}-1.3.0-src-robots-bt.tgz
15 # Source3-md5:  ca8506aecc30bee308a5e198304b71b2
16 Source4:        http://dl.sourceforge.net/torcs/%{name}-1.3.0-src-robots-olethros.tgz
17 # Source4-md5:  227d47687b821298fe6b2f147071e73f
18 Source5:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
19 # Source5-md5:  36f9676bf2f9135a3cdb02ac49896cc3
20 Source6:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-dirt.tgz
21 # Source6-md5:  009d929b9d1ac6173be4045371501a94
22 Source7:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-oval.tgz
23 # Source7-md5:  807c231b5f02b96c937b5155ae188b02
24 Source8:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-road.tgz
25 # Source8-md5:  1017ed8df009870a8b05b8d274d0e3b6
26 Source9:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
27 # Source9-md5:  008b4c48f1860ecad871871903a00979
28 Source10:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-gt.tgz
29 # Source10-md5: 9deba2fcb7bf2f337ce6215ed2a4e70a
30 Source11:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-roadsters.tgz
31 # Source11-md5: 6a920b7a41e4e22911d7fa620da9c153
32 Source12:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-sport.tgz
33 # Source12-md5: 8d39822830c0ccb5793911f3d0da901f
34 Source13:       http://dl.sourceforge.net/torcs/%{name}-1.3.0-data-cars-nascar.tgz
35 # Source13-md5: 40de51f6a929d121f46dd47709d58b8b
36 Source14:       http://dl.sourceforge.net/torcs/%{name}-1.3.0-data-cars-Patwo-Design.tgz
37 # Source14-md5: 1b38279fb1e0c12ec256d26d6b17e1cc
38 Source15:       http://dl.sourceforge.net/torcs/%{name}-1.3.0-data-cars-VM.tgz
39 # Source15-md5: c58aeff1bb7fb8a100e06cfdfa65d9e6
40 Source16:       %{name}.desktop
41 Patch0:         %{name}-link.patch
42 Patch1:         %{name}-asneeded.patch
43 Patch2:         %{name}-default-plib.patch
44 URL:            http://www.torcs.org/
45 BuildRequires:  OpenGL-glut-devel
46 BuildRequires:  autoconf
47 BuildRequires:  automake
48 BuildRequires:  freealut-devel
49 BuildRequires:  libpng-devel >= 1.4
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:       freealut
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)
62
63 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
64
65 %description
66 The Open Racing Car Simulator.
67
68 %description -l pl.UTF-8
69 The Open Racing Car Simulator - symulator wyścigów samochodowych.
70
71 %package data
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}
79
80 %description data
81 Data files for TORCS.
82
83 %description data -l pl.UTF-8
84 Pliki z danymi dla TORCS.
85
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}
91
92 %description data-tracks-road
93 Base tracks data files for TORCS.
94
95 %description data-tracks-road -l pl.UTF-8
96 Trasy dla TORCS.
97
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}
103
104 %description data-tracks-oval
105 Oval-like tracks for TORCS.
106
107 %description data-tracks-oval -l pl.UTF-8
108 Trasy owalne dla TORCS.
109
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}
115
116 %description data-tracks-dirt
117 Dirt tracks for TORCS.
118
119 %description data-tracks-dirt -l pl.UTF-8
120 Trasy szutrowe dla TORCS.
121
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}
127
128 %description data-cars-extra
129 Recommended cars for TORCS.
130
131 %description data-cars-extra -l pl.UTF-8
132 Zalecane samochody dla TORCS.
133
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}
140
141 %description data-cars-nascar
142 Nascar cars for TORCS.
143
144 %description data-cars-nascar -l pl.UTF-8
145 Samochody Nascar dla TORCS.
146
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}
153
154 %description data-cars-Patwo-Design
155 Rally cars for TORCS.
156
157 %description data-cars-Patwo-Design -l pl.UTF-8
158 Samochody rajdowe dla TORCS.
159
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}
166
167 %description data-cars-kcendra-gt
168 GT cars from the 60's for TORCS.
169
170 %description data-cars-kcendra-gt -l pl.UTF-8
171 Samochody GT z lat 60' dla TORCS.
172
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}
179
180 %description data-cars-kcendra-roadsters
181 Roadsters from the 60's for TORCS.
182
183 %description data-cars-kcendra-roadsters -l pl.UTF-8
184 Samochody Roadsters z lat 60' dla TORCS.
185
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}
192
193 %description data-cars-kcendra-sport
194 Sport cars from the 60's for TORCS.
195
196 %description data-cars-kcendra-sport -l pl.UTF-8
197 Samochody sportowe z lat 60' dla TORCS.
198
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}
205
206 %description data-cars-VM
207 Race cars for TORCS.
208
209 %description data-cars-VM -l pl.UTF-8
210 Samochody wyścigowe dla TORCS.
211
212 %package robots-base
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}
217
218 %description robots-base
219 Base robots files for TORCS.
220
221 %description robots-base -l pl.UTF-8
222 Podstawowe pliki komputerowych kierowców dla TORCS.
223
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}
229
230 %description robots-berniw
231 Berniw robots files for TORCS.
232
233 %description robots-berniw -l pl.UTF-8
234 Pliki komputerowych kierowców dla TORCS - Berniw.
235
236 %package robots-bt
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}
241
242 %description robots-bt
243 Bt robots files for TORCS.
244
245 %description robots-bt -l pl.UTF-8
246 Pliki komputerowych kierowców dla TORCS - bt.
247
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}
253
254 %description robots-olethros
255 Olethros robots files for TORCS.
256
257 %description robots-olethros -l pl.UTF-8
258 Pliki komputerowych kierowców dla TORCS - olethros.
259
260 %prep
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}
264 %patch0 -p1
265 %patch1 -p1
266 %patch2 -p1
267
268 %build
269 %{__aclocal}
270 %{__autoconf}
271 %configure
272 %{__make} -j1
273
274 %install
275 rm -rf $RPM_BUILD_ROOT
276 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
277
278 %{__make} -j1 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 logo-skinner-trans.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
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 README
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}/*.desktop
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/car1-trb1
353 %{_datadir}/games/torcs/cars/car1-trb3
354 %{_datadir}/games/torcs/cars/car2-trb1
355 %{_datadir}/games/torcs/cars/car3-trb1
356 %{_datadir}/games/torcs/cars/car4-trb1
357 %{_datadir}/games/torcs/cars/car5-trb1
358 %{_datadir}/games/torcs/cars/car6-trb1
359 %{_datadir}/games/torcs/cars/car7-trb1
360 #%{_datadir}/games/torcs/cars/clkdtm
361 #%{_datadir}/games/torcs/cars/gt40
362 #%{_datadir}/games/torcs/cars/lotus-gt1
363 #%{_datadir}/games/torcs/cars/mclaren-f1
364 %{_datadir}/games/torcs/cars/p406
365 #%{_datadir}/games/torcs/cars/porsche-gt1
366 #%{_datadir}/games/torcs/cars/porsche-gt3rs
367 %{_datadir}/games/torcs/cars/sc-f1
368 #%{_datadir}/games/torcs/cars/viper-gts-r
369 #%{_datadir}/games/torcs/cars/xj-220
370
371 %files data-cars-nascar
372 %defattr(644,root,root,755)
373 %{_datadir}/games/torcs/cars/cg-nascar-rwd
374 %{_datadir}/games/torcs/categories/Nascar.xml
375
376 %files data-cars-Patwo-Design
377 %defattr(644,root,root,755)
378 %{_datadir}/games/torcs/cars/pw-*
379
380 %files data-cars-kcendra-gt
381 %defattr(644,root,root,755)
382 %{_datadir}/games/torcs/cars/kc-2000gt
383 %{_datadir}/games/torcs/cars/kc-5300gt
384 %{_datadir}/games/torcs/cars/kc-corvette-ttop
385 %{_datadir}/games/torcs/cars/kc-daytona
386 %{_datadir}/games/torcs/cars/kc-db4z
387 %{_datadir}/games/torcs/cars/kc-dbs
388 %{_datadir}/games/torcs/cars/kc-dino
389 %{_datadir}/games/torcs/cars/kc-ghibli
390 %{_datadir}/games/torcs/cars/kc-grifo
391
392 %files data-cars-kcendra-roadsters
393 %defattr(644,root,root,755)
394 %{_datadir}/games/torcs/cars/kc-bigh
395
396 %files data-cars-kcendra-sport
397 %defattr(644,root,root,755)
398 %{_datadir}/games/torcs/cars/kc-a110
399 %{_datadir}/games/torcs/cars/kc-alfatz2
400 %{_datadir}/games/torcs/cars/kc-coda
401 %{_datadir}/games/torcs/cars/kc-conrero
402 %{_datadir}/games/torcs/cars/kc-gt40
403 %{_datadir}/games/torcs/cars/kc-gto
404 %{_datadir}/games/torcs/cars/kc-p4
405
406 %files data-cars-VM
407 %defattr(644,root,root,755)
408 %{_datadir}/games/torcs/cars/vm-x2
409 %{_datadir}/games/torcs/cars/vm-x4
410
411 %files robots-base
412 %defattr(644,root,root,755)
413 #%{_datadir}/games/torcs/drivers/cylos1
414 #%dir %{_libdir}/torcs/drivers/cylos1
415 #%attr(755,root,root) %{_libdir}/torcs/drivers/cylos1/*.so
416 %{_datadir}/games/torcs/drivers/damned
417 %dir %{_libdir}/torcs/drivers/damned
418 %attr(755,root,root) %{_libdir}/torcs/drivers/damned/*.so
419 %{_datadir}/games/torcs/drivers/inferno*
420 %dir %{_libdir}/torcs/drivers/inferno*
421 %attr(755,root,root) %{_libdir}/torcs/drivers/inferno*/*.so
422 %{_datadir}/games/torcs/drivers/lliaw
423 %dir %{_libdir}/torcs/drivers/lliaw
424 %attr(755,root,root) %{_libdir}/torcs/drivers/lliaw/*.so
425 #%{_datadir}/games/torcs/drivers/tanhoj
426 #%dir %{_libdir}/torcs/drivers/tanhoj
427 #%attr(755,root,root) %{_libdir}/torcs/drivers/tanhoj/*.so
428 %{_datadir}/games/torcs/drivers/tita
429 %dir %{_libdir}/torcs/drivers/tita
430 %attr(755,root,root) %{_libdir}/torcs/drivers/tita/*.so
431
432 %files robots-berniw
433 %defattr(644,root,root,755)
434 %{_datadir}/games/torcs/drivers/berniw*
435 %dir %{_libdir}/torcs/drivers/berniw*
436 %attr(755,root,root) %{_libdir}/torcs/drivers/berniw*/*.so
437 %{_datadir}/games/torcs/drivers/sparkle
438 %dir %{_libdir}/torcs/drivers/sparkle
439 %attr(755,root,root) %{_libdir}/torcs/drivers/sparkle/*.so
440
441 %files robots-bt
442 %defattr(644,root,root,755)
443 %{_datadir}/games/torcs/drivers/bt
444 %dir %{_libdir}/torcs/drivers/bt
445 %attr(755,root,root) %{_libdir}/torcs/drivers/bt/*.so
446
447 %files robots-olethros
448 %defattr(644,root,root,755)
449 %{_datadir}/games/torcs/drivers/olethros
450 %dir %{_libdir}/torcs/drivers/olethros
451 %attr(755,root,root) %{_libdir}/torcs/drivers/olethros/*.so
This page took 0.145166 seconds and 3 git commands to generate.