]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- added default-plib patch
[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.0
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:  915c89f9d3618d13dddd5bfb4d199539
10 Source1:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
11 # Source1-md5:  da007d61447f38fbdbd22aec029cc26c
12 Source2:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
13 # Source2-md5:  abeb72ba3913ef0bde727fdaa9699eef
14 Source3:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-bt.tgz
15 # Source3-md5:  ca8506aecc30bee308a5e198304b71b2
16 Source4:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-olethros.tgz
17 # Source4-md5:  227d47687b821298fe6b2f147071e73f
18 Source5:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
19 # Source5-md5:  8bff8540f7994dce02d32ba8fb4ad8a8
20 Source6:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-dirt.tgz
21 # Source6-md5:  7c1d5dab87d6c06ac8e7ba8bab30f0b1
22 Source7:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-oval.tgz
23 # Source7-md5:  a27ce8b505dfbf2caba91ac6cc802bab
24 Source8:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-road.tgz
25 # Source8-md5:  8e30d3cc03dafb8392d690d96459f317
26 Source9:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
27 # Source9-md5:  248ae5c165f703b22bd7224d7c2caed4
28 Source10:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-gt.tgz
29 # Source10-md5: 02fb83162e78ac52c4d8ea829e34f8b3
30 Source11:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-roadsters.tgz
31 # Source11-md5: b4c3399c5dab66d41790f00eec2c6bd3
32 Source12:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-sport.tgz
33 # Source12-md5: d6b67de89c964fb42b27d6fb777549bd
34 Source13:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-nascar.tgz
35 # Source13-md5: 40de51f6a929d121f46dd47709d58b8b
36 Source14:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
37 # Source14-md5: 1b38279fb1e0c12ec256d26d6b17e1cc
38 Source15:       http://dl.sourceforge.net/torcs/%{name}-%{version}-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}
274
275 %install
276 rm -rf $RPM_BUILD_ROOT
277 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
278
279 %{__make} 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.linux
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/clkdtm
355 %{_datadir}/games/torcs/cars/gt40
356 %{_datadir}/games/torcs/cars/lotus-gt1
357 %{_datadir}/games/torcs/cars/mclaren-f1
358 %{_datadir}/games/torcs/cars/p406
359 %{_datadir}/games/torcs/cars/porsche-gt1
360 %{_datadir}/games/torcs/cars/porsche-gt3rs
361 %{_datadir}/games/torcs/cars/sc-f1
362 %{_datadir}/games/torcs/cars/viper-gts-r
363 %{_datadir}/games/torcs/cars/xj-220
364
365 %files data-cars-nascar
366 %defattr(644,root,root,755)
367 %{_datadir}/games/torcs/cars/cg-nascar-rwd
368 %{_datadir}/games/torcs/categories/Nascar.xml
369
370 %files data-cars-Patwo-Design
371 %defattr(644,root,root,755)
372 %{_datadir}/games/torcs/cars/pw-*
373
374 %files data-cars-kcendra-gt
375 %defattr(644,root,root,755)
376 %{_datadir}/games/torcs/cars/kc-2000gt
377 %{_datadir}/games/torcs/cars/kc-5300gt
378 %{_datadir}/games/torcs/cars/kc-corvette-ttop
379 %{_datadir}/games/torcs/cars/kc-daytona
380 %{_datadir}/games/torcs/cars/kc-db4z
381 %{_datadir}/games/torcs/cars/kc-dbs
382 %{_datadir}/games/torcs/cars/kc-dino
383 %{_datadir}/games/torcs/cars/kc-ghibli
384 %{_datadir}/games/torcs/cars/kc-grifo
385
386 %files data-cars-kcendra-roadsters
387 %defattr(644,root,root,755)
388 %{_datadir}/games/torcs/cars/kc-bigh
389
390 %files data-cars-kcendra-sport
391 %defattr(644,root,root,755)
392 %{_datadir}/games/torcs/cars/kc-a110
393 %{_datadir}/games/torcs/cars/kc-alfatz2
394 %{_datadir}/games/torcs/cars/kc-coda
395 %{_datadir}/games/torcs/cars/kc-conrero
396 %{_datadir}/games/torcs/cars/kc-gt40
397 %{_datadir}/games/torcs/cars/kc-gto
398 %{_datadir}/games/torcs/cars/kc-p4
399
400 %files data-cars-VM
401 %defattr(644,root,root,755)
402 %{_datadir}/games/torcs/cars/vm-x2
403 %{_datadir}/games/torcs/cars/vm-x4
404
405 %files robots-base
406 %defattr(644,root,root,755)
407 %{_datadir}/games/torcs/drivers/cylos1
408 %dir %{_libdir}/torcs/drivers/cylos1
409 %attr(755,root,root) %{_libdir}/torcs/drivers/cylos1/*.so
410 %{_datadir}/games/torcs/drivers/damned
411 %dir %{_libdir}/torcs/drivers/damned
412 %attr(755,root,root) %{_libdir}/torcs/drivers/damned/*.so
413 %{_datadir}/games/torcs/drivers/inferno*
414 %dir %{_libdir}/torcs/drivers/inferno*
415 %attr(755,root,root) %{_libdir}/torcs/drivers/inferno*/*.so
416 %{_datadir}/games/torcs/drivers/lliaw
417 %dir %{_libdir}/torcs/drivers/lliaw
418 %attr(755,root,root) %{_libdir}/torcs/drivers/lliaw/*.so
419 %{_datadir}/games/torcs/drivers/tanhoj
420 %dir %{_libdir}/torcs/drivers/tanhoj
421 %attr(755,root,root) %{_libdir}/torcs/drivers/tanhoj/*.so
422 %{_datadir}/games/torcs/drivers/tita
423 %dir %{_libdir}/torcs/drivers/tita
424 %attr(755,root,root) %{_libdir}/torcs/drivers/tita/*.so
425
426 %files robots-berniw
427 %defattr(644,root,root,755)
428 %{_datadir}/games/torcs/drivers/berniw*
429 %dir %{_libdir}/torcs/drivers/berniw*
430 %attr(755,root,root) %{_libdir}/torcs/drivers/berniw*/*.so
431 %{_datadir}/games/torcs/drivers/sparkle
432 %dir %{_libdir}/torcs/drivers/sparkle
433 %attr(755,root,root) %{_libdir}/torcs/drivers/sparkle/*.so
434
435 %files robots-bt
436 %defattr(644,root,root,755)
437 %{_datadir}/games/torcs/drivers/bt
438 %dir %{_libdir}/torcs/drivers/bt
439 %attr(755,root,root) %{_libdir}/torcs/drivers/bt/*.so
440
441 %files robots-olethros
442 %defattr(644,root,root,755)
443 %{_datadir}/games/torcs/drivers/olethros
444 %dir %{_libdir}/torcs/drivers/olethros
445 %attr(755,root,root) %{_libdir}/torcs/drivers/olethros/*.so
This page took 0.111402 seconds and 4 git commands to generate.