summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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