summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2021-07-22 11:07:51 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:55 +0800
commitd7403250c9e17bb9e7b38237613e44d796787930 (patch)
treee6d169c9f82556352df48138a18075d95fa251f3
parentd7c8d2cb127866063284b40e07127a8c627c748b (diff)
downloadmesa-d7403250c9e17bb9e7b38237613e44d796787930.tar.gz
mesa-d7403250c9e17bb9e7b38237613e44d796787930.tar.bz2
mesa-d7403250c9e17bb9e7b38237613e44d796787930.zip
Change install path to /hal/lib
Change-Id: I7b8a8c35cf8826476c7d7401d9948b37284b3128 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--packaging/mesa.spec24
1 files changed, 18 insertions, 6 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index b40395be873..e082d9f9202 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -87,9 +87,19 @@ ninja -C build/
%install
DESTDIR=%{buildroot} ninja -C build/ install
-mkdir -p %{buildroot}%{_libdir}/driver
-cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_libdir}/driver
-cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_libdir}/driver
+mkdir -p %{buildroot}%{_hal_libdir}/driver
+mkdir -p %{buildroot}%{_hal_libdir}/dri
+
+cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/
+cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/
+cp -a %{buildroot}%{_libdir}/dri/* %{buildroot}%{_hal_libdir}/dri/
+cp -a %{buildroot}%{_libdir}/libglapi* %{buildroot}%{_hal_libdir}/
+
+%if "%{USE_VULKAN}" == "1"
+cp -a %{buildroot}%{_libdir}/libvulkan* %{buildroot}%{_hal_libdir}/
+%endif
+ln -sf %{_hal_libdir}/dri %{buildroot}%{_libdir}/dri
+ln -sf %{_hal_libdri}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0
mkdir -p %{buildroot}%{_udevrulesdir}
cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
@@ -103,11 +113,13 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
%defattr(-,root,root)
%license COPYING
%{_libdir}/libglapi*
-%{_libdir}/driver/*
-%{_libdir}/dri/*
+%{_hal_libdir}/libglapi*
+%{_hal_libdir}/driver/*
+%{_hal_libdir}/dri/*
+%{_libdir}/dri
%{_libdir}/libgbm*
%if "%{USE_VULKAN}" == "1"
-%{_libdir}/libvulkan*
+%{_hal_libdir}/libvulkan*
/usr/share/vulkan/icd.d/*
%endif
%{_udevrulesdir}/99-GPU-Acceleration.rules