posttrans fix of symlinks overwritten by alternatives of nvidia driver if installed [release 1.3.2-2mamba;Sat Apr 24 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:24:41 +01:00
parent 05f2a74ff6
commit c26684410a

View File

@ -1,6 +1,6 @@
Name: libglvnd Name: libglvnd
Version: 1.3.2 Version: 1.3.2
Release: 1mamba Release: 2mamba
Summary: GL Vendor-Neutral Dispatch library Summary: GL Vendor-Neutral Dispatch library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -58,6 +58,13 @@ This package contains libraries and header files for developing applications tha
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%posttrans
# Fixes for backlast of alternatives overwriting symlinks with nvidia drivers installed
[ "`readlink -f %{_libdir}/libGL.so.1`" = "%{_libdir}/libGL.so.1.7.0" ] || ln -sf libGL.so.1.7.0 %{_libdir}/libGL.so.1
[ "`readlink -f %{_libdir}/libEGL.so.1`" = "%{_libdir}/libEGL.so.1.1.0" ] || ln -sf libEGL.so.1.1.0 %{_libdir}/libEGL.so.1
[ "`readlink -f %{_libdir}/libGLESv2.so.2`" = "%{_libdir}/libGLESv2.so.2.1.0" ] || ln -sf libGLESv2.so.2.1.0 %{_libdir}/libGLESv2.so.2
:
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libEGL.so.* %{_libdir}/libEGL.so.*
@ -96,6 +103,9 @@ This package contains libraries and header files for developing applications tha
%doc README.md %doc README.md
%changelog %changelog
* Sat Apr 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-2mamba
- posttrans fix of symlinks overwritten by alternatives of nvidia driver if installed
* Wed Apr 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-1mamba * Wed Apr 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-1mamba
- update to 1.3.2 - update to 1.3.2