1 |
rtp |
18133 |
%define bootstrap 0 |
2 |
|
|
%{?_without_bootstrap: %global bootstrap 0} |
3 |
|
|
%{?_with_bootstrap: %global bootstrap 1} |
4 |
|
|
|
5 |
pterjan |
5340 |
# (cg) Cheater... |
6 |
|
|
%define Werror_cflags %nil |
7 |
|
|
|
8 |
|
|
# (aco) Needed for the dri drivers |
9 |
|
|
%define _disable_ld_no_undefined 1 |
10 |
|
|
|
11 |
tv |
88231 |
# freeglut should replace mesaglut soon |
12 |
mikala |
112356 |
%define with_mesaglut 0 |
13 |
tv |
88231 |
|
14 |
mikala |
112356 |
%define git 20110620 |
15 |
|
|
%define with_hardware 1 |
16 |
|
|
|
17 |
pterjan |
5340 |
%define relc 0 |
18 |
|
|
%define name mesa |
19 |
mikala |
112356 |
%define version 7.11 |
20 |
|
|
%define rel 0 |
21 |
pterjan |
5340 |
|
22 |
|
|
%define release %mkrel %{rel} |
23 |
|
|
%define src_type tar.bz2 |
24 |
|
|
%define vsuffix %{expand:} |
25 |
|
|
|
26 |
|
|
%if %{relc} |
27 |
|
|
%define release %mkrel 0.rc%{relc}.%{rel} |
28 |
|
|
%define vsuffix -rc%{relc} |
29 |
|
|
%define src_type tar.bz2 |
30 |
|
|
%endif |
31 |
|
|
|
32 |
|
|
%if %{git} |
33 |
|
|
%if %{relc} |
34 |
|
|
%define release %mkrel 0.rc%{relc}.2.git%{git}.%{rel} |
35 |
|
|
%else |
36 |
|
|
%define release %mkrel 0.git%{git}.%{rel} |
37 |
|
|
%endif |
38 |
|
|
%endif |
39 |
|
|
|
40 |
|
|
%define makedepend %{_bindir}/gccmakedep |
41 |
|
|
|
42 |
|
|
%define eglname mesaegl |
43 |
|
|
%define glname mesagl |
44 |
|
|
%define gluname mesaglu |
45 |
|
|
%define glutname mesaglut |
46 |
|
|
%define glwname mesaglw |
47 |
tv |
88442 |
%define glesv1name mesaglesv1 |
48 |
|
|
%define glesv2name mesaglesv2 |
49 |
tv |
88445 |
%define openvgname mesaopenvg |
50 |
mikala |
112356 |
%define glapiname glapi |
51 |
tv |
88442 |
|
52 |
pterjan |
5340 |
%define eglmajor 1 |
53 |
|
|
%define glmajor 1 |
54 |
|
|
%define glumajor 1 |
55 |
|
|
%define glutmajor 3 |
56 |
|
|
%define glwmajor 1 |
57 |
tv |
88442 |
%define glesv1major 1 |
58 |
|
|
%define glesv2major 2 |
59 |
tv |
88445 |
%define openvgmajor 1 |
60 |
mikala |
112356 |
%define glapimajor 0 |
61 |
tv |
88442 |
|
62 |
pterjan |
5340 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
63 |
|
|
%define libglname %mklibname %{glname} %{glmajor} |
64 |
|
|
%define libgluname %mklibname %{gluname} %{glumajor} |
65 |
|
|
%define libglutname %mklibname %{glutname} %{glutmajor} |
66 |
|
|
%define libglwname %mklibname %{glwname} %{glwmajor} |
67 |
tv |
88442 |
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
68 |
|
|
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
69 |
tv |
88445 |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
70 |
mikala |
112356 |
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
71 |
pterjan |
5340 |
|
72 |
|
|
%define dridrivers %mklibname dri-drivers |
73 |
|
|
|
74 |
|
|
# Architecture-independent Virtual provides: |
75 |
|
|
%define libeglname_virt lib%{eglname} |
76 |
|
|
%define libglname_virt lib%{glname} |
77 |
|
|
%define libgluname_virt lib%{gluname} |
78 |
|
|
%define libglutname_virt lib%{glutname} |
79 |
|
|
%define libglwname_virt lib%{glwname} |
80 |
tv |
88442 |
%define libglesv1name_virt lib%{glesv1name} |
81 |
|
|
%define libglesv2name_virt lib%{glesv2name} |
82 |
tv |
88445 |
%define libopenvgname_virt lib%{openvgname} |
83 |
mikala |
112356 |
%define libglapiname_virt lib%{glapiname} |
84 |
pterjan |
5340 |
|
85 |
|
|
%define oldlibglname %mklibname MesaGL 1 |
86 |
|
|
%define oldlibgluname %mklibname MesaGLU 1 |
87 |
|
|
%define oldlibglutname %mklibname Mesaglut 3 |
88 |
|
|
|
89 |
|
|
%define mesasrcdir %{_prefix}/src/Mesa/ |
90 |
|
|
%define driver_dir %{_libdir}/dri |
91 |
|
|
|
92 |
tv |
88451 |
%define enable_egl 1 |
93 |
pterjan |
5340 |
|
94 |
|
|
#FIXME: (for 386/485) unset SSE, MMX and 3dnow flags |
95 |
|
|
#FIXME: (for >=i586) disable sse |
96 |
|
|
# SSE seems to have problem on some apps (gtulpas) for probing. |
97 |
|
|
%define dri_drivers_i386 "i810,i915,i965,mga,mach64,nouveau,r128,r200,r300,r600,radeon,savage,sis,unichrome,tdfx,swrast" |
98 |
|
|
%define dri_drivers_x86_64 %{dri_drivers_i386} |
99 |
|
|
%define dri_drivers_ppc "mach64,r128,r200,r300,radeon,tdfx,swrast" |
100 |
|
|
%define dri_drivers_ppc64 "" |
101 |
|
|
%define dri_drivers_ia64 "i810,i915,i965,mga,r128,r200,radeon,swrast" |
102 |
|
|
%define dri_drivers_alpha "mga,r128,r200,radeon,swrast" |
103 |
|
|
%define dri_drivers_sparc "ffb,mach64,mga,radeon,savage,swrast" |
104 |
rtp |
18133 |
%define dri_drivers_mipsel "mach64,mga,r128,r200,radeon,savage,tdfx,swrast" |
105 |
|
|
%define dri_drivers_arm "swrast" |
106 |
pterjan |
5340 |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
107 |
|
|
|
108 |
|
|
Name: %{name} |
109 |
|
|
Version: %{version} |
110 |
|
|
Release: %{release} |
111 |
|
|
Summary: OpenGL 2.1 compatible 3D graphics library |
112 |
|
|
Group: System/Libraries |
113 |
|
|
|
114 |
|
|
BuildRequires: libxfixes-devel >= 4.0.3 |
115 |
|
|
BuildRequires: libxt-devel >= 1.0.5 |
116 |
|
|
BuildRequires: libxmu-devel >= 1.0.3 |
117 |
|
|
BuildRequires: libx11-devel >= 1.3.3 |
118 |
|
|
BuildRequires: libxdamage-devel >= 1.1.1 |
119 |
|
|
BuildRequires: libexpat-devel >= 2.0.1 |
120 |
|
|
BuildRequires: gccmakedep |
121 |
|
|
BuildRequires: x11-proto-devel >= 7.3 |
122 |
|
|
BuildRequires: libdrm-devel >= 2.4.21 |
123 |
|
|
|
124 |
|
|
BuildRequires: libxext-devel >= 1.1.1 |
125 |
|
|
BuildRequires: libxxf86vm-devel >= 1.1.0 |
126 |
|
|
BuildRequires: libxi-devel >= 1.3 |
127 |
tv |
88443 |
BuildRequires: talloc-devel |
128 |
|
|
BuildRequires: libxml2-python |
129 |
tmb |
35532 |
BuildRequires: makedepend |
130 |
dmorgan |
106004 |
BuildRequires: bison flex |
131 |
mikala |
112356 |
BuildRequires: llvm |
132 |
pterjan |
5340 |
|
133 |
|
|
URL: http://www.mesa3d.org |
134 |
|
|
%if %{git} |
135 |
|
|
# (cg) Current commit ref: origin/mesa_7_5_branch |
136 |
|
|
Source0: %{name}-%{git}.tar.bz2 |
137 |
|
|
%else |
138 |
|
|
Source0: ftp://ftp.freedesktop.org/pub/mesa/%version/MesaLib-%{version}%{vsuffix}.%{src_type} |
139 |
|
|
Source2: ftp://ftp.freedesktop.org/pub/mesa/%version/MesaGLUT-%{version}%{vsuffix}.%{src_type} |
140 |
|
|
%endif |
141 |
|
|
Source3: make-git-snapshot.sh |
142 |
|
|
Source5: mesa-driver-install |
143 |
|
|
|
144 |
|
|
|
145 |
|
|
# Instructions to setup your repository clone |
146 |
|
|
# git://git.freedesktop.org/git/mesa/mesa |
147 |
|
|
# git checkout mesa_7_5_branch |
148 |
|
|
# git branch mdv-cherry-picks |
149 |
|
|
# git am ../02??-*.patch |
150 |
|
|
# git branch mdv-redhat |
151 |
|
|
# git am ../03??-*.patch |
152 |
|
|
# git branch mdv-patches |
153 |
|
|
# git am ../09??-*.patch |
154 |
|
|
|
155 |
|
|
# In order to update to the branch via patches, issue this command: |
156 |
|
|
# git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/' |
157 |
|
|
|
158 |
|
|
# Cherry picks |
159 |
|
|
# git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks |
160 |
|
|
Patch201: 0201-revert-fix-glxinitializevisualconfigfromtags-handling.patch |
161 |
blino |
78230 |
Patch202: 0202-fix-includes-for-latest-libdrm.patch |
162 |
pterjan |
5340 |
|
163 |
tv |
88247 |
# Patches "liberated" from Fedora: |
164 |
pterjan |
5340 |
# http://cvs.fedoraproject.org/viewvc/rpms/mesa/devel/ |
165 |
|
|
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
166 |
|
|
Patch300: 0300-RH-mesa-7.1-nukeglthread-debug-v1.1.patch |
167 |
|
|
Patch301: 0301-RH-mesa-7.1-link-shared-v1.7.patch |
168 |
|
|
|
169 |
|
|
# Mandriva patches |
170 |
|
|
# git format-patch --start-number 900 mdv-redhat..mdv-patches |
171 |
|
|
Patch902: 0902-remove-unfinished-GLX_ARB_render_texture.patch |
172 |
|
|
Patch903: 0903-Fix-NULL-pointer-dereference-in-viaXMesaWindowMoved.patch |
173 |
|
|
Patch904: Mesa-7.9-salome.patch |
174 |
|
|
|
175 |
|
|
Patch2004: mesa_652_mips.patch |
176 |
|
|
|
177 |
tv |
88440 |
#------------------------------------------------------------------------------ |
178 |
|
|
|
179 |
|
|
# package mesa |
180 |
pterjan |
5340 |
License: MIT |
181 |
|
|
Requires: %{libglname} = %{version}-%{release} |
182 |
|
|
Provides: hackMesa = %{version} |
183 |
|
|
Obsoletes: hackMesa <= %{version} |
184 |
|
|
Provides: Mesa = %{version} |
185 |
|
|
Obsoletes: Mesa < %{version} |
186 |
|
|
|
187 |
|
|
%package -n %{libglname} |
188 |
|
|
Summary: Files for Mesa (GL and GLX libs) |
189 |
|
|
Group: System/Libraries |
190 |
tv |
88247 |
Obsoletes: %{oldlibglname} < 6.4 |
191 |
pterjan |
5340 |
Provides: %{oldlibglname} = %{version}-%{release} |
192 |
|
|
Provides: %{libglname_virt} = %{version}-%{release} |
193 |
|
|
Requires: %{dridrivers} >= %{version}-%{release} |
194 |
|
|
|
195 |
|
|
# (anssi) Forces the upgrade of x11-server-common to happen before |
196 |
|
|
# alternatives removal, which allows x11-server-common to grab the symlink. |
197 |
|
|
Conflicts: x11-server-common < 1.3.0.0-17 |
198 |
|
|
|
199 |
|
|
%package -n %{dridrivers} |
200 |
|
|
Summary: Mesa DRI drivers |
201 |
|
|
Group: System/Libraries |
202 |
|
|
Conflicts: %{_lib}MesaGL1 < 7.7-5 |
203 |
|
|
|
204 |
|
|
%package -n %{dridrivers}-experimental |
205 |
|
|
Summary: Mesa DRI - unstable experimental drivers |
206 |
|
|
Group: System/Libraries |
207 |
|
|
# for dri driver directory |
208 |
|
|
Requires: %{dridrivers} |
209 |
|
|
|
210 |
|
|
%package -n %{libglname}-devel |
211 |
|
|
Summary: Development files for Mesa (OpenGL compatible 3D lib) |
212 |
|
|
Group: Development/C |
213 |
tv |
88237 |
Requires: %{libglname} = %{version}-%{release} |
214 |
pterjan |
5340 |
Provides: lib%{glname}-devel = %{version}-%{release} |
215 |
|
|
Provides: %{glname}-devel = %{version}-%{release} |
216 |
|
|
Provides: GL-devel |
217 |
|
|
Obsoletes: %{oldlibglname}-devel < 6.4 |
218 |
|
|
Provides: %{oldlibglname}-devel = %{version}-%{release} |
219 |
|
|
Provides: libMesaGL-devel = %{version}-%{release} |
220 |
|
|
Provides: MesaGL-devel = %{version}-%{release} |
221 |
tv |
88438 |
Provides: libgl-devel |
222 |
pterjan |
5340 |
|
223 |
|
|
%package -n %{libgluname} |
224 |
|
|
Summary: Files for Mesa (GLU libs) |
225 |
|
|
Group: System/Libraries |
226 |
|
|
Obsoletes: %{oldlibgluname} < 6.4 |
227 |
|
|
Provides: %{oldlibgluname} = %{version}-%{release} |
228 |
|
|
Provides: %{libgluname_virt} = %{version}-%{release} |
229 |
|
|
|
230 |
|
|
%package -n %{libgluname}-devel |
231 |
|
|
Summary: Development files for GLU libs |
232 |
|
|
Group: Development/C |
233 |
|
|
Requires: %{libgluname} = %{version}-%{release} |
234 |
|
|
Provides: lib%{gluname}-devel = %{version}-%{release} |
235 |
|
|
Provides: %{gluname}-devel = %{version}-%{release} |
236 |
|
|
Obsoletes: %{oldlibgluname}-devel < 6.4 |
237 |
|
|
Provides: %{oldlibgluname}-devel = %{version}-%{release} |
238 |
|
|
Provides: libMesaGLU-devel = %{version}-%{release} |
239 |
tv |
88247 |
Provides: MesaGLU-devel = %{version}-%{release} |
240 |
tv |
88438 |
Provides: libglu-devel |
241 |
tv |
88436 |
# pkgconfig files moved from libgl-devel: |
242 |
|
|
Conflicts: %{libglname}-devel < 7.10.2-4 |
243 |
pterjan |
5340 |
|
244 |
tv |
88231 |
%if %{with_mesaglut} |
245 |
pterjan |
5340 |
%package -n %{libglutname} |
246 |
|
|
Summary: Files for Mesa (glut libs) |
247 |
|
|
Group: System/Libraries |
248 |
|
|
Requires: %{libgluname} = %{version}-%{release} |
249 |
|
|
Provides: Mesa-common = %{version}-%{release} hackMesa-common = %{version} |
250 |
|
|
Obsoletes: Mesa-common <= %{version} hackMesa-common <= %{version} |
251 |
|
|
Obsoletes: %{oldlibglutname} < 6.4 |
252 |
|
|
Provides: %{oldlibglutname} = %{version}-%{release} |
253 |
|
|
Provides: %{libglutname_virt} = %{version}-%{release} |
254 |
|
|
|
255 |
|
|
%package -n %{libglutname}-devel |
256 |
|
|
Summary: Development files for glut libs |
257 |
|
|
Group: Development/C |
258 |
|
|
Requires: %{libglutname} = %{version}-%{release} %{libgluname}-devel = %{version}-%{release} |
259 |
tv |
88238 |
# (gc) /usr/lib/pkgconfig/glut.pc depends on /usr/lib/pkgconfig/{x11,xmu,xi}.pc (Requires.private) and pkg-config --list-all |
260 |
|
|
# goes wild without these deps |
261 |
|
|
Requires: libx11-devel libxmu-devel libxi-devel |
262 |
tv |
88247 |
Provides: lib%{glutname}-devel = %{version}-%{release} |
263 |
|
|
Provides: %{glutname}-devel = %{version}-%{release} |
264 |
pterjan |
5340 |
Obsoletes: %{oldlibglutname}-devel < 6.4 |
265 |
|
|
Provides: %{oldlibglutname}-devel = %{version}-%{release} |
266 |
|
|
Provides: libMesaGLUT-devel = %{version}-%{release} |
267 |
|
|
Provides: MesaGLUT-devel = %{version}-%{release} |
268 |
tv |
88438 |
Provides: libglut-devel |
269 |
tv |
88436 |
# pkgconfig files moved from libgl-devel: |
270 |
|
|
Conflicts: %{libglname}-devel < 7.10.2-4 |
271 |
tv |
88231 |
%endif |
272 |
pterjan |
5340 |
|
273 |
|
|
%package -n %{libglwname} |
274 |
|
|
Summary: Files for Mesa (glw libs) |
275 |
|
|
Group: System/Libraries |
276 |
|
|
Provides: Mesa-common = %{version}-%{release} hackMesa-common = %{version} |
277 |
|
|
Obsoletes: Mesa-common <= %{version} hackMesa-common <= %{version} |
278 |
|
|
Provides: %{libglwname_virt} = %{version}-%{release} |
279 |
|
|
|
280 |
|
|
%package -n %{libglwname}-devel |
281 |
|
|
Summary: Development files for glw libs |
282 |
|
|
Group: Development/C |
283 |
|
|
Requires: %{libglwname} = %{version}-%{release} |
284 |
tv |
88247 |
Provides: lib%{glwname}-devel = %{version}-%{release} |
285 |
|
|
Provides: %{glwname}-devel = %{version}-%{release} |
286 |
tv |
88438 |
Provides: libglw-devel |
287 |
tv |
88436 |
# pkgconfig files moved from libgl-devel: |
288 |
|
|
Conflicts: %{libglname}-devel < 7.10.2-4 |
289 |
pterjan |
5340 |
|
290 |
tv |
88433 |
%if %{enable_egl} |
291 |
|
|
%package -n %{libeglname} |
292 |
|
|
Summary: Files for Mesa (EGL libs) |
293 |
|
|
Group: System/Libraries |
294 |
|
|
Provides: %{libeglname_virt} = %{version}-%{release} |
295 |
|
|
|
296 |
|
|
%package -n %{libeglname}-devel |
297 |
|
|
Summary: Development files for Mesa (EGL libs) |
298 |
|
|
Group: Development/C |
299 |
tv |
88439 |
Requires: %{libeglname} = %{version}-%{release} |
300 |
tv |
88433 |
Provides: EGL-devel |
301 |
tv |
88438 |
Provides: lib%{eglname}-devel |
302 |
|
|
Provides: %{eglname}-devel |
303 |
|
|
Provides: libegl-devel |
304 |
tv |
88433 |
%endif |
305 |
|
|
|
306 |
mikala |
112356 |
%package -n %{libglapiname} |
307 |
|
|
Summary: Files for mesa (glapi libs) |
308 |
|
|
Group: System/Libraries |
309 |
|
|
Provides: %{libglapiname_virt} = %{version}-%{release} |
310 |
tv |
88442 |
|
311 |
mikala |
112356 |
%package -n %{libglapiname}-devel |
312 |
|
|
Summary: Development files for glapi libs |
313 |
|
|
Group: Development/C |
314 |
|
|
Requires: %{libglapiname_virt} = %{version}-%{release} |
315 |
|
|
Provides: lib%{glapiname}-devel |
316 |
|
|
Provides: %{libglapiname}-devel |
317 |
|
|
|
318 |
tv |
88442 |
%package -n %{libglesv1name} |
319 |
|
|
Summary: Files for Mesa (glesv1 libs) |
320 |
|
|
Group: System/Libraries |
321 |
|
|
Provides: %{libglesv1name_virt} = %{version}-%{release} |
322 |
|
|
|
323 |
|
|
%package -n %{libglesv1name}-devel |
324 |
|
|
Summary: Development files for glesv1 libs |
325 |
|
|
Group: Development/C |
326 |
|
|
Requires: %{libglesv1name} = %{version}-%{release} |
327 |
|
|
Provides: lib%{glesv1name}-devel |
328 |
|
|
Provides: %{glesv1name}-devel |
329 |
|
|
Provides: libglesv1-devel |
330 |
|
|
|
331 |
|
|
%package -n %{libglesv2name} |
332 |
|
|
Summary: Files for Mesa (glesv2 libs) |
333 |
|
|
Group: System/Libraries |
334 |
|
|
Provides: %{libglesv2name_virt} = %{version}-%{release} |
335 |
|
|
|
336 |
|
|
%package -n %{libglesv2name}-devel |
337 |
|
|
Summary: Development files for glesv2 libs |
338 |
|
|
Group: Development/C |
339 |
|
|
Requires: %{libglesv2name} = %{version}-%{release} |
340 |
|
|
Provides: lib%{glesv2name}-devel |
341 |
|
|
Provides: %{glesv2name}-devel |
342 |
|
|
Provides: libglesv2-devel |
343 |
|
|
|
344 |
tv |
88445 |
%package -n %{libopenvgname} |
345 |
|
|
Summary: Files for MESA (OpenVG libs) |
346 |
|
|
Group: System/Libraries |
347 |
|
|
Provides: %{libopenvgname_virt} = %{version}-%{release} |
348 |
|
|
|
349 |
|
|
%package -n %{libopenvgname}-devel |
350 |
|
|
Summary: Development files vor OpenVG libs |
351 |
|
|
Group: Development/C |
352 |
|
|
Requires: %{libopenvgname} = %{version}-%{release} |
353 |
|
|
Provides: lib%{openvgname}-devel |
354 |
|
|
Provides: %{openvgname}-devel |
355 |
|
|
Provides: libopenvg-devel |
356 |
|
|
|
357 |
pterjan |
5340 |
%package common-devel |
358 |
|
|
Summary: Meta package for mesa devel |
359 |
|
|
Group: Development/C |
360 |
tv |
88247 |
Provides: Mesa-common-devel = %{version}-%{release} |
361 |
pterjan |
5340 |
Provides: hackMesa-common-devel = %{version} |
362 |
tv |
88247 |
Obsoletes: Mesa-common-devel < %{version} |
363 |
pterjan |
5340 |
Obsoletes: hackMesa-common-devel < %{version} |
364 |
|
|
Requires: %{libglname}-devel = %{version} |
365 |
|
|
Requires: %{libglwname}-devel = %{version} |
366 |
|
|
Requires: %{libgluname}-devel = %{version} |
367 |
tv |
88231 |
%if %{with_mesaglut} |
368 |
pterjan |
5340 |
Requires: %{libglutname}-devel = %{version} |
369 |
tv |
88231 |
%else |
370 |
|
|
Requires: libglut-devel |
371 |
|
|
%endif |
372 |
tv |
88442 |
Requires: %{libeglname}-devel = %{version} |
373 |
|
|
Requires: %{libglesv1name}-devel = %{version} |
374 |
|
|
Requires: %{libglesv2name}-devel = %{version} |
375 |
pterjan |
5340 |
|
376 |
tv |
88440 |
#------------------------------------------------------------------------------ |
377 |
pterjan |
5340 |
|
378 |
|
|
%description |
379 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
380 |
|
|
|
381 |
|
|
%description common-devel |
382 |
|
|
Mesa common metapackage devel |
383 |
|
|
|
384 |
|
|
%if %{enable_egl} |
385 |
|
|
%description -n %{libeglname} |
386 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
387 |
|
|
EGL parts. |
388 |
|
|
|
389 |
|
|
%description -n %{libeglname}-devel |
390 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
391 |
|
|
EGL development parts. |
392 |
|
|
%endif |
393 |
|
|
|
394 |
|
|
%description -n %{libglname} |
395 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
396 |
|
|
GL and GLX parts. |
397 |
|
|
|
398 |
|
|
%description -n %{dridrivers} |
399 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
400 |
|
|
DRI drivers. |
401 |
|
|
|
402 |
|
|
%description -n %{dridrivers}-experimental |
403 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
404 |
|
|
Experimental unstable DRI drivers. |
405 |
|
|
|
406 |
|
|
This package contains experimental DRI drivers for NVIDIA cards, for |
407 |
|
|
OpenGL acceleration with nouveau driver. These drivers are not stable |
408 |
|
|
and may crash your system. Please do not report bugs encountered with |
409 |
|
|
these drivers. |
410 |
|
|
|
411 |
|
|
%description -n %{libglname}-devel |
412 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
413 |
|
|
|
414 |
|
|
This package contains the headers needed to compile Mesa programs. |
415 |
|
|
|
416 |
|
|
%description -n %{libgluname} |
417 |
|
|
GLU is the OpenGL Utility Library. |
418 |
|
|
It provides a number of functions upon the base OpenGL library to provide |
419 |
|
|
higher-level drawing routines from the more primitive routines provided by |
420 |
|
|
OpenGL. |
421 |
|
|
|
422 |
|
|
%description -n %{libgluname}-devel |
423 |
|
|
This package contains the headers needed to compile programs with GLU. |
424 |
|
|
|
425 |
tv |
88231 |
%if %{with_mesaglut} |
426 |
pterjan |
5340 |
%description -n %{libglutname} |
427 |
|
|
GLUT (OpenGL Utility Toolkit) is a addon library for OpenGL programs. It |
428 |
|
|
provides them utilities to define and control windows, input from the keyboard |
429 |
|
|
and the mouse, drawing some geometric primitives (cubes, spheres, ...). |
430 |
|
|
GLUT can even create pop-up windows. |
431 |
|
|
|
432 |
|
|
%description -n %{libglutname}-devel |
433 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
434 |
|
|
glut parts. |
435 |
|
|
|
436 |
|
|
This package contains the headers needed to compile Mesa programs. |
437 |
tv |
88432 |
%endif |
438 |
pterjan |
5340 |
|
439 |
|
|
%description -n %{libglwname} |
440 |
|
|
GLw adds Motif bindings to the OpenGL "canvas" (Xt/Motif/OpenGL widget code). |
441 |
|
|
|
442 |
|
|
%description -n %{libglwname}-devel |
443 |
|
|
Mesa is an OpenGL 2.1 compatible 3D graphics library. |
444 |
|
|
GLw parts. |
445 |
|
|
|
446 |
|
|
This package contains the headers needed to compile Mesa programs. |
447 |
|
|
|
448 |
tv |
88442 |
%description -n %{libglesv1name} |
449 |
|
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
450 |
|
|
well-defined subset profiles of OpenGL. |
451 |
|
|
|
452 |
|
|
This package provides the OpenGL ES library version 1. |
453 |
|
|
|
454 |
mikala |
112356 |
%description -n %{libglapiname} |
455 |
|
|
This packages provides the glapi shared library used by gallium. |
456 |
|
|
|
457 |
|
|
%description -n %{libglapiname}-devel |
458 |
|
|
This package contains the headers needed to compile programes against glapi shared library. |
459 |
|
|
|
460 |
tv |
88442 |
%description -n %{libglesv1name}-devel |
461 |
|
|
This package contains the headers needed to compile OpenGL ES 1 programs. |
462 |
|
|
|
463 |
|
|
%description -n %{libglesv2name} |
464 |
|
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
465 |
|
|
well-defined subset profiles of OpenGL. |
466 |
|
|
|
467 |
|
|
This package provides the OpenGL ES library version 2. |
468 |
|
|
|
469 |
|
|
%description -n %{libglesv2name}-devel |
470 |
|
|
This package contains the headers needed to compile OpenGL ES 2 programs. |
471 |
|
|
|
472 |
tv |
88445 |
%description -n %{libopenvgname} |
473 |
|
|
OpenVG is a royalty-free, cross-platform API that provides a low-level hardware |
474 |
|
|
acceleration interface for vector graphics libraries such as Flash and SVG. |
475 |
|
|
|
476 |
|
|
%description -n %{libopenvgname}-devel |
477 |
|
|
Development files for OpenVG library. |
478 |
|
|
|
479 |
tv |
88440 |
#------------------------------------------------------------------------------ |
480 |
|
|
|
481 |
pterjan |
5340 |
%prep |
482 |
|
|
%if %{git} |
483 |
|
|
%setup -q -n mesa-%{git} |
484 |
|
|
%else |
485 |
|
|
%setup -q -n Mesa-%{version}%{vsuffix} -b2 |
486 |
|
|
%endif |
487 |
|
|
|
488 |
|
|
%patch201 -p1 |
489 |
mikala |
112356 |
#%patch202 -p1 |
490 |
pterjan |
5340 |
|
491 |
mikala |
112356 |
#%patch300 -p1 |
492 |
pterjan |
5340 |
## (Anssi 03/2010) FIXME: Currently results in either missing NEEDED tag or |
493 |
|
|
## NEEDED tag with '../../../../../lib/libdricore.so', while NEEDED tag of libdricore.so |
494 |
|
|
## is wanted. |
495 |
|
|
#%patch301 -p1 |
496 |
|
|
|
497 |
mikala |
112356 |
#%patch902 -p1 |
498 |
|
|
#%patch903 -p1 |
499 |
|
|
#%patch904 -p1 |
500 |
pterjan |
5340 |
|
501 |
mikala |
112356 |
#%patch2004 -p1 |
502 |
pterjan |
5340 |
|
503 |
|
|
chmod +x %{SOURCE5} |
504 |
|
|
|
505 |
|
|
# for dri-drivers-experimental |
506 |
|
|
cat > README.install.urpmi <<EOF |
507 |
|
|
This package contains experimental DRI drivers for NVIDIA cards, for |
508 |
|
|
OpenGL acceleration with nouveau driver. These drivers are not stable |
509 |
|
|
and may crash your system. Please do not report bugs encountered with |
510 |
|
|
these drivers. |
511 |
|
|
EOF |
512 |
|
|
|
513 |
|
|
%build |
514 |
|
|
#%if %{git} |
515 |
|
|
#./autogen.sh -v |
516 |
|
|
#%endif |
517 |
|
|
|
518 |
|
|
# Required by patch200: |
519 |
|
|
autoreconf -vfi |
520 |
|
|
%configure2_5x --with-driver=dri \ |
521 |
|
|
--with-dri-driverdir=%{driver_dir} \ |
522 |
|
|
--with-dri-drivers="%{dri_drivers}" \ |
523 |
|
|
--with-state-trackers=dri \ |
524 |
|
|
--enable-gallium-nouveau \ |
525 |
|
|
%if %{enable_egl} |
526 |
|
|
--enable-egl \ |
527 |
|
|
%else |
528 |
|
|
--disable-egl \ |
529 |
|
|
%endif |
530 |
tv |
88442 |
--enable-gles1 \ |
531 |
|
|
--enable-gles2 \ |
532 |
tv |
88445 |
--enable-openvg \ |
533 |
mikala |
112356 |
--enable-gallium-egl \ |
534 |
|
|
%if %{with_hardware} |
535 |
|
|
--with-gallium-drivers=r300,r600,nouveau,swrast \ |
536 |
|
|
--enable-gallium-llvm \ |
537 |
|
|
%else |
538 |
|
|
--disable-gallium-llvm \ |
539 |
|
|
--with-gallium-drivers=swrast \ |
540 |
|
|
%endif |
541 |
tv |
88231 |
%if %{with_mesaglut} |
542 |
|
|
--enable-glut |
543 |
|
|
%else |
544 |
|
|
--disable-glut |
545 |
|
|
%endif |
546 |
pterjan |
5340 |
|
547 |
|
|
# (cg) Parallel build breaks the dricore shared stuff. |
548 |
|
|
make -j 1 |
549 |
|
|
|
550 |
|
|
%install |
551 |
|
|
rm -rf %{buildroot} |
552 |
tv |
88249 |
%makeinstall_std |
553 |
pterjan |
5340 |
|
554 |
|
|
# (blino) hardlink libGL files in %{_libdir}/mesa |
555 |
|
|
# to prevent proprietary driver installers from removing them |
556 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa |
557 |
|
|
pushd $RPM_BUILD_ROOT%{_libdir}/mesa |
558 |
|
|
for l in ../libGL.so.*; do cp -a $l .; done |
559 |
|
|
popd |
560 |
|
|
|
561 |
|
|
%ifarch %{x86_64} |
562 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri |
563 |
|
|
%endif |
564 |
|
|
|
565 |
tv |
88231 |
%if !%{with_mesaglut} |
566 |
|
|
rm -f %{buildroot}/%{_includedir}/GL/glut.h |
567 |
|
|
rm -f %{buildroot}/%{_includedir}/GL/glutf90.h |
568 |
|
|
%endif |
569 |
|
|
|
570 |
pterjan |
5340 |
%clean |
571 |
|
|
rm -fr $RPM_BUILD_ROOT |
572 |
|
|
|
573 |
tv |
88440 |
#------------------------------------------------------------------------------ |
574 |
|
|
|
575 |
pterjan |
5340 |
%files |
576 |
|
|
%defattr(-,root,root) |
577 |
|
|
%doc docs/COPYING docs/README.* |
578 |
|
|
|
579 |
|
|
%files -n %{dridrivers} |
580 |
|
|
%defattr(-,root,root) |
581 |
|
|
%doc docs/COPYING |
582 |
|
|
%ifnarch ppc64 |
583 |
|
|
%dir %{_libdir}/dri |
584 |
|
|
#%{_libdir}/dri/libdricore.so |
585 |
|
|
%{_libdir}/dri/*_dri.so |
586 |
|
|
%exclude %{_libdir}/dri/nouveau_dri.so |
587 |
rtp |
18133 |
%ifnarch %arm %mips |
588 |
pterjan |
5340 |
%exclude %{_libdir}/dri/nouveau_vieux_dri.so |
589 |
|
|
%endif |
590 |
rtp |
18133 |
%endif |
591 |
pterjan |
5340 |
|
592 |
|
|
%files -n %{dridrivers}-experimental |
593 |
|
|
%defattr(-,root,root) |
594 |
|
|
%doc docs/COPYING |
595 |
|
|
%doc README.install.urpmi |
596 |
|
|
%{_libdir}/dri/nouveau_dri.so |
597 |
rtp |
18133 |
%ifnarch %arm %mips |
598 |
pterjan |
5340 |
%{_libdir}/dri/nouveau_vieux_dri.so |
599 |
rtp |
18133 |
%endif |
600 |
pterjan |
5340 |
|
601 |
tv |
88433 |
%files -n %{libglname} |
602 |
|
|
%defattr(-,root,root) |
603 |
|
|
%doc docs/COPYING |
604 |
|
|
%{_libdir}/libGL.so.* |
605 |
|
|
%dir %{_libdir}/mesa |
606 |
tv |
88434 |
%{_libdir}/mesa/libGL.so.%{glmajor}* |
607 |
tv |
88433 |
|
608 |
tv |
88437 |
%files -n %{libgluname} |
609 |
tv |
88433 |
%defattr(-,root,root) |
610 |
|
|
%doc docs/COPYING |
611 |
tv |
88434 |
%{_libdir}/libGLU.so.%{glumajor}* |
612 |
tv |
88433 |
|
613 |
|
|
%if %{with_mesaglut} |
614 |
|
|
%files -n %{libglutname} |
615 |
|
|
%defattr(-,root,root) |
616 |
|
|
%doc docs/COPYING |
617 |
tv |
88434 |
%{_libdir}/libglut.so.%{glutmajor}* |
618 |
tv |
88433 |
%endif |
619 |
|
|
|
620 |
|
|
%files -n %{libglwname} |
621 |
|
|
%defattr(-,root,root) |
622 |
|
|
%doc docs/COPYING |
623 |
tv |
88434 |
%{_libdir}/libGLw.so.%{glwmajor}* |
624 |
tv |
88433 |
|
625 |
|
|
%if %{enable_egl} |
626 |
|
|
%files -n %{libeglname} |
627 |
|
|
%defattr(-,root,root) |
628 |
tv |
88442 |
%doc docs/COPYING |
629 |
tv |
88434 |
%{_libdir}/libEGL.so.%{eglmajor}* |
630 |
tv |
88442 |
%dir %{_libdir}/egl |
631 |
mikala |
112356 |
%{_libdir}/egl/egl_gallium.so |
632 |
|
|
%{_libdir}/egl/pipe_nouveau.so |
633 |
|
|
%{_libdir}/egl/pipe_r300.so |
634 |
|
|
%{_libdir}/egl/pipe_r600.so |
635 |
|
|
%{_libdir}/egl/pipe_swrast.so |
636 |
|
|
%{_libdir}/egl/st_GL.so |
637 |
|
|
%{_libdir}/egl/st_OpenVG.so |
638 |
tv |
88441 |
%endif |
639 |
tv |
88433 |
|
640 |
mikala |
112356 |
%files -n %{libglapiname} |
641 |
|
|
%defattr(-,root,root) |
642 |
|
|
%{_libdir}/libglapi.so.%{glapimajor}* |
643 |
|
|
|
644 |
tv |
88442 |
%files -n %{libglesv1name} |
645 |
|
|
%defattr(-,root,root) |
646 |
|
|
%doc docs/COPYING |
647 |
|
|
%{_libdir}/libGLESv1_CM.so.%{glesv1major}* |
648 |
|
|
|
649 |
|
|
%files -n %{libglesv2name} |
650 |
|
|
%defattr(-,root,root) |
651 |
|
|
%doc docs/COPYING |
652 |
|
|
%{_libdir}/libGLESv2.so.%{glesv2major}* |
653 |
|
|
|
654 |
tv |
88445 |
%files -n %{libopenvgname} |
655 |
|
|
%defattr(-,root,root) |
656 |
|
|
%doc docs/COPYING |
657 |
|
|
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
658 |
|
|
|
659 |
|
|
|
660 |
pterjan |
5340 |
%files -n %{libglname}-devel |
661 |
|
|
%defattr(-,root,root) |
662 |
|
|
%doc docs/COPYING |
663 |
|
|
%{_includedir}/GL/gl.h |
664 |
|
|
%{_includedir}/GL/glext.h |
665 |
|
|
%{_includedir}/GL/gl_mangle.h |
666 |
|
|
%{_includedir}/GL/osmesa.h |
667 |
|
|
%{_includedir}/GL/wglext.h |
668 |
|
|
%{_includedir}/GL/glx.h |
669 |
|
|
%{_includedir}/GL/glxext.h |
670 |
|
|
%{_includedir}/GL/glx_mangle.h |
671 |
|
|
%{_libdir}/libGL.so |
672 |
tv |
88436 |
%{_libdir}/pkgconfig/gl.pc |
673 |
|
|
%{_libdir}/pkgconfig/dri.pc |
674 |
pterjan |
5340 |
|
675 |
|
|
#FIXME: check those headers |
676 |
|
|
%{_includedir}/GL/glfbdev.h |
677 |
|
|
%{_includedir}/GL/vms_x_fix.h |
678 |
|
|
%{_includedir}/GL/wmesa.h |
679 |
|
|
%dir %{_includedir}/GL/internal |
680 |
|
|
%{_includedir}/GL/internal/dri_interface.h |
681 |
|
|
|
682 |
|
|
%files -n %{libgluname}-devel |
683 |
|
|
%defattr(-,root,root) |
684 |
|
|
%doc docs/COPYING |
685 |
|
|
%{_includedir}/GL/glu.h |
686 |
|
|
%{_includedir}/GL/glu_mangle.h |
687 |
|
|
%{_includedir}/GL/mesa_wgl.h |
688 |
|
|
%{_libdir}/libGLU.so |
689 |
tv |
88436 |
%{_libdir}/pkgconfig/glu.pc |
690 |
pterjan |
5340 |
|
691 |
tv |
88231 |
%if %{with_mesaglut} |
692 |
pterjan |
5340 |
%files -n %{libglutname}-devel |
693 |
|
|
%defattr(-,root,root) |
694 |
|
|
%doc docs/COPYING |
695 |
|
|
%{_includedir}/GL/glut.h |
696 |
|
|
%{_includedir}/GL/glutf90.h |
697 |
|
|
%{_libdir}/libglut.so |
698 |
tv |
88436 |
%{_libdir}/pkgconfig/glut.pc |
699 |
tv |
88231 |
%endif |
700 |
pterjan |
5340 |
|
701 |
|
|
%files common-devel |
702 |
|
|
%defattr(-,root,root) |
703 |
|
|
|
704 |
|
|
%files -n %{libglwname}-devel |
705 |
|
|
%defattr(-,root,root) |
706 |
|
|
%doc docs/COPYING |
707 |
|
|
%{_includedir}/GL/GLwDrawA.h |
708 |
|
|
%{_includedir}/GL/GLwDrawAP.h |
709 |
|
|
%{_includedir}/GL/GLwMDrawA.h |
710 |
|
|
%{_includedir}/GL/GLwMDrawAP.h |
711 |
|
|
%{_libdir}/libGLw.so |
712 |
tv |
88436 |
%{_libdir}/pkgconfig/glw.pc |
713 |
pterjan |
5340 |
|
714 |
tv |
88441 |
%if %{enable_egl} |
715 |
tv |
88433 |
%files -n %{libeglname}-devel |
716 |
|
|
%defattr(-,root,root) |
717 |
tv |
88442 |
%doc docs/COPYING |
718 |
|
|
%{_includedir}/EGL |
719 |
|
|
%{_includedir}/KHR |
720 |
tv |
88433 |
%{_libdir}/libEGL.so |
721 |
tv |
88436 |
%{_libdir}/pkgconfig/egl.pc |
722 |
tv |
88433 |
%endif |
723 |
pterjan |
5340 |
|
724 |
mikala |
112356 |
%files -n %{libglapiname}-devel |
725 |
|
|
%defattr(-,root,root) |
726 |
|
|
%{_libdir}/libglapi.so |
727 |
pterjan |
5340 |
|
728 |
tv |
88442 |
%files -n %{libglesv1name}-devel |
729 |
|
|
%defattr(-,root,root) |
730 |
|
|
%{_includedir}/GLES |
731 |
|
|
%{_libdir}/libGLESv1_CM.so |
732 |
|
|
%{_libdir}/pkgconfig/glesv1_cm.pc |
733 |
tv |
88433 |
|
734 |
tv |
88442 |
%files -n %{libglesv2name}-devel |
735 |
|
|
%defattr(-,root,root) |
736 |
|
|
%{_includedir}/GLES2 |
737 |
|
|
%{_libdir}/libGLESv2.so |
738 |
|
|
%{_libdir}/pkgconfig/glesv2.pc |
739 |
tv |
88445 |
|
740 |
|
|
%files -n %{libopenvgname}-devel |
741 |
|
|
%defattr(-,root,root) |
742 |
|
|
%{_includedir}/VG |
743 |
|
|
%{_libdir}/libOpenVG.so |
744 |
|
|
%{_libdir}/pkgconfig/vg.pc |