diff options
author | Joonbum Ko <joonbum.ko@samsung.com> | 2021-07-29 19:34:22 +0900 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2023-02-21 14:32:55 +0800 |
commit | 3e8b870d6d14d023c57bd8c7e7a827964fe11f2d (patch) | |
tree | 1c2b25bd7649c508cefe08b5fee2b9e60d4e5466 | |
parent | 658e76a3c686602f8d9d9b575a35d86c1f0051f3 (diff) | |
download | mesa-3e8b870d6d14d023c57bd8c7e7a827964fe11f2d.tar.gz mesa-3e8b870d6d14d023c57bd8c7e7a827964fe11f2d.tar.bz2 mesa-3e8b870d6d14d023c57bd8c7e7a827964fe11f2d.zip |
Change the build prefix to /hal/
Change-Id: I9fbcdf30f04cc643ab9b4d674529d485aedff00e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r-- | packaging/mesa.spec | 39 |
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 |