2 Summary: Mesa graphics libraries
5 Group: System/Libraries
7 URL: http://www.mesa3d.org/beta
8 Source0: %{name}-%{version}.tar.bz2
9 Source1: mesa-rpmlintrc
10 BuildRequires: pkgconfig(wayland-client)
11 BuildRequires: pkgconfig(libdrm)
12 BuildRequires: pkgconfig(glproto)
13 BuildRequires: pkgconfig(dri2proto)
14 BuildRequires: pkgconfig(xproto)
15 BuildRequires: pkgconfig(xxf86vm)
16 BuildRequires: pkgconfig(xext)
17 BuildRequires: pkgconfig(xfixes)
18 BuildRequires: pkgconfig(xdamage)
19 BuildRequires: pkgconfig(xi)
20 BuildRequires: pkgconfig(xmu)
21 BuildRequires: pkgconfig(libxml-2.0)
22 BuildRequires: pkgconfig(libudev)
23 BuildRequires: pkgconfig autoconf automake
24 BuildRequires: libxml2-python
25 BuildRequires: llvm-devel
26 BuildRequires: expat-devel
27 BuildRequires: python-devel
30 BuildRequires: makedepend
33 Mesa is an open-source implementation of the OpenGL specification -
34 a system for rendering interactive 3D graphics.
36 %package dri-drivers-devel
37 Summary: Mesa-based DRI development files
38 Group: Development/Libraries
40 %description dri-drivers-devel
41 Mesa-based DRI driver development files.
44 %package dri-i965-driver
45 Summary: Mesa-based DRI drivers
46 Group: System/X Hardware Support
47 Provides: mesa-dri-drivers = %{version}-%{release}
49 %description dri-i965-driver
50 Mesa-based i965 DRI driver.
52 %package dri-i915-driver
53 Summary: Mesa-based DRI drivers
54 Group: System/X Hardware Support
55 Provides: mesa-dri-drivers = %{version}-%{release}
57 %description dri-i915-driver
58 Mesa-based i915 DRI driver.
61 %package dri-swrast-driver
62 Summary: Mesa-based DRI drivers
63 Group: System/X Hardware Support
64 Provides: mesa-dri-drivers = %{version}-%{release}
66 %description dri-swrast-driver
67 Mesa-based swrast DRI driver.
70 Summary: Mesa libGL runtime libraries and DRI drivers
71 Group: System/Libraries
72 Requires(post): /sbin/ldconfig
73 Requires(postun): /sbin/ldconfig
74 Provides: libGL = %{version}-%{release}
75 Obsoletes: simulator-opengl
78 Mesa libGL runtime library.
81 Summary: Mesa libGLESv2 runtime libraries
82 Group: System/Libraries
83 Requires(post): /sbin/ldconfig
84 Requires(postun): /sbin/ldconfig
85 Provides: libGLESv2 = %{version}-%{release}
87 %description libGLESv2
88 Mesa libGLESv2 runtime library.
91 Summary: Mesa libGLESv1 runtime libraries
92 Group: System/Libraries
93 Requires(post): /sbin/ldconfig
94 Requires(postun): /sbin/ldconfig
95 Provides: libGLESv1 = %{version}-%{release}
97 %description libGLESv1
98 Mesa libGLESv1 runtime library.
101 %package libGLESv2-compat
102 Summary: Mesa libGLESv2 runtime compatibility library
103 Group: System/Libraries
104 Requires: libGLESv2.so.2
105 Requires(post): /sbin/ldconfig
106 Requires(postun): /sbin/ldconfig
107 #Provides: libGLESv2.so
109 %description libGLESv2-compat
110 Mesa libGLESv2 runtime compatibility library.
113 Summary: Mesa General Buffer Management library
114 Group: System/Libraries
115 Requires(post): /sbin/ldconfig
116 Requires(postun): /sbin/ldconfig
117 Provides: libgbm = %{version}-%{release}
120 Mesa General Buffer Management library
122 %package libgbm-devel
123 Summary: Mesa libgbm development package
124 Group: Development/Libraries
125 Requires: mesa-libgbm = %{version}-%{release}
126 Provides: libgbm-devel
128 %description libgbm-devel
129 Mesa libgbm library development package
131 %package libwayland-egl
132 Summary: Wayland EGL library
133 Group: System/Libraries
134 Requires(post): /sbin/ldconfig
135 Requires(postun): /sbin/ldconfig
136 Provides: libwayland-egl = %{version}-%{release}
138 %description libwayland-egl
141 %package libwayland-egl-devel
142 Summary: Mesa libwayland-egl development package
143 Group: Development/Libraries
144 Requires: libwayland-egl = %{version}-%{release}
145 Provides: libwayland-egl-devel
147 %description libwayland-egl-devel
148 Mesa libwayland-egl library development package
151 Summary: Mesa libEGL runtime libraries and DRI drivers
152 Group: System/Libraries
153 Requires(post): /sbin/ldconfig
154 Requires(postun): /sbin/ldconfig
155 Provides: libEGL = %{version}-%{release}
158 Mesa libEGL runtime library.
160 %package libEGL-compat
161 Summary: Mesa libEGL runtime compatibility library
162 Group: System/Libraries
163 Requires: libEGL.so.1
164 Requires(post): /sbin/ldconfig
165 Requires(postun): /sbin/ldconfig
168 %description libEGL-compat
169 Mesa libEGL runtime compatibility library.
172 Summary: Mesa libGLU runtime library
173 Group: System/Libraries
174 Requires(post): /sbin/ldconfig
175 Requires(postun): /sbin/ldconfig
178 Mesa OpenGL library Utility runtime library
181 Summary: Mesa libGL development package
182 Group: Development/Libraries
183 Requires: mesa-libGL = %{version}-%{release}
184 Requires: libx11-devel
185 Provides: libGL-devel
186 Obsoletes: simulator-opengl-devel
188 %description libGL-devel
189 Mesa OpenGL library development package
191 %package libGLESv2-devel
192 Summary: Mesa libGLESv2 development package
193 Group: Development/Libraries
194 Requires: mesa-libGLESv2 = %{version}-%{release}
195 Provides: libGLESv2-devel
196 Obsoletes: mesa-libGLESv2-compat
198 %description libGLESv2-devel
199 Mesa OpenGLESv2 library development package
201 %package libGLESv1-devel
202 Summary: Mesa libGLESv1 development package
203 Group: Development/Libraries
204 Requires: mesa-libGLESv1 = %{version}-%{release}
205 Provides: libGLESv1-devel
206 Obsoletes: mesa-libGLESv1-compat
208 %description libGLESv1-devel
211 %package libEGL-devel
212 Summary: Mesa libEGL development package
213 Group: Development/Libraries
214 Requires: mesa-libEGL = %{version}-%{release}
215 Provides: libEGL-devel
216 Obsoletes: mesa-libEGL-compat
218 %description libEGL-devel
219 Mesa EGL library development package
221 %package libGLU-devel
222 Summary: Mesa libGLU development package
223 Group: Development/Libraries
224 Requires: mesa-libGLU = %{version}-%{release}
225 Requires: libGL-devel
226 Provides: libGLU-devel
228 %description libGLU-devel
229 Mesa OpenGL library Utility development package
232 %setup -q -n %{name}-%{version} -b1
237 --disable-gallium-egl \
240 --with-egl-platforms=wayland,drm \
242 --enable-gallium-gbm \
243 --enable-shared-glapi \
244 --with-dri-drivers=swrast,i915,i965
245 make %{?jobs:-j%jobs}
253 %post libGL -p /sbin/ldconfig
255 %postun libGL -p /sbin/ldconfig
258 %post libGLESv2 -p /sbin/ldconfig
260 %postun libGLESv2 -p /sbin/ldconfig
263 %post libGLESv2-compat -p /sbin/ldconfig
265 %postun libGLESv2-compat -p /sbin/ldconfig
268 %post libEGL -p /sbin/ldconfig
270 %postun libEGL -p /sbin/ldconfig
272 %post libwayland-egl -p /sbin/ldconfig
274 %postun libwayland-egl -p /sbin/ldconfig
276 %post libEGL-compat -p /sbin/ldconfig
278 %postun libEGL-compat -p /sbin/ldconfig
281 %post libGLU -p /sbin/ldconfig
283 %postun libGLU -p /sbin/ldconfig
286 %files dri-drivers-devel
287 %defattr(-,root,root,-)
288 %{_libdir}/pkgconfig/dri.pc
289 /usr/lib/dri/r300_dri.so
290 /usr/lib/dri/r600_dri.so
291 /usr/lib/dri/vmwgfx_dri.so
293 %files dri-i965-driver
294 %defattr(-,root,root,-)
295 %{_libdir}/dri/i965_dri.so
297 %files dri-i915-driver
298 %defattr(-,root,root,-)
299 %{_libdir}/dri/i915_dri.so
301 %files dri-swrast-driver
302 %defattr(-,root,root,-)
303 %{_libdir}/dri/swrast_dri.so
307 %defattr(-,root,root,-)
308 %{_libdir}/libGL.so.*
309 %{_libdir}/libglapi.so.*
312 %defattr(-,root,root,-)
313 %{_libdir}/libGLESv2.so.*
316 %defattr(-,root,root,-)
317 %{_libdir}/libGLESv1_CM.so.*
320 %files libGLESv2-compat
321 %defattr(-,root,root,-)
322 %{_libdir}/libGLESv2.so
325 %defattr(-,root,root,-)
326 %{_libdir}/libgbm.so.*
329 %{_libdir}/dri/libdricore.so
330 %{_libdir}/dri/libglsl.so
333 %defattr(-,root,root,-)
336 %{_libdir}/pkgconfig/gbm.pc
338 %files libwayland-egl
339 %defattr(-,root,root,-)
340 %{_libdir}/libwayland-egl.so.*
342 %files libwayland-egl-devel
343 %defattr(-,root,root,-)
344 %{_libdir}/libwayland-egl.so
345 %{_libdir}/pkgconfig/wayland-egl.pc
348 %defattr(-,root,root,-)
349 %{_libdir}/libEGL.so.*
352 %defattr(-,root,root,-)
356 %defattr(-,root,root,-)
357 %{_libdir}/libGLU.so.*
360 %defattr(-,root,root,-)
361 %{_includedir}/GL/gl.h
362 %{_includedir}/GL/gl_mangle.h
363 %{_includedir}/GL/glext.h
364 %{_includedir}/GL/glx.h
365 %{_includedir}/GL/glx_mangle.h
366 %{_includedir}/GL/glxext.h
367 %{_includedir}/GL/osmesa.h
368 %{_includedir}/GL/vms_x_fix.h
369 %{_includedir}/GL/wglext.h
370 %{_includedir}/GL/wmesa.h
371 %{_libdir}/libglapi.so
374 %dir %{_includedir}/GL/internal
375 %{_includedir}/GL/internal/dri_interface.h
378 %{_libdir}/pkgconfig/gl.pc
380 %files libGLESv2-devel
381 %defattr(-,root,root,-)
382 %{_libdir}/libGLESv2.so
383 %{_includedir}/GLES2/gl2.h
384 %{_includedir}/GLES2/gl2ext.h
385 %{_includedir}/GLES2/gl2platform.h
386 %{_libdir}/pkgconfig/glesv2.pc
389 %files libGLESv1-devel
390 %defattr(-,root,root-)
391 %{_libdir}/libGLESv1_CM.so
392 %{_includedir}/GLES/egl.h
393 %{_includedir}/GLES/gl.h
394 %{_includedir}/GLES/glext.h
395 %{_includedir}/GLES/glplatform.h
396 %{_libdir}/pkgconfig/glesv1_cm.pc
400 %defattr(-,root,root,-)
402 %dir %{_includedir}/EGL
403 %{_includedir}/EGL/egl.h
404 %{_includedir}/EGL/eglext.h
405 %{_includedir}/EGL/eglplatform.h
406 %{_includedir}/EGL/eglmesaext.h
407 %dir %{_includedir}/KHR
408 %{_includedir}/KHR/khrplatform.h
409 %{_libdir}/pkgconfig/egl.pc
412 %defattr(-,root,root,-)
414 %{_libdir}/pkgconfig/glu.pc
415 %{_includedir}/GL/glu.h
416 %{_includedir}/GL/glu_mangle.h