[packages/Mesa] package libEGL_mesa when building with glvnd

atler atler at pld-linux.org
Mon Jan 1 23:26:24 CET 2018


commit b720826e7a5cf03636b1646e5c44ac4dbe5259d9
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jan 1 23:11:06 2018 +0100

    package libEGL_mesa when building with glvnd

 Mesa.spec | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/Mesa.spec b/Mesa.spec
index bb1cb95..25bfa06 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -1418,12 +1418,22 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with egl}
 %files libEGL
 %defattr(644,root,root,755)
+%if %{with glvnd}
+%attr(755,root,root) %{_libdir}/libEGL_mesa.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libEGL_mesa.so.0
+%{_datadir}/glvnd/egl_vendor.d/50_mesa.json
+%else
 %attr(755,root,root) %{_libdir}/libEGL.so.*.*
 %attr(755,root,root) %ghost %{_libdir}/libEGL.so.1
+%endif
 
 %files libEGL-devel
 %defattr(644,root,root,755)
+%if %{with glvnd}
+%attr(755,root,root) %{_libdir}/libEGL_mesa.so
+%else
 %attr(755,root,root) %{_libdir}/libEGL.so
+%endif
 %dir %{_includedir}/EGL
 %{_includedir}/EGL/egl.h
 %{_includedir}/EGL/eglext.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/b720826e7a5cf03636b1646e5c44ac4dbe5259d9



More information about the pld-cvs-commit mailing list