update to 17.2.6 [release 17.2.6-1mamba;Tue Nov 28 2017]

This commit is contained in:
Silvan Calarco 2024-01-05 17:47:39 +01:00
parent 3031799ab9
commit 4629fd74e8

View File

@ -10,7 +10,7 @@
Name: Mesa
Epoch: 1
Version: 11.2.2
Version: 17.2.6
Release: 1mamba
Summary: A 3-D graphics library with an API which is very similar to that of OpenGL
Group: System/Libraries
@ -18,7 +18,7 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://mesa3d.sourceforge.net/
Source: ftp://ftp.freedesktop.org/pub/mesa/%{version}/mesa-%{version}.tar.xz
Source: ftp://ftp.freedesktop.org/pub/mesa/mesa-%{version}.tar.xz
#Source: http://www.mesa3d.org/beta/MesaLib-%{pkgver}.tar.gz
Source3: Mesa-7.0.3-libGL.la
Patch0: %{name}-7.10.2-driproto-2.4.patch
@ -37,30 +37,34 @@ BuildRequires: libXfixes-devel
BuildRequires: libXv-devel
BuildRequires: libXvMC-devel
BuildRequires: libXxf86vm-devel
BuildRequires: libbsd-devel
BuildRequires: libdrm-devel
BuildRequires: libelf-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libgcc
BuildRequires: libllvm-devel
BuildRequires: libomxil-bellagio-devel
BuildRequires: libpciaccess-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunwind-devel
BuildRequires: libwayland-devel
BuildRequires: libxcb-devel
BuildRequires: libxshmfence-devel
BuildRequires: libz-devel
BuildRequires: lm_sensors-devel
## AUTOBUILDREQ-END
BuildRequires: libdrm
BuildRequires: libllvm-devel >= 3.8.0
BuildRequires: libllvm-devel >= 5.0.0
BuildRequires: xproto-devel >= 7.1
BuildRequires: dri2proto-devel
BuildRequires: glproto-devel
BuildRequires: makedepend >= 1.0.0
BuildRequires: libllvm-devel >= 3.1
BuildRequires: libudis86-devel
BuildRequires: liblesstif-devel
BuildRequires: libvdpau-devel
BuildRequires: dri3proto-devel
BuildRequires: libxshmfence-devel
BuildRequires: presentproto-devel
BuildRequires: libomxil-bellagio-devel
%ifnarch arm
BuildRequires: libclc-devel
%endif
@ -317,12 +321,17 @@ Group: System/Libraries
%description -n libMesaOpenCL
Mesa OpenCL library.
%package -n libvulkan-Mesa
Summary: Mesa vulkan drivers
Group: System/Libraries
%description -n libvulkan-Mesa
Mesa vulkan drivers.
%debug_package
%prep
%setup -q -n mesa-%{version}
#-D -T
#:<< ___EOF
%ifarch arm
# Force libglx dri backend using swrast on non-DRI accelerated platforms
sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
@ -331,53 +340,53 @@ sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
#%patch3 -p1
%build
#:<< ___EOF
#./autogen.sh \
# --with-dri-drivers=swrast \
# --with-gallium-drivers=swrast
export CXXFLAGS="%{optflags} -std=c++11"
#export CXXFLAGS="%{optflags} -std=c++11"
%configure \
--enable-egl \
--enable-gles1 \
--enable-gles2 \
--with-egl-platforms=x11,drm,wayland \
--with-platforms=x11,drm,wayland \
--enable-driglx-direct \
--enable-dri \
--enable-gbm \
--enable-glx \
--enable-glx-tls \
--enable-llvm-shared-libs \
--with-clang-libdir=%{_prefix}/lib \
--enable-osmesa \
--with-osmesa-bits=8 \
--enable-omx \
--enable-nine \
--enable-shared-glapi \
--enable-vdpau \
--enable-xvmc \
--enable-libunwind \
--enable-lmsensors \
--enable-gallium-osmesa \
%ifarch arm
--with-dri-drivers=swrast \
--with-gallium-drivers=swrast,freedreno,vc4 \
--with-gallium-drivers=swrast,freedreno \
--enable-gallium-egl \
--disable-gallium-llvm \
--disable-llvm \
%else
--enable-texture-float \
--enable-gallium-llvm \
--with-gallium-drivers=ilo,nouveau,r300,r600,radeonsi,svga,swrast \
--enable-llvm \
--disable-llvm-shared-libs \
--with-gallium-drivers=nouveau,r300,r600,radeonsi,svga,swrast,virgl,swr \
--with-dri-drivers=i915,i965,nouveau,r200,radeon,swrast \
--with-vulkan-drivers=intel,radeon \
--enable-gallium-extra-hud \
--enable-texture-float \
--enable-xa \
--enable-opencl \
--enable-opencl-icd \
--enable-r600-llvm-compiler \
--with-clang-libdir=%{_libdir}/llvm
%endif
# --enable-openvg \
# --enable-gallium-egl \
# FIXME: (since llvm 5.0.0)
# --disable-llvm-shared-libs \
# --with-driver=dri \
# --disable-gallium-egl \
# --enable-libglvnd \
%make
# -j1
@ -521,8 +530,8 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
#%{_libdir}/egl/egl_gallium.so
%ifarch %{ix86} x86_64
%dir %{_libdir}/gallium-pipe
%{_libdir}/gallium-pipe/pipe_i965.la
%{_libdir}/gallium-pipe/pipe_i965.so
#%{_libdir}/gallium-pipe/pipe_i965.la
#%{_libdir}/gallium-pipe/pipe_i965.so
%{_libdir}/gallium-pipe/pipe_nouveau.la
%{_libdir}/gallium-pipe/pipe_nouveau.so
%{_libdir}/gallium-pipe/pipe_r300.la
@ -549,6 +558,10 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/mesa/libGL.so.*
%{_libdir}/bellagio/libomx_mesa.la
%{_libdir}/bellagio/libomx_mesa.so
%ifnarch arm
%{_libdir}/libswrAVX.so.*
%{_libdir}/libswrAVX2.so.*
%endif
%dir %{_libdir}/d3d
%{_libdir}/d3d/d3dadapter9.so.*
#%{_libdir}/bellagio/libomx_nouveau.la
@ -577,7 +590,7 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
#%{_includedir}/GL/wmesa.h
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h
%{_includedir}/GL/wglext.h
#%{_includedir}/GL/wglext.h
%dir %{_includedir}/d3dadapter
%{_includedir}/d3dadapter/*.h
#%{_libdir}/libGL.la
@ -586,12 +599,25 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/libglapi.so
%{_libdir}/d3d/d3dadapter9.la
%{_libdir}/d3d/d3dadapter9.so
%ifnarch arm
%{_includedir}/vulkan/vulkan_intel.h
%{_libdir}/libswrAVX.so
%{_libdir}/libswrAVX2.so
%endif
#%{_libdir}/libdricore%{version}*.so
%{_libdir}/dri/gallium_drv_video.la
#%{_libdir}/dri/gallium_drv_video.la
%{_libdir}/pkgconfig/d3d.pc
%{_libdir}/pkgconfig/dri.pc
%{_libdir}/pkgconfig/gl.pc
%ifnarch arm
%files -n libvulkan-Mesa
%{_libdir}/libvulkan_intel.so
%{_libdir}/libvulkan_radeon.so
%{_datadir}/vulkan/icd.d/intel_icd.*.json
%{_datadir}/vulkan/icd.d/radeon_icd.*.json
%endif
%files -n libvdpau-Mesa
%defattr(-,root,root)
%ifarch %{ix86} x86_64
@ -647,10 +673,7 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/pkgconfig/glesv2.pc
# TODO: create subpackage
%dir %{_includedir}/GLES3
%{_includedir}/GLES3/gl3.h
%{_includedir}/GLES3/gl3ext.h
%{_includedir}/GLES3/gl3platform.h
%{_includedir}/GLES3/gl31.h
%{_includedir}/GLES3/*.h
%files -n libglapi
%defattr(-,root,root)
@ -705,6 +728,9 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%endif
%changelog
* Tue Nov 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 17.2.6-1mamba
- update to 17.2.6
* Thu May 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 11.2.2-1mamba
- update to 11.2.2