summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2021-07-29 19:34:22 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:56 +0800
commitf34454cd6fcfcff435367e99b9af64792870c912 (patch)
tree2bf2017e5c71def82d9aa8099dda27bbc7a4fc4e /packaging
parent08f86b726643a01e4dafb6dcdca4245c547b7b4d (diff)
downloadmesa-f34454cd6fcfcff435367e99b9af64792870c912.tar.gz
mesa-f34454cd6fcfcff435367e99b9af64792870c912.tar.bz2
mesa-f34454cd6fcfcff435367e99b9af64792870c912.zip
Change the build prefix to /hal/
Change-Id: I9fbcdf30f04cc643ab9b4d674529d485aedff00e Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/mesa.spec39
1 files changed, 17 insertions, 22 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index 3656ecc3e85..aaf1677202f 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -64,10 +64,11 @@ cp %{SOURCE1002} .
%build
%{?asan:/usr/bin/gcc-unforce-options}
mkdir build
-meson --prefix %{_prefix} build/ \
+
+meson --prefix %{_hal_prefix} build/ \
-Dc_link_args="-lttrace" \
-Dcpp_link_args="-lttrace" \
- -Dlibdir=%{_libdir} \
+ -Dlibdir=%{_hal_libdir} \
-Dgallium-va=false \
-Dgallium-vdpau=false \
-Dgallium-xa=false \
@@ -96,21 +97,17 @@ ninja -C build/
%install
DESTDIR=%{buildroot} ninja -C build/ install
mkdir -p %{buildroot}%{_hal_libdir}/driver
+mkdir -p %{buildroot}%{_hal_libdir}/dri
+mkdir -p %{buildroot}%{_hal_prefix}/share/vulkan/icd.d
-cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/
-cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/
-cp -a %{buildroot}%{_libdir}/libglapi* %{buildroot}%{_hal_libdir}/
-mv %{buildroot}%{_libdir}/dri %{buildroot}%{_hal_libdir}/dri
+cp -a %{buildroot}%{_hal_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/
+cp -a %{buildroot}%{_hal_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/
-%if "%{USE_VULKAN}" == "1"
-mv %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_hal_libdir}/
-ln -sf %{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so
-%endif
-ln -sf %{_hal_libdir}/dri %{buildroot}%{_libdir}/dri
-ln -sf %{_hal_libdir}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0
+mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d
+cp 99-GPU-Acceleration.rules %{buildroot}%{_hal_libdir}/udev/rules.d
-mkdir -p %{buildroot}%{_udevrulesdir}
-cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
+mkdir -p %{buildroot}%{_hal_prefix}/share/licenses/%{name}
+cp COPYING %{buildroot}%{_hal_prefix}/share/licenses/%{name}/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -119,18 +116,16 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
%define _unpackaged_files_terminate_build 0
%manifest %{name}.manifest
%defattr(-,root,root)
-%license COPYING
-%{_libdir}/libglapi*
+%{_hal_prefix}/share/licenses/%{name}/COPYING
%{_hal_libdir}/libglapi*
%{_hal_libdir}/driver/*
-%{_hal_libdir}/dri/*
-%{_libdir}/dri
+%{_hal_libdir}/dri/v3d_dri.so
+%{_hal_libdir}/dri/vc4_dri.so
%if "%{USE_GBM}" == "1"
-%{_libdir}/libgbm*
+%{_hal_libdir}/libgbm*
%endif
%if "%{USE_VULKAN}" == "1"
%{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so
-%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so
-/usr/share/vulkan/icd.d/*
+%{_hal_prefix}/share/vulkan/icd.d/*
%endif
-%{_udevrulesdir}/99-GPU-Acceleration.rules
+%{_hal_libdir}/udev/rules.d/99-GPU-Acceleration.rules