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}
254 %post libGL -p /sbin/ldconfig
256 %postun libGL -p /sbin/ldconfig
258 %post libgbm -p /sbin/ldconfig
259 rm -rf /usr/lib/libdricore.so
260 #rm -rf /usr/lib/libglsl.so
261 ln -sf /usr/lib/libdricore%{version}.so /usr/lib/libdricore.so
262 #ln -sf /usr/lib/libglsl%{version}.so /usr/lib/libglsl.so
264 %postun libgbm -p /sbin/ldconfig
265 rm -rf /usr/lib/libdricore.so
266 #rm -rf /usr/lib/libglsl.so
268 %post libGLESv2 -p /sbin/ldconfig
270 %postun libGLESv2 -p /sbin/ldconfig
273 %post libGLESv2-compat -p /sbin/ldconfig
275 %postun libGLESv2-compat -p /sbin/ldconfig
278 %post libEGL -p /sbin/ldconfig
280 %postun libEGL -p /sbin/ldconfig
282 %post libwayland-egl -p /sbin/ldconfig
284 %postun libwayland-egl -p /sbin/ldconfig
286 %post libEGL-compat -p /sbin/ldconfig
288 %postun libEGL-compat -p /sbin/ldconfig
291 %post libGLU -p /sbin/ldconfig
293 %postun libGLU -p /sbin/ldconfig
296 %files dri-drivers-devel
297 %defattr(-,root,root,-)
298 %{_libdir}/pkgconfig/dri.pc
299 /usr/lib/dri/r300_dri.so
300 /usr/lib/dri/r600_dri.so
301 /usr/lib/dri/vmwgfx_dri.so
303 %files dri-i965-driver
304 %defattr(-,root,root,-)
305 %{_libdir}/dri/i965_dri.so
307 %files dri-i915-driver
308 %defattr(-,root,root,-)
309 %{_libdir}/dri/i915_dri.so
311 %files dri-swrast-driver
312 %defattr(-,root,root,-)
313 %{_libdir}/dri/swrast_dri.so
317 %defattr(-,root,root,-)
318 %{_libdir}/libGL.so.*
319 %{_libdir}/libglapi.so.*
322 %defattr(-,root,root,-)
323 %{_libdir}/libGLESv2.so.*
326 %defattr(-,root,root,-)
327 %{_libdir}/libGLESv1_CM.so.*
330 %files libGLESv2-compat
331 %defattr(-,root,root,-)
332 %{_libdir}/libGLESv2.so
335 %defattr(-,root,root,-)
336 %{_libdir}/libgbm.so.*
339 %{_libdir}/libdricore%{version}.so*
340 #%{_libdir}/libglsl%{version}.so*
343 %defattr(-,root,root,-)
346 %{_libdir}/pkgconfig/gbm.pc
348 %files libwayland-egl
349 %defattr(-,root,root,-)
350 %{_libdir}/libwayland-egl.so.*
352 %files libwayland-egl-devel
353 %defattr(-,root,root,-)
354 %{_libdir}/libwayland-egl.so
355 %{_libdir}/pkgconfig/wayland-egl.pc
358 %defattr(-,root,root,-)
359 %{_libdir}/libEGL.so.*
362 %defattr(-,root,root,-)
366 %defattr(-,root,root,-)
367 %{_libdir}/libGLU.so.*
370 %defattr(-,root,root,-)
371 %{_includedir}/GL/gl.h
372 %{_includedir}/GL/gl_mangle.h
373 %{_includedir}/GL/glext.h
374 %{_includedir}/GL/glx.h
375 %{_includedir}/GL/glx_mangle.h
376 %{_includedir}/GL/glxext.h
377 %{_includedir}/GL/osmesa.h
378 %{_includedir}/GL/vms_x_fix.h
379 %{_includedir}/GL/wglext.h
380 %{_includedir}/GL/wmesa.h
381 %{_libdir}/libglapi.so
384 %dir %{_includedir}/GL/internal
385 %{_includedir}/GL/internal/dri_interface.h
388 %{_libdir}/pkgconfig/gl.pc
390 %files libGLESv2-devel
391 %defattr(-,root,root,-)
392 %{_libdir}/libGLESv2.so
393 %{_includedir}/GLES2/gl2.h
394 %{_includedir}/GLES2/gl2ext.h
395 %{_includedir}/GLES2/gl2platform.h
396 %{_libdir}/pkgconfig/glesv2.pc
399 %files libGLESv1-devel
400 %defattr(-,root,root-)
401 %{_libdir}/libGLESv1_CM.so
402 %{_includedir}/GLES/egl.h
403 %{_includedir}/GLES/gl.h
404 %{_includedir}/GLES/glext.h
405 %{_includedir}/GLES/glplatform.h
406 %{_libdir}/pkgconfig/glesv1_cm.pc
410 %defattr(-,root,root,-)
412 %dir %{_includedir}/EGL
413 %{_includedir}/EGL/egl.h
414 %{_includedir}/EGL/eglext.h
415 %{_includedir}/EGL/eglplatform.h
416 %{_includedir}/EGL/eglmesaext.h
417 %dir %{_includedir}/KHR
418 %{_includedir}/KHR/khrplatform.h
419 %{_libdir}/pkgconfig/egl.pc
422 %defattr(-,root,root,-)
424 %{_libdir}/pkgconfig/glu.pc
425 %{_includedir}/GL/glu.h
426 %{_includedir}/GL/glu_mangle.h