Fix clang resource directory path

The clang resource directory is always in lib/, while this was
creating the directories in lib64 (for 64-bit symbols).

This should fix the following error on ppc64le:

> error: Directory not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240528.g1de1ee9cbabd64-1.fc39.ppc64le/usr/lib/clang/19/bin
This commit is contained in:
Nikita Popov 2024-05-28 09:25:39 +02:00 committed by Timm Bäder
parent 99dd05a90b
commit c14e5cf088

View file

@ -182,7 +182,7 @@ chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
# Create sub-directories in the clang resource directory that will be # Create sub-directories in the clang resource directory that will be
# populated by other packages # populated by other packages
mkdir -p %{buildroot}%{install_libdir}/clang/%{maj_ver}/{bin,include,lib,share}/ mkdir -p %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/{bin,include,lib,share}/
%if %{without compat_build} %if %{without compat_build}
# Add a symlink in /usr/bin to clang-format-diff # Add a symlink in /usr/bin to clang-format-diff