Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Conditional building of X11 related things
- %bcond_with X11
- %define mesa_version 12.0.1
- Name: mesa
- Summary: Mesa graphics libraries
- Version: 12.0.1
- Release: 1.3.13
- Group: System/Libraries
- License: MIT
- URL: http://www.mesa3d.org/
- Source0: %{name}-%{version}.tar.gz
- Source1: mesa-rpmlintrc
- Patch0: eglplatform_no_x11.patch
- %if %{with X11}
- BuildRequires: pkgconfig(glproto)
- BuildRequires: pkgconfig(dri2proto) >= 1.1
- BuildRequires: pkgconfig(xproto)
- BuildRequires: pkgconfig(xxf86vm)
- BuildRequires: pkgconfig(xext)
- BuildRequires: pkgconfig(xfixes)
- BuildRequires: pkgconfig(xdamage)
- BuildRequires: pkgconfig(xi)
- BuildRequires: pkgconfig(xmu)
- BuildRequires: makedepend
- %endif
- BuildRequires: pkgconfig(libdrm) >= 2.4.70
- BuildRequires: pkgconfig(libxml-2.0)
- BuildRequires: pkgconfig(talloc)
- BuildRequires: pkgconfig(libudev) >= 160
- BuildRequires: pkgconfig(wayland-client)
- BuildRequires: pkgconfig(wayland-server)
- BuildRequires: pkgconfig autoconf automake
- BuildRequires: expat-devel >= 2.0
- BuildRequires: python
- BuildRequires: libxml2-python
- BuildRequires: bison
- BuildRequires: flex
- BuildRequires: llvm-devel
- BuildRequires: gettext
- %description
- Mesa is an open-source implementation of the OpenGL specification -
- a system for rendering interactive 3D graphics.
- %package libglapi
- Summary: Mesa shared gl api library
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- %description libglapi
- Mesa shared gl api library.
- %package libGLESv1
- Summary: Mesa libGLESv1 runtime libraries
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libGLESv1 = %{version}-%{release}
- %description libGLESv1
- Mesa libGLESv1 runtime library.
- %package libGLESv2
- Summary: Mesa libGLESv2 runtime libraries
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libGLESv2 = %{version}-%{release}
- %description libGLESv2
- Mesa libGLESv2 runtime library.
- %package libGLESv2-compat
- Summary: Mesa libGLESv2 runtime compatibility library
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: libGLESv2.so.2
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libGLESv2.so
- %description libGLESv2-compat
- Mesa libGLESv2 runtime compatibility library.
- %package libEGL
- Summary: Mesa libEGL runtime libraries and DRI drivers
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libEGL = %{version}-%{release}
- %description libEGL
- Mesa libEGL runtime library.
- %package libEGL-compat
- Summary: Mesa libEGL runtime compatibility library
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: libEGL.so.1
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libEGL.so
- %description libEGL-compat
- Mesa libEGL runtime compatibility library.
- %package libglapi-devel
- Summary: Mesa libglapi development package
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libglapi = %{version}-%{release}
- Provides: libglapi-devel
- %description libglapi-devel
- Mesa libglapi development package.
- %package libGLESv1-devel
- Summary: Mesa libGLESv1 development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libGLESv1 = %{version}-%{release}
- Provides: libGLESv1-devel
- %description libGLESv1-devel
- Mesa libGLESv1 development packages
- %package libGLESv2-devel
- Summary: Mesa libGLESv2 development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libGLESv2 = %{version}-%{release}
- Provides: libGLESv2-devel
- Obsoletes: mesa-libGLESv2-compat
- %description libGLESv2-devel
- Mesa libGLESv2 development packages
- %package libEGL-devel
- Summary: Mesa libEGL development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libEGL = %{version}-%{release}
- Provides: libEGL-devel
- Obsoletes: mesa-libEGL-compat
- %description libEGL-devel
- Mesa libEGL development packages
- %if %{with X11}
- %package libGL
- Summary: Mesa libGL runtime libraries and DRI drivers
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: libGL = %{version}-%{release}
- %description libGL
- Mesa libGL runtime library.
- %endif
- %package libGL-devel
- Summary: Mesa libGL development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libGL = %{version}-%{release}
- %if %{with X11}
- Requires: libX11-devel
- %endif
- Provides: libGL-devel
- %description libGL-devel
- Mesa libGL development packages
- %package dri-drivers-devel
- Summary: Mesa-based DRI development files
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- %description dri-drivers-devel
- Mesa-based DRI driver development files.
- %package dri-swrast-driver
- Summary: Mesa-based DRI drivers
- Group: Graphics/Display and Graphics Adaptation
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: mesa-dri-drivers = %{version}-%{release}
- %description dri-swrast-driver
- Mesa-based swrast DRI driver.
- %package libwayland-egl-devel
- Summary: Mesa libwayland-egl development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libwayland-egl = %{version}-%{release}
- Provides: libwayland-egl-devel
- %description libwayland-egl-devel
- Mesa libwayland-egl development packages
- %package libwayland-egl
- Summary: Mesa libwayland-egl runtime library
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- %description libwayland-egl
- Mesa libwayland-egl runtime libraries
- %package dri-intel-driver
- Summary: Mesa-based DRI drivers
- Group: Graphics/Display and Graphics Adaptation
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- Provides: mesa-dri-drivers = %{version}-%{release}
- %description dri-intel-driver
- Mesa-based intel DRI driver.
- %package libgbm-devel
- Summary: Mesa libgbm development package
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: mesa-libwayland-egl = %{version}-%{release}
- Provides: libgbm-devel
- %description libgbm-devel
- Mesa libgbm development packages
- %package libgbm
- Summary: Mesa libgbm runtime library
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): /sbin/ldconfig
- Requires(postun): /sbin/ldconfig
- %description libgbm
- Mesa libgbm runtime libraries
- %prep
- %setup -q -n %{name}-%{version}
- %if ! %{with X11}
- # eglplatform_no_x11.patch
- #patch0 -p1
- %endif
- %build
- ./configure --disable-static \
- --prefix=/usr \
- --libdir=/usr/lib \
- --enable-dri \
- --disable-osmesa \
- --with-dri-drivers=i915,i965,swrast \
- --with-gallium-drivers="" \
- %if %{with X11}
- --with-egl-platforms=x11,drm,wayland \
- --with-x \
- --enable-glx-tls \
- --enable-glx=yes \
- %else
- --with-egl-platforms=drm,wayland \
- --disable-glx \
- --disable-xlib-glx \
- --enable-dri3=no \
- %endif
- --enable-gbm \
- --enable-egl \
- --enable-gles1 \
- --enable-gles2 \
- --enable-shared-glapi
- make %{?jobs:-j%jobs}
- %install
- rm -rf %{buildroot}
- %make_install
- # strip out undesirable headers
- rm -f $RPM_BUILD_ROOT/usr/etc/drirc
- pushd $RPM_BUILD_ROOT%{_includedir}/GL
- #rm [a-fh-np-wyz]*.h
- #rm osmesa.h
- popd
- %post libglapi -p /sbin/ldconfig
- %postun libglapi -p /sbin/ldconfig
- %post libGLESv1 -p /sbin/ldconfig
- %postun libGLESv1 -p /sbin/ldconfig
- %post libGLESv2 -p /sbin/ldconfig
- %postun libGLESv2 -p /sbin/ldconfig
- %post libGLESv2-compat -p /sbin/ldconfig
- %postun libGLESv2-compat -p /sbin/ldconfig
- %post libEGL -p /sbin/ldconfig
- %postun libEGL -p /sbin/ldconfig
- %post libEGL-compat -p /sbin/ldconfig
- %postun libEGL-compat -p /sbin/ldconfig
- %if %{with X11}
- %post libGL -p /sbin/ldconfig
- %postun libGL -p /sbin/ldconfig
- %endif
- %post dri-swrast-driver -p /sbin/ldconfig
- %postun dri-swrast-driver -p /sbin/ldconfig
- %post libwayland-egl -p /sbin/ldconfig
- %postun libwayland-egl -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- #%{_libdir}/egl/egl_gallium.so
- %files libglapi
- %defattr(-,root,root,-)
- %{_libdir}/libglapi.so.0
- %{_libdir}/libglapi.so.0.*
- %files libGLESv1
- %defattr(-,root,root,-)
- %{_libdir}/libGLESv1_CM.so.1
- %{_libdir}/libGLESv1_CM.so.1.1.0
- %files libGLESv2
- %defattr(-,root,root,-)
- %{_libdir}/libGLESv2.so.2
- %{_libdir}/libGLESv2.so.2.0.0
- %files libGLESv2-compat
- %defattr(-,root,root,-)
- %{_libdir}/libGLESv2.so
- %files libEGL
- %defattr(-,root,root,-)
- %{_libdir}/libEGL.so.1
- %{_libdir}/libEGL.so.1.0.0
- %files libEGL-compat
- %defattr(-,root,root,-)
- %{_libdir}/libEGL.so
- %files libglapi-devel
- %defattr(-,root,root,-)
- %{_libdir}/libglapi.so
- %files libGLESv1-devel
- %defattr(-,root,root,-)
- %{_libdir}/libGLESv1_CM.so
- %{_includedir}/GLES/egl.h
- %{_includedir}/GLES/gl.h
- %{_includedir}/GLES/glext.h
- %{_includedir}/GLES/glplatform.h
- %{_libdir}/pkgconfig/glesv1_cm.pc
- %files libGLESv2-devel
- %defattr(-,root,root,-)
- %{_libdir}/libGLESv2.so
- %{_includedir}/GLES2/gl2.h
- %{_includedir}/GLES2/gl2ext.h
- %{_includedir}/GLES2/gl2platform.h
- %{_includedir}/GLES3/gl3.h
- %{_includedir}/GLES3/gl31.h
- %{_includedir}/GLES3/gl3ext.h
- %{_includedir}/GLES3/gl3platform.h
- %{_libdir}/pkgconfig/glesv2.pc
- %files libEGL-devel
- %defattr(-,root,root,-)
- %{_libdir}/libEGL.so
- %dir %{_includedir}/EGL
- %{_includedir}/EGL/egl.h
- %{_includedir}/EGL/eglext.h
- %{_includedir}/EGL/eglextchromium.h
- %{_includedir}/EGL/eglplatform.h
- %{_includedir}/EGL/eglmesaext.h
- %dir %{_includedir}/KHR
- %{_includedir}/KHR/khrplatform.h
- %{_libdir}/pkgconfig/egl.pc
- %if %{with X11}
- %files libGL
- %defattr(-,root,root,-)
- %{_libdir}/libGL.so.*
- %endif
- %files libGL-devel
- %defattr(-,root,root,-)
- %if %{with X11}
- %{_includedir}/GL/gl.h
- %{_includedir}/GL/glcorearb.h
- %{_includedir}/GL/gl_mangle.h
- %{_includedir}/GL/glext.h
- %{_includedir}/GL/glx.h
- %{_includedir}/GL/glx_mangle.h
- %{_includedir}/GL/glxext.h
- %{_libdir}/pkgconfig/gl.pc
- %{_libdir}/libGL.so
- %endif
- %dir %{_includedir}/GL/internal
- %{_includedir}/GL/internal/dri_interface.h
- %files dri-drivers-devel
- %defattr(-,root,root,-)
- #%{_libdir}/libdricore%{mesa_version}.so
- %{_libdir}/pkgconfig/dri.pc
- %files dri-swrast-driver
- %defattr(-,root,root,-)
- #%{_libdir}/libdricore%{mesa_version}.so.*
- %{_libdir}/dri/swrast_dri.so
- %files dri-intel-driver
- %defattr(-,root,root,-)
- #%{_libdir}/libdricore%{mesa_version}.so.*
- %{_libdir}/dri/i915_dri.so
- %{_libdir}/dri/i965_dri.so
- %files libwayland-egl-devel
- %defattr(-,root,root,-)
- %{_libdir}/libwayland-egl.so
- %{_libdir}/pkgconfig/wayland-egl.pc
- %files libwayland-egl
- %defattr(-,root,root,-)
- %{_libdir}/libwayland-egl.so.1
- %{_libdir}/libwayland-egl.so.1.*
- %files libgbm
- %defattr(-,root,root,-)
- %{_libdir}/libgbm.so.*
- %files libgbm-devel
- %defattr(-,root,root,-)
- %{_includedir}/gbm.h
- %{_libdir}/libgbm.so
- %{_libdir}/pkgconfig/gbm.pc
- %changelog
- * Fri Sep 5 2014 Carsten Munk <[email protected]> - 9.2.5+git2
- - [mesa] disable avx support - JB#18552
- - [mesa] mesa package doesn't build with bcond X11 due to missing post/postun. Fixes: JB#22690
- * Thu Jan 2 2014 Islam Amer <[email protected]> - 9.2.5+git1
- - [packaging] import mer packaging
- - [packaging] use %%autogen to build from git and fixup for subtree build
- * Sat May 4 2013 Carsten Munk <[email protected]> - 9.0.3
- - Upgrade to 9.0.3
- * Wed Feb 13 2013 Carsten Munk <[email protected]> - 9.0.2
- - Upgrade to 9.0.2
- - Forcibly disable SSE4.1/AVX usage due to VirtualBox bugginess
- * Tue Jan 22 2013 Carsten Munk <[email protected]> - 9.0.1
- - Upgrade to 9.0.1
- - Add patch to fix wayland-shm roundtrip
- * Thu Jan 17 2013 Carsten Munk <[email protected]> - 8.0.3
- - Fix e-mail in changelog
- - Utilize shared glapi, caused problems without.
- * Thu Nov 8 2012 Carsten Munk <[email protected]> - 8.0.3
- - Upgrade to 8.0.5, add patches for LLVM 3.1 and Wayland 0.85
- * Mon Jul 2 2012 Marko Saukko <[email protected]> - 8.0.3
- - Fixes MER#356: update mesa to 8.0.3; obsolete URL, etc.
- * Wed Mar 14 2012 Carsten Munk <[email protected]> - 8.0.1
- - Fix changelog
- - Rename to mesa
- * Thu Feb 16 2012 Carsten Munk <[email protected]> - 8.0.1
- - Upgrade to Mesa 8.0.1, switch to llvmpipe as default (MER#12)
- * Fri Oct 14 2011 Carsten Munk <[email protected]> - 7.11
- - Remove timestamp that caused unneeded rebuilds
Advertisement
Add Comment
Please, Sign In to add comment