/[packages]/cauldron/torcs/current/SPECS/torcs.spec
ViewVC logotype

Contents of /cauldron/torcs/current/SPECS/torcs.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 211022 - (show annotations) (download)
Sun Feb 19 22:03:07 2012 UTC (12 years, 2 months ago) by zezinho
File size: 3873 byte(s)
new version
1 %define Werror_cflags %nil
2 %define oname TORCS
3 %define libname %mklibname %{name}
4
5 Name: torcs
6 Version: 1.3.3
7 Release: %mkrel 1
8 Summary: The Open Racing Car Simulator
9 License: GPLv2
10 Group: Games/Arcade
11 URL: http://torcs.sourceforge.net/
12 Source0: http://sourceforge.net/projects/%{name}/files/%{name}-src/%{version}/%{oname}-%{version}-src.tgz
13 Source1: http://sourceforge.net/projects/%{name}/files/%{name}-src/%{version}/%{oname}-%{version}-src-robots-base.tgz
14 Patch0: TORCS-1.3.2-linkorder.patch
15 BuildRequires: imagemagick
16 BuildRequires: freeglut-devel
17 BuildRequires: mesagl-devel
18 BuildRequires: png-devel
19 BuildRequires: freealut-devel
20 BuildRequires: libxrandr-devel
21 BuildRequires: openal-devel
22 BuildRequires: plib-devel
23 BuildRequires: libice-devel
24 BuildRequires: libsm-devel
25 BuildRequires: libxt-devel
26 BuildRequires: libxi-devel
27 BuildRequires: libxmu-devel
28 BuildRequires: libvorbis-devel
29 Provides: %{oname}
30 Requires: %{name}-data = %{version}
31 Requires: %{name}-data-cars-extra
32 Requires: %{name}-robots-base
33 Suggests: %{name}-data-nonfree
34 Suggests: %{name}-robots-berniw
35 Suggests: %{name}-robots-bt
36 Suggests: %{name}-robots-olethros
37 Provides: %{libname}
38 Obsoletes: %{libname}
39
40 %description
41 A 3D racing car simulator using OpenGL.
42
43 %package robots-base
44 Group: Games/Arcade
45 Requires: %{name} >= %{version}
46 Summary: Basic robots for %{name}
47 Provides: %{name}-robots
48 BuildArch: noarch
49
50 %description robots-base
51 Base robots for %{oname}
52
53 %package robots-berniw
54 Group: Games/Arcade
55 Requires: %{name} >= %{version}
56 Summary: Berniw robots for %{name}
57 BuildArch: noarch
58 Provides: %{name}-robots
59
60 %description robots-berniw
61 Berniw robots for %{oname}
62 by Bernhard Wymann <berniw@bluewin.ch>
63
64 %package robots-bt
65 Group: Games/Arcade
66 Requires: %{name} >= %{version}
67 Summary: Bt robots for %{name}
68 Buildarch: noarch
69 Provides: %{name}-robots
70
71 %description robots-bt
72 bt robots for %{oname}
73
74 %package robots-olethros
75 Group: Games/Arcade
76 Requires: %{name} >= %{version}
77 Summary: Olethros robots for %{name}
78 Buildarch: noarch
79 Provides: %{name}-robots
80
81 %description robots-olethros
82 bt robots for %{oname}
83 by Christos Dimitrakakis <dimitrak@idiap.ch>
84
85
86 %prep
87 %setup -q -b1
88 %patch0 -p0
89
90 %build
91 ./configure --bindir=%{_gamesbindir} \
92 --prefix=%{_prefix} \
93 --libdir=%{_libdir} \
94 --x-libraries=%{_xorglibdir}
95 make
96
97 %install
98 %makeinstall_std
99
100 mkdir %buildroot%{_datadir}/applications
101 cat > %buildroot%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
102 [Desktop Entry]
103 Name=%{oname}
104 Comment=%{Summary}
105 Exec=%{_gamesbindir}/%{name}
106 Icon=%{name}
107 Terminal=false
108 Type=Application
109 StartupNotify=false
110 Categories=Game;ArcadeGame;
111 EOF
112
113 %{__install} -d %buildroot{%{_miconsdir},%{_liconsdir}}
114 convert -size 16x16 icon.png %buildroot%{_miconsdir}/%{name}.png
115 %{__install} icon.png %buildroot%{_iconsdir}/%{name}.png
116 convert -size 48x48 icon.png %buildroot%{_liconsdir}/%{name}.png
117
118 %clean
119 rm -rf %buildroot
120
121 %files
122 %defattr(-,root,root,755)
123 # %doc INSTALL.linux README.linux
124 %{_gamesbindir}/*
125 %dir %{_gamesdatadir}/%{name}
126 %{_gamesdatadir}/%{name}/config
127 %{_gamesdatadir}/%{name}/telemetry
128 %{_datadir}/applications/%{_real_vendor}-%{name}.desktop
129 %dir %{_gamesdatadir}/%{name}/drivers
130 %{_iconsdir}/%{name}.png
131 %{_liconsdir}/%{name}.png
132 %{_miconsdir}/%{name}.png
133 %{_libdir}/%{name}
134
135 %files robots-base
136 %defattr(-,root,root,755)
137 %{_gamesdatadir}/%{name}/drivers/damned
138 %{_gamesdatadir}/%{name}/drivers/human
139 %{_gamesdatadir}/%{name}/drivers/inferno
140 %{_gamesdatadir}/%{name}/drivers/inferno2
141 %{_gamesdatadir}/%{name}/drivers/lliaw
142 %{_gamesdatadir}/%{name}/drivers/sparkle
143 %{_gamesdatadir}/%{name}/drivers/tita
144
145 %files robots-berniw
146 %defattr(-,root,root,755)
147 %{_gamesdatadir}/%{name}/drivers/berniw*
148
149 %files robots-bt
150 %defattr(-,root,root,755)
151 %{_gamesdatadir}/%{name}/drivers/bt
152
153 %files robots-olethros
154 %defattr(-,root,root,755)
155 %{_gamesdatadir}/%{name}/drivers/olethros
156
157

  ViewVC Help
Powered by ViewVC 1.1.30