Browse Source

libglvnd change ldconfig scripts

Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>
master
guibuilder_pel7x64builder0 5 years ago
parent
commit
10f0bc7191
  1. 21
      SPECS/libglvnd.spec

21
SPECS/libglvnd.spec

@ -22,7 +22,7 @@ Patch1: 0001-glx-Add-another-fallback-library-name.patch @@ -22,7 +22,7 @@ Patch1: 0001-glx-Add-another-fallback-library-name.patch
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: python3-rpm-macros
BuildRequires: python3-libxml2
#BuildRequires: python3-libxml2
BuildRequires: pkgconfig(glproto)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
@ -190,19 +190,24 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \ @@ -190,19 +190,24 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \
(cat `find . -name test-suite.log` ; exit 1)
%endif

%pre -p /sbin/ldconfig
%post -p /sbin/ldconfig

%ldconfig_scriptlets
%files
%doc README.md
%dir %{_sysconfdir}/glvnd/
%dir %{_datadir}/glvnd/
%{_libdir}/libGLdispatch.so.0*

%ldconfig_scriptlets opengl
%pre opengl -p /sbin/ldconfig
%post opengl -p /sbin/ldconfig

%files opengl
%{_libdir}/libOpenGL.so.0*

%ldconfig_scriptlets gles
%pre gles -p /sbin/ldconfig
%post gles -p /sbin/ldconfig

%files gles
%if 0%{?_without_mesa_glvnd_default}
%{_libdir}/%{name}/libGLES*.so.*
@ -210,7 +215,9 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \ @@ -210,7 +215,9 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \
%{_libdir}/libGLES*.so.*
%endif

%ldconfig_scriptlets glx
%pre glx -p /sbin/ldconfig
%post glx -p /sbin/ldconfig

%files glx
%if 0%{?_without_mesa_glvnd_default}
%{_libdir}/%{name}/libGL.so.*
@ -220,7 +227,9 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \ @@ -220,7 +227,9 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \
%{_libdir}/libGLX.so.*
%endif

%ldconfig_scriptlets egl
%pre egl -p /sbin/ldconfig
%post egl -p /sbin/ldconfig

%files egl
%dir %{_sysconfdir}/glvnd/egl_vendor.d/
%dir %{_datadir}/glvnd/egl_vendor.d/

Loading…
Cancel
Save