Add versioned macros

From: 1382930328
This commit is contained in:
Nikita Popov 2024-07-31 12:40:12 +00:00
parent 56b99b7123
commit 2d1a77d42a
2 changed files with 4 additions and 2 deletions

View file

@ -378,9 +378,7 @@
%dir %{install_prefix}/lib/clang/%{maj_ver}/include/
%dir %{install_prefix}/lib/clang/%{maj_ver}/lib/
%dir %{install_prefix}/lib/clang/%{maj_ver}/share/
%if %{without compat_build}
%{_rpmmacrodir}/macros.%{pkg_name_clang}
%endif
%files -n %{pkg_name_clang}-analyzer
%license clang/LICENSE.TXT

View file

@ -195,6 +195,10 @@ rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
# populated by other packages
mkdir -p %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/{bin,include,lib,share}/
#Add versioned resource directory macro
mkdir -p %{buildroot}%{_rpmmacrodir}/
echo "%%clang%{maj_ver}_resource_dir %%{_prefix}/lib/clang/%{maj_ver}" >> %{buildroot}%{_rpmmacrodir}/macros.%{name}
# Install config file for clang
%if %{maj_ver} >=18
mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/