support for lib32 alternative when installed on x86_64 [release 10.5.7-2mamba;Sat Jun 20 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 17:47:39 +01:00
parent 7e8e4b6879
commit 17bf5c44bd

153
Mesa.spec
View File

@ -10,15 +10,15 @@
Name: Mesa Name: Mesa
Epoch: 1 Epoch: 1
Version: 10.3.5 Version: 10.5.7
Release: 1mamba Release: 2mamba
Summary: A 3-D graphics library with an API which is very similar to that of OpenGL Summary: A 3-D graphics library with an API which is very similar to that of OpenGL
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://mesa3d.sourceforge.net/ URL: http://mesa3d.sourceforge.net/
Source: ftp://freedesktop.org/pub/mesa/%{version}/MesaLib-%{version}.tar.bz2 Source: ftp://ftp.freedesktop.org/pub/mesa/%{version}/mesa-%{version}.tar.xz
#Source: http://www.mesa3d.org/beta/MesaLib-%{pkgver}.tar.gz #Source: http://www.mesa3d.org/beta/MesaLib-%{pkgver}.tar.gz
Source3: Mesa-7.0.3-libGL.la Source3: Mesa-7.0.3-libGL.la
Patch0: %{name}-7.10.2-driproto-2.4.patch Patch0: %{name}-7.10.2-driproto-2.4.patch
@ -245,6 +245,22 @@ Requires: libOpenVG == %{?epoch:%epoch:}%{version}-%{release}
Mesa implementation of the OpenVG graphics library. Mesa implementation of the OpenVG graphics library.
This package contains the headers and other files needed for development. This package contains the headers and other files needed for development.
%package -n libwayland-egl
Summary: Mesa implementation of Wayland EGL graphics library
Group: System/Libraries
%description -n libwayland-egl
Mesa implementation of Wayland EGL graphics library.
%package -n libwayland-egl-devel
Summary: Development files for libwayland-egl
Group: Development/Libraries
Requires: libwayland-egl == %{?epoch:%epoch:}%{version}-%{release}
%description -n libwayland-egl-devel
Mesa implementation of Wayland EGL graphics library.
This package contains the headers and other files needed for development.
%package -n libxatracker %package -n libxatracker
Summary: Mesa XA tracker library Summary: Mesa XA tracker library
Group: System/Libraries Group: System/Libraries
@ -304,7 +320,7 @@ Mesa OpenCL library.
%debug_package %debug_package
%prep %prep
%setup -q %setup -q -n mesa-%{version}
#-D -T #-D -T
#:<< ___EOF #:<< ___EOF
%ifarch arm %ifarch arm
@ -316,44 +332,50 @@ sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
%build %build
#:<< ___EOF #:<< ___EOF
./autogen.sh \ #./autogen.sh \
--with-dri-drivers=swrast \ # --with-dri-drivers=swrast \
--with-gallium-drivers=swrast # --with-gallium-drivers=swrast
export CXXFLAGS="%{optflags} -std=c++11" export CXXFLAGS="%{optflags} -std=c++11"
%configure \ %configure \
--enable-osmesa \
--with-osmesa-bits=8 \
--enable-egl \ --enable-egl \
--enable-gles1 \ --enable-gles1 \
--enable-gles2 \ --enable-gles2 \
--with-egl-platforms=x11,drm \ --with-egl-platforms=x11,drm,wayland \
--enable-driglx-direct \ --enable-driglx-direct \
--enable-dri \ --enable-dri \
--enable-shared-glapi \ --enable-gbm \
--enable-glx \ --enable-glx \
--enable-glx-tls \ --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-vdpau \
--enable-xvmc \ --enable-xvmc \
--enable-omx \
--with-clang-libdir=%{_prefix}/lib \
%ifarch arm %ifarch arm
--with-dri-drivers=swrast \ --with-dri-drivers=swrast \
--with-gallium-drivers=swrast \ --with-gallium-drivers=swrast,freedreno,vc4 \
--enable-openvg \
--enable-gallium-egl \ --enable-gallium-egl \
--disable-gallium-llvm \ --disable-gallium-llvm \
%else %else
--enable-openvg \ --enable-texture-float \
--enable-gallium-egl \
--enable-gallium-llvm \ --enable-gallium-llvm \
--with-gallium-drivers=nouveau,r300,r600,swrast \ --with-gallium-drivers=ilo,nouveau,r300,r600,radeonsi,svga,swrast \
--with-dri-drivers=i915,i965,nouveau,r200,radeon,swrast \
--enable-xa \ --enable-xa \
--enable-opencl \ --enable-opencl \
--enable-opencl-icd \ --enable-opencl-icd \
--enable-r600-llvm-compiler \
%endif %endif
# --enable-openvg \
# --enable-gallium-egl \
# --with-driver=dri \ # --with-driver=dri \
# --disable-gallium-egl \ # --disable-gallium-egl \
@ -407,19 +429,31 @@ rm -f %{buildroot}%{_libdir}/*.la
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libGL-Mesa-dri %post -n libGL-Mesa-dri
%ifarch %{_ix86}
CURRARCH=`uname -m`
if [ "$CURRARCH" = "x86_64" ]; then
ALT_APPEND="-32"
fi
%endif
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
# remove old alternative # remove old alternative
/usr/sbin/update-alternatives --remove libGL.so.1 \ /usr/sbin/update-alternatives --remove libGL.so.1 \
%{_libdir}/libGL_so.%{dri_libglver} &>/dev/null %{_libdir}/libGL_so.%{dri_libglver} &>/dev/null
/usr/sbin/update-alternatives \ /usr/sbin/update-alternatives \
--install %{_libdir}/libGL.so.1 libGL.so.1 \ --install %{_libdir}/libGL.so.1 libGL.so.1${ALT_APPEND} \
%{_libdir}/mesa/libGL.so.%{dri_libglver} 50 %{_libdir}/mesa/libGL.so.%{dri_libglver} 50
fi fi
exit 0 exit 0
%preun -n libGL-Mesa-dri %preun -n libGL-Mesa-dri
%ifarch %{_ix86}
CURRARCH=`uname -m`
if [ "$CURRARCH" = "x86_64" ]; then
ALT_APPEND="-32"
fi
%endif
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove libGL.so.1 \ /usr/sbin/update-alternatives --remove libGL.so.1${ALT_APPEND} \
%{_libdir}/mesa/libGL.so.%{dri_libglver} %{_libdir}/mesa/libGL.so.%{dri_libglver}
fi fi
exit 0 exit 0
@ -458,12 +492,15 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%post -n libMesaOpenCL -p /sbin/ldconfig %post -n libMesaOpenCL -p /sbin/ldconfig
%postun -n libMesaOpenCL -p /sbin/ldconfig %postun -n libMesaOpenCL -p /sbin/ldconfig
%post -n libwayland-egl -p /sbin/ldconfig
%postun -n libwayland-egl -p /sbin/ldconfig
%files -n libgbm %files -n libgbm
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgbm.so.* %{_libdir}/libgbm.so.*
%dir %{_libdir}/gbm #%dir %{_libdir}/gbm
%{_libdir}/gbm/gbm_gallium_drm.so #%{_libdir}/gbm/gbm_gallium_drm.so
%{_libdir}/gbm/gbm_gallium_drm.la #%{_libdir}/gbm/gbm_gallium_drm.la
#%{_libdir}/gbm/pipe_swrast.so #%{_libdir}/gbm/pipe_swrast.so
#%ifarch %{ix86} x86_64 #%ifarch %{ix86} x86_64
#%{_libdir}/gbm/pipe_nouveau.so #%{_libdir}/gbm/pipe_nouveau.so
@ -480,23 +517,29 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%files -n libEGL %files -n libEGL
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libEGL.so.* %{_libdir}/libEGL.so.*
%dir %{_libdir}/egl #%dir %{_libdir}/egl
%{_libdir}/egl/egl_gallium.so #%{_libdir}/egl/egl_gallium.so
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%dir %{_libdir}/gallium-pipe %dir %{_libdir}/gallium-pipe
%{_libdir}/gallium-pipe/pipe_i965.la
%{_libdir}/gallium-pipe/pipe_i965.so
%{_libdir}/gallium-pipe/pipe_nouveau.la %{_libdir}/gallium-pipe/pipe_nouveau.la
%{_libdir}/gallium-pipe/pipe_nouveau.so %{_libdir}/gallium-pipe/pipe_nouveau.so
%{_libdir}/gallium-pipe/pipe_r300.la %{_libdir}/gallium-pipe/pipe_r300.la
%{_libdir}/gallium-pipe/pipe_r300.so %{_libdir}/gallium-pipe/pipe_r300.so
%{_libdir}/gallium-pipe/pipe_r600.la %{_libdir}/gallium-pipe/pipe_r600.la
%{_libdir}/gallium-pipe/pipe_r600.so %{_libdir}/gallium-pipe/pipe_r600.so
%{_libdir}/gallium-pipe/pipe_radeonsi.la
%{_libdir}/gallium-pipe/pipe_radeonsi.so
%{_libdir}/gallium-pipe/pipe_swrast.la %{_libdir}/gallium-pipe/pipe_swrast.la
%{_libdir}/gallium-pipe/pipe_swrast.so %{_libdir}/gallium-pipe/pipe_swrast.so
%{_libdir}/gallium-pipe/pipe_vmwgfx.la
%{_libdir}/gallium-pipe/pipe_vmwgfx.so
%endif %endif
%files -n libEGL-devel %files -n libEGL-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/egl/egl_gallium.la #%{_libdir}/egl/egl_gallium.la
%{_libdir}/pkgconfig/egl.pc %{_libdir}/pkgconfig/egl.pc
%files -n libGL-Mesa-dri %files -n libGL-Mesa-dri
@ -506,6 +549,8 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/mesa/libGL.so.* %{_libdir}/mesa/libGL.so.*
%{_libdir}/bellagio/libomx_mesa.la %{_libdir}/bellagio/libomx_mesa.la
%{_libdir}/bellagio/libomx_mesa.so %{_libdir}/bellagio/libomx_mesa.so
%dir %{_libdir}/d3d
%{_libdir}/d3d/d3dadapter9.so.*
#%{_libdir}/bellagio/libomx_nouveau.la #%{_libdir}/bellagio/libomx_nouveau.la
#%{_libdir}/bellagio/libomx_nouveau.so #%{_libdir}/bellagio/libomx_nouveau.so
#%{_libdir}/bellagio/libomx_r600.la #%{_libdir}/bellagio/libomx_r600.la
@ -533,12 +578,17 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%dir %{_includedir}/GL/internal %dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h %{_includedir}/GL/internal/dri_interface.h
%{_includedir}/GL/wglext.h %{_includedir}/GL/wglext.h
%dir %{_includedir}/d3dadapter
%{_includedir}/d3dadapter/*.h
#%{_libdir}/libGL.la #%{_libdir}/libGL.la
%{_libdir}/libGL.so %{_libdir}/libGL.so
%{_libdir}/libEGL.so %{_libdir}/libEGL.so
%{_libdir}/libglapi.so %{_libdir}/libglapi.so
%{_libdir}/d3d/d3dadapter9.la
%{_libdir}/d3d/d3dadapter9.so
#%{_libdir}/libdricore%{version}*.so #%{_libdir}/libdricore%{version}*.so
#%{_libdir}/dri/*.la %{_libdir}/dri/gallium_drv_video.la
%{_libdir}/pkgconfig/d3d.pc
%{_libdir}/pkgconfig/dri.pc %{_libdir}/pkgconfig/dri.pc
%{_libdir}/pkgconfig/gl.pc %{_libdir}/pkgconfig/gl.pc
@ -549,11 +599,13 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/vdpau/libvdpau_nouveau.so %{_libdir}/vdpau/libvdpau_nouveau.so
%{_libdir}/vdpau/libvdpau_nouveau.so.* %{_libdir}/vdpau/libvdpau_nouveau.so.*
#%{_libdir}/vdpau/libvdpau_r300.la #%{_libdir}/vdpau/libvdpau_r300.la
#%{_libdir}/vdpau/libvdpau_r300.so %{_libdir}/vdpau/libvdpau_r300.so
#%{_libdir}/vdpau/libvdpau_r300.so.* %{_libdir}/vdpau/libvdpau_r300.so.*
#%{_libdir}/vdpau/libvdpau_r600.la #%{_libdir}/vdpau/libvdpau_r600.la
%{_libdir}/vdpau/libvdpau_r600.so %{_libdir}/vdpau/libvdpau_r600.so
%{_libdir}/vdpau/libvdpau_r600.so.* %{_libdir}/vdpau/libvdpau_r600.so.*
%{_libdir}/vdpau/libvdpau_radeonsi.so
%{_libdir}/vdpau/libvdpau_radeonsi.so.*
%endif %endif
#%{_libdir}/vdpau/libvdpau_softpipe.la #%{_libdir}/vdpau/libvdpau_softpipe.la
#%{_libdir}/vdpau/libvdpau_softpipe.so #%{_libdir}/vdpau/libvdpau_softpipe.so
@ -614,16 +666,25 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%{_libdir}/libOSMesa.so %{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc %{_libdir}/pkgconfig/osmesa.pc
%files -n libOpenVG #%files -n libOpenVG
%defattr(-,root,root) #%defattr(-,root,root)
%{_libdir}/libOpenVG.so.* #%{_libdir}/libOpenVG.so.*
%files -n libOpenVG-devel #%files -n libOpenVG-devel
#%defattr(-,root,root)
#%dir %{_includedir}/VG
#%{_includedir}/VG/*.h
#%{_libdir}/libOpenVG.so
#%{_libdir}/pkgconfig/vg.pc
%files -n libwayland-egl
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/VG %{_libdir}/libwayland-egl.so.*
%{_includedir}/VG/*.h
%{_libdir}/libOpenVG.so %files -n libwayland-egl-devel
%{_libdir}/pkgconfig/vg.pc %defattr(-,root,root)
%{_libdir}/libwayland-egl.so
%{_libdir}/pkgconfig/wayland-egl.pc
%ifnarch arm %ifnarch arm
%files -n libxatracker %files -n libxatracker
@ -644,6 +705,24 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
%endif %endif
%changelog %changelog
* Sat Jun 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 10.5.7-2mamba
- support for lib32 alternative when installed on x86_64
* Sun Jun 07 2015 Automatic Build System <autodist@mambasoft.it> 10.5.7-1mamba
- automatic version update by autodist
* Fri Jun 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 10.5.6-1mamba
- update to 10.5.6
* Sat Mar 28 2015 Automatic Build System <autodist@mambasoft.it> 10.4.7-1mamba
- automatic update by autodist
* Sat Feb 21 2015 Automatic Build System <autodist@mambasoft.it> 10.4.5-1mamba
- automatic version update by autodist
* Fri Feb 13 2015 Automatic Build System <autodist@mambasoft.it> 10.4.4-1mamba
- automatic version update by autodist
* Sat Dec 06 2014 Automatic Build System <autodist@mambasoft.it> 10.3.5-1mamba * Sat Dec 06 2014 Automatic Build System <autodist@mambasoft.it> 10.3.5-1mamba
- automatic version update by autodist - automatic version update by autodist