diff --git a/files.spec.inc b/files.spec.inc index 41f5824..e31e2ac 100644 --- a/files.spec.inc +++ b/files.spec.inc @@ -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 diff --git a/install.spec.inc b/install.spec.inc index e64c103..b10b2c4 100644 --- a/install.spec.inc +++ b/install.spec.inc @@ -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}/