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