From b720826e7a5cf03636b1646e5c44ac4dbe5259d9 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 1 Jan 2018 23:11:06 +0100 Subject: [PATCH] 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 -- 2.43.0