]> git.pld-linux.org Git - packages/TORCS.git/blob - TORCS.spec
- fix build
[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.4
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:  f5b41bf29cb7b6160e5ead6e187380b6
10 Source1:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-base.tgz
11 # Source1-md5:  3afe0d23f1e637fe56efccd2b6e8a8f1
12 Source2:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-berniw.tgz
13 # Source2-md5:  40aed9595f91051e8468e8a19b65f809
14 Source3:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-bt.tgz
15 # Source3-md5:  337eecc6e545aceda094d945e12c3023
16 Source4:        http://dl.sourceforge.net/torcs/%{name}-%{version}-src-robots-olethros.tgz
17 # Source4-md5:  13b1eeba1148ca57dc1d989fcb27d308
18 Source5:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data.tgz
19 # Source5-md5:  0129c5c930bbc830964bd32024f9a47d
20 Source6:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-dirt.tgz
21 # Source6-md5:  2464de31150f97da54d9e7609ca125fe
22 Source7:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-oval.tgz
23 # Source7-md5:  b7ddc6ad362bfafc6f66cfcc459ec30b
24 Source8:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-tracks-road.tgz
25 # Source8-md5:  9084b2700d71f86fedfc7a5f55959b0b
26 Source9:        http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-extra.tgz
27 # Source9-md5:  f11f0789885fe427f7b8958a17cc9f52
28 Source10:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-gt.tgz
29 # Source10-md5: fd91d2812aeab050d0a4c85927ba7955
30 Source11:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-roadsters.tgz
31 # Source11-md5: 40f495c44416d2154b8533f8e32a5a05
32 Source12:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-kcendra-sport.tgz
33 # Source12-md5: c484d9be5b49a4820aeb5486b4cb4c49
34 Source13:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-nascar.tgz
35 # Source13-md5: 30e3ab4da6c503a6a7ba6eaf2898ede0
36 Source14:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-Patwo-Design.tgz
37 # Source14-md5: 42abef979a298dd829b7f41e025d6365
38 Source15:       http://dl.sourceforge.net/torcs/%{name}-%{version}-data-cars-VM.tgz
39 # Source15-md5: 328a9bef7b1c81078dfe5ec3c968ddbc
40 Source16:       %{name}.desktop
41 Source17:       %{name}.png
42 Patch0:         %{name}-inc.patch
43 URL:            http://www.torcs.org/
44 BuildRequires:  OpenAL-devel
45 BuildRequires:  OpenGL-devel
46 BuildRequires:  autoconf
47 BuildRequires:  automake
48 BuildRequires:  glut-devel >= 3.7
49 BuildRequires:  libpng-devel
50 BuildRequires:  libstdc++-devel
51 BuildRequires:  plib-devel >= 1.8.3
52 BuildRequires:  zlib-devel
53 Requires:       %{name}-data = %{version}-%{release}
54 Requires:       OpenAL
55 Requires:       OpenGL
56 Requires:       plib >= 1.8.3
57 Obsoletes:      TORCS-robots-K1999
58 Obsoletes:      TORCS-robots-astigot
59 Obsoletes:      TORCS-robots-billy
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
63
64 %description
65 The Open Racing Car Simulator.
66
67 %description -l pl
68 The Open Racing Car Simulator - symulator wy¶cigów samochodowych.
69
70 %package data
71 Summary:        Data files for TORCS
72 Summary(pl):    Pliki z danymi dla TORCS
73 Group:          X11/Applications/Games
74 Requires:       %{name} = %{version}-%{release}
75 Requires:       %{name}-data-cars-extra = %{version}-%{release}
76 Requires:       %{name}-data-tracks-road = %{version}-%{release}
77 Requires:       %{name}-robots-base = %{version}-%{release}
78
79 %description data
80 Data files for TORCS.
81
82 %description data -l pl
83 Pliki z danymi dla TORCS.
84
85 %package data-tracks-road
86 Summary:        Road-circuit tracks for TORCS
87 Summary(pl):    Trasy dla TORCS
88 Group:          X11/Applications/Games
89 Requires:       %{name} = %{version}-%{release}
90
91 %description data-tracks-road
92 Base tracks data files for TORCS.
93
94 %description data-tracks-road -l pl
95 Trasy dla TORCS.
96
97 %package data-tracks-oval
98 Summary:        Oval-like tracks for TORCS
99 Summary(pl):    Trasy owalne dla TORCS
100 Group:          X11/Applications/Games
101 Requires:       %{name} = %{version}-%{release}
102
103 %description data-tracks-oval
104 Oval-like tracks for TORCS.
105
106 %description data-tracks-oval -l pl
107 Trasy owalne dla TORCS.
108
109 %package data-tracks-dirt
110 Summary:        Dirt tracks for TORCS
111 Summary(pl):    Trasy szutrowe dla TORCS
112 Group:          X11/Applications/Games
113 Requires:       %{name} = %{version}-%{release}
114
115 %description data-tracks-dirt
116 Dirt tracks for TORCS.
117
118 %description data-tracks-dirt -l pl
119 Trasy szutrowe dla TORCS.
120
121 %package data-cars-extra
122 Summary:        Recommended cars for TORCS
123 Summary(pl):    Zalecane samochody dla TORCS
124 Group:          X11/Applications/Games
125 Requires:       %{name} = %{version}-%{release}
126
127 %description data-cars-extra
128 Recommended cars for TORCS.
129
130 %description data-cars-extra -l pl
131 Zalecane samochody dla TORCS.
132
133 %package data-cars-nascar
134 Summary:        Nascar cars for TORCS
135 Summary(pl):    Samochody Nascar dla TORCS
136 Group:          X11/Applications/Games
137 Requires:       %{name} = %{version}-%{release}
138 Requires:       %{name}-data-cars-extra = %{version}-%{release}
139
140 %description data-cars-nascar
141 Nascar cars for TORCS.
142
143 %description data-cars-nascar -l pl
144 Samochody Nascar dla TORCS.
145
146 %package data-cars-Patwo-Design
147 Summary:        Rally cars for TORCS
148 Summary(pl):    Samochody rajdowe dla TORCS
149 License:        distributable (see readme.txt)
150 Group:          X11/Applications/Games
151 Requires:       %{name} = %{version}-%{release}
152
153 %description data-cars-Patwo-Design
154 Rally cars for TORCS.
155
156 %description data-cars-Patwo-Design -l pl
157 Samochody rajdowe dla TORCS.
158
159 %package data-cars-kcendra-gt
160 Summary:        GT cars from the 60's for TORCS
161 Summary(pl):    Samochody GT z lat 60' dla TORCS
162 License:        distributable (see readme.txt)
163 Group:          X11/Applications/Games
164 Requires:       %{name} = %{version}-%{release}
165
166 %description data-cars-kcendra-gt
167 GT cars from the 60's for TORCS.
168
169 %description data-cars-kcendra-gt -l pl
170 Samochody GT z lat 60' dla TORCS.
171
172 %package data-cars-kcendra-roadsters
173 Summary:        Roadsters from the 60's for TORCS
174 Summary(pl):    Samochody Roadsters z lat 60' dla TORCS
175 License:        distributable (see readme.txt)
176 Group:          X11/Applications/Games
177 Requires:       %{name} = %{version}-%{release}
178
179 %description data-cars-kcendra-roadsters
180 Roadsters from the 60's for TORCS.
181
182 %description data-cars-kcendra-roadsters -l pl
183 Samochody Roadsters z lat 60' dla TORCS.
184
185 %package data-cars-kcendra-sport
186 Summary:        Sport cars from the 60's for TORCS
187 Summary(pl):    Samochody sportowe z lat 60' dla TORCS
188 License:        distributable (see readme.txt)
189 Group:          X11/Applications/Games
190 Requires:       %{name} = %{version}-%{release}
191
192 %description data-cars-kcendra-sport
193 Sport cars from the 60's for TORCS.
194
195 %description data-cars-kcendra-sport -l pl
196 Samochody sportowe z lat 60' dla TORCS.
197
198 %package data-cars-VM
199 Summary:        Race cars for TORCS
200 Summary(pl):    Samochody wy¶cigowe dla TORCS
201 License:        distributable (see readme.txt)
202 Group:          X11/Applications/Games
203 Requires:       %{name} = %{version}-%{release}
204
205 %description data-cars-VM
206 Race cars for TORCS.
207
208 %description data-cars-VM -l pl
209 Samochody wy¶cigowe dla TORCS.
210
211 %package robots-base
212 Summary:        Base robots files for TORCS
213 Summary(pl):    Podstawowe pliki komputerowych kierowców dla TORCS
214 Group:          X11/Applications/Games
215 Requires:       %{name} = %{version}-%{release}
216
217 %description robots-base
218 Base robots files for TORCS.
219
220 %description robots-base -l pl
221 Podstawowe pliki komputerowych kierowców dla TORCS.
222
223 %package robots-berniw
224 Summary:        Berniw robots files for TORCS
225 Summary(pl):    Pliki komputerowych kierowców dla TORCS - Berniw
226 Group:          X11/Applications/Games
227 Requires:       %{name} = %{version}-%{release}
228
229 %description robots-berniw
230 Berniw robots files for TORCS.
231
232 %description robots-berniw -l pl
233 Pliki komputerowych kierowców dla TORCS - Berniw.
234
235 %package robots-bt
236 Summary:        Bt robots files for TORCS
237 Summary(pl):    Pliki komputerowych kierowców dla TORCS - bt
238 Group:          X11/Applications/Games
239 Requires:       %{name} = %{version}-%{release}
240
241 %description robots-bt
242 Bt robots files for TORCS.
243
244 %description robots-bt -l pl
245 Pliki komputerowych kierowców dla TORCS - bt.
246
247 %package robots-olethros
248 Summary:        Olethros robots files for TORCS
249 Summary(pl):    Pliki komputerowych kierowców dla TORCS - olethros
250 Group:          X11/Applications/Games
251 Requires:       %{name} = %{version}-%{release}
252
253 %description robots-olethros
254 Olethros robots files for TORCS.
255
256 %description robots-olethros -l pl
257 Pliki komputerowych kierowców dla TORCS - olethros.
258
259 %prep
260 %setup -q -n torcs-%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15
261 mv torcs-%{version}/src/drivers/* src/drivers
262 rm -r torcs-%{version}
263 %patch0 -p1
264
265 %build
266 CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS
267 CFLAGS="-I/usr/X11R6/include"; export CFLAGS
268 %{__aclocal}
269 %{__autoconf}
270 %configure \
271         --x-includes=/usr/X11R6/include
272 %{__make}
273
274 %install
275 rm -rf $RPM_BUILD_ROOT
276 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
277
278 %{__make} 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 %{SOURCE17} $RPM_BUILD_ROOT%{_pixmapsdir}
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 CHANGELOG.html README.linux TODO.html
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}/*
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/clkdtm
353 %{_datadir}/games/torcs/cars/gt40
354 %{_datadir}/games/torcs/cars/lotus-gt1
355 %{_datadir}/games/torcs/cars/mclaren-f1
356 %{_datadir}/games/torcs/cars/p406
357 %{_datadir}/games/torcs/cars/porsche-gt1
358 %{_datadir}/games/torcs/cars/porsche-gt3rs
359 %{_datadir}/games/torcs/cars/sc-f1
360 %{_datadir}/games/torcs/cars/viper-gts-r
361 %{_datadir}/games/torcs/cars/xj-220
362
363 %files data-cars-nascar
364 %defattr(644,root,root,755)
365 %{_datadir}/games/torcs/cars/cg-nascar-rwd
366 %{_datadir}/games/torcs/categories/Nascar.xml
367
368 %files data-cars-Patwo-Design
369 %defattr(644,root,root,755)
370 %{_datadir}/games/torcs/cars/pw-*
371
372 %files data-cars-kcendra-gt
373 %defattr(644,root,root,755)
374 %{_datadir}/games/torcs/cars/kc-2000gt
375 %{_datadir}/games/torcs/cars/kc-5300gt
376 %{_datadir}/games/torcs/cars/kc-corvette-ttop
377 %{_datadir}/games/torcs/cars/kc-daytona
378 %{_datadir}/games/torcs/cars/kc-db4z
379 %{_datadir}/games/torcs/cars/kc-dbs
380 %{_datadir}/games/torcs/cars/kc-dino
381 %{_datadir}/games/torcs/cars/kc-ghibli
382 %{_datadir}/games/torcs/cars/kc-grifo
383
384 %files data-cars-kcendra-roadsters
385 %defattr(644,root,root,755)
386 %{_datadir}/games/torcs/cars/kc-bigh
387
388 %files data-cars-kcendra-sport
389 %defattr(644,root,root,755)
390 %{_datadir}/games/torcs/cars/kc-a110
391 %{_datadir}/games/torcs/cars/kc-alfatz2
392 %{_datadir}/games/torcs/cars/kc-coda
393 %{_datadir}/games/torcs/cars/kc-conrero
394 %{_datadir}/games/torcs/cars/kc-gt40
395 %{_datadir}/games/torcs/cars/kc-gto
396 %{_datadir}/games/torcs/cars/kc-p4
397
398 %files data-cars-VM
399 %defattr(644,root,root,755)
400 %{_datadir}/games/torcs/cars/vm-x2
401 %{_datadir}/games/torcs/cars/vm-x4
402
403 %files robots-base
404 %defattr(644,root,root,755)
405 %{_datadir}/games/torcs/drivers/cylos1
406 %dir %{_libdir}/torcs/drivers/cylos1
407 %attr(755,root,root) %{_libdir}/torcs/drivers/cylos1/*.so
408 %{_datadir}/games/torcs/drivers/damned
409 %dir %{_libdir}/torcs/drivers/damned
410 %attr(755,root,root) %{_libdir}/torcs/drivers/damned/*.so
411 %{_datadir}/games/torcs/drivers/inferno*
412 %dir %{_libdir}/torcs/drivers/inferno*
413 %attr(755,root,root) %{_libdir}/torcs/drivers/inferno*/*.so
414 %{_datadir}/games/torcs/drivers/lliaw
415 %dir %{_libdir}/torcs/drivers/lliaw
416 %attr(755,root,root) %{_libdir}/torcs/drivers/lliaw/*.so
417 %{_datadir}/games/torcs/drivers/tanhoj
418 %dir %{_libdir}/torcs/drivers/tanhoj
419 %attr(755,root,root) %{_libdir}/torcs/drivers/tanhoj/*.so
420 %{_datadir}/games/torcs/drivers/tita
421 %dir %{_libdir}/torcs/drivers/tita
422 %attr(755,root,root) %{_libdir}/torcs/drivers/tita/*.so
423
424 %files robots-berniw
425 %defattr(644,root,root,755)
426 %{_datadir}/games/torcs/drivers/berniw*
427 %dir %{_libdir}/torcs/drivers/berniw*
428 %attr(755,root,root) %{_libdir}/torcs/drivers/berniw*/*.so
429 %{_datadir}/games/torcs/drivers/sparkle
430 %dir %{_libdir}/torcs/drivers/sparkle
431 %attr(755,root,root) %{_libdir}/torcs/drivers/sparkle/*.so
432
433 %files robots-bt
434 %defattr(644,root,root,755)
435 %{_datadir}/games/torcs/drivers/bt
436 %dir %{_libdir}/torcs/drivers/bt
437 %attr(755,root,root) %{_libdir}/torcs/drivers/bt/*.so
438
439 %files robots-olethros
440 %defattr(644,root,root,755)
441 %{_datadir}/games/torcs/drivers/olethros
442 %dir %{_libdir}/torcs/drivers/olethros
443 %attr(755,root,root) %{_libdir}/torcs/drivers/olethros/*.so
This page took 0.104525 seconds and 3 git commands to generate.