fix typo in %ix86 for multiarch libGL.so.1 link support [release 18.2.0-2mamba;Sat Sep 22 2018]
This commit is contained in:
parent
288b56ed25
commit
bb8ee3168d
42
Mesa.spec
42
Mesa.spec
@ -10,7 +10,7 @@
|
||||
|
||||
Name: Mesa
|
||||
Epoch: 1
|
||||
Version: 18.1.8
|
||||
Version: 18.2.0
|
||||
Release: 2mamba
|
||||
Summary: A 3-D graphics library with an API which is very similar to that of OpenGL
|
||||
Group: System/Libraries
|
||||
@ -334,6 +334,8 @@ Mesa vulkan drivers.
|
||||
|
||||
%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
|
||||
@ -342,6 +344,7 @@ sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
|
||||
#%patch3 -p1
|
||||
|
||||
%build
|
||||
#:<< _EOF
|
||||
#./autogen.sh \
|
||||
|
||||
#export CXXFLAGS="%{optflags} -std=c++11"
|
||||
@ -382,7 +385,10 @@ sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
|
||||
--enable-xa \
|
||||
--enable-opencl \
|
||||
--enable-opencl-icd \
|
||||
CXX=clang++ CC=clang
|
||||
CXX=clang++ CC=clang \
|
||||
%ifarch %{ix86}
|
||||
LDFLAGS="-lm"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# 18.1.8: --with-gallium-driver=swr disabled due to crashes on swrast
|
||||
@ -395,6 +401,8 @@ sed -i 's|default_driver="xlib"|default_driver="dri"|' configure
|
||||
|
||||
# --enable-libglvnd \
|
||||
|
||||
#_EOF
|
||||
|
||||
%make
|
||||
# -j1
|
||||
|
||||
@ -447,7 +455,7 @@ rm -f %{buildroot}%{_libdir}/*.la
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post -n libGL-Mesa-dri
|
||||
%ifarch %{_ix86}
|
||||
%ifarch %{ix86}
|
||||
CURRARCH=`uname -m`
|
||||
if [ "$CURRARCH" = "x86_64" ]; then
|
||||
ALT_APPEND="-32"
|
||||
@ -455,7 +463,7 @@ fi
|
||||
%endif
|
||||
if [ $1 -ge 1 ]; then
|
||||
# remove old alternative
|
||||
/usr/sbin/update-alternatives --remove libGL.so.1 \
|
||||
/usr/sbin/update-alternatives --remove libGL.so.1${ALT_APPEND} \
|
||||
%{_libdir}/libGL_so.%{dri_libglver} &>/dev/null
|
||||
/usr/sbin/update-alternatives \
|
||||
--install %{_libdir}/libGL.so.1 libGL.so.1${ALT_APPEND} \
|
||||
@ -464,7 +472,7 @@ fi
|
||||
exit 0
|
||||
|
||||
%preun -n libGL-Mesa-dri
|
||||
%ifarch %{_ix86}
|
||||
%ifarch %{ix86}
|
||||
CURRARCH=`uname -m`
|
||||
if [ "$CURRARCH" = "x86_64" ]; then
|
||||
ALT_APPEND="-32"
|
||||
@ -510,8 +518,8 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
|
||||
%post -n libMesaOpenCL -p /sbin/ldconfig
|
||||
%postun -n libMesaOpenCL -p /sbin/ldconfig
|
||||
|
||||
%post -n libwayland-egl-Mesa -p /sbin/ldconfig
|
||||
%postun -n libwayland-egl-Mesa -p /sbin/ldconfig
|
||||
#%post -n libwayland-egl-Mesa -p /sbin/ldconfig
|
||||
#%postun -n libwayland-egl-Mesa -p /sbin/ldconfig
|
||||
|
||||
%files -n libgbm
|
||||
%defattr(-,root,root)
|
||||
@ -710,14 +718,14 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
|
||||
#%{_libdir}/libOpenVG.so
|
||||
#%{_libdir}/pkgconfig/vg.pc
|
||||
|
||||
%files -n libwayland-egl-Mesa
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libwayland-egl.so.*
|
||||
#%files -n libwayland-egl-Mesa
|
||||
#%defattr(-,root,root)
|
||||
#%{_libdir}/libwayland-egl.so.*
|
||||
|
||||
%files -n libwayland-egl-Mesa-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libwayland-egl.so
|
||||
%{_libdir}/pkgconfig/wayland-egl.pc
|
||||
#%files -n libwayland-egl-Mesa-devel
|
||||
#%defattr(-,root,root)
|
||||
#%{_libdir}/libwayland-egl.so
|
||||
#%{_libdir}/pkgconfig/wayland-egl.pc
|
||||
|
||||
%ifnarch arm
|
||||
%files -n libxatracker
|
||||
@ -738,6 +746,12 @@ sed -i "s|%{_prefix}/lib/libGL.la||" %{_libdir}/*.la
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Sep 22 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 18.2.0-2mamba
|
||||
- fix typo in %ix86 for multiarch libGL.so.1 link support
|
||||
|
||||
* Sat Sep 15 2018 Automatic Build System <autodist@mambasoft.it> 18.2.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Sep 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 18.1.8-2mamba
|
||||
- disable --with-gallium-driver=swr due to crashes on swrast (seen on Virtualbox guest)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user