diff --git a/llvm-toolset-19.spec b/llvm-toolset-19.spec index bbd53dd562d56b2cdea9b9e94bd01e39a178565b..e9a1afb8dd24b74ddf263e14b30ab01b1f73fda7 100644 --- a/llvm-toolset-19.spec +++ b/llvm-toolset-19.spec @@ -4,7 +4,7 @@ %global min_ver 1 %global patch_ver 7 -%global os_version %{lua: print(tonumber(rpm.expand("%{dist}"):match("oe(%d+)") or 9999))} +%global os_version %{lua: print(tonumber(rpm.expand("%{dist}"):match("oe(%d+)") or 2403))} # Build sys_llvm packages or compat packages %bcond_with sys_llvm @@ -160,7 +160,7 @@ #region main package Name: llvm-toolset-%{maj_ver} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 14 +Release: 15 Summary: The Low Level Virtual Machine License: NCSA @@ -768,6 +768,11 @@ execution profile gathered by sampling profiler, such as Linux `perf` tool. # shebang_fix part removed +# update Gnu target triples, make it friendly to all openEuler based distribution +%if "%{_vendor}" != "openEuler" +sed -i 's/"\([a-zA-Z0-9_-]\+\)-openEuler-linux"/"\1-openEuler-linux", "\1-%{_vendor}-linux"/g' %{build_src_dir}/clang/lib/Driver/ToolChains/Gnu.cpp +%endif + #endregion prep #region build @@ -2960,6 +2965,9 @@ fi #endregion files %changelog +* Fri Oct 17 2025 liyunfei - 19.1.7-15 +- update target triples for all openEuler based distribution. + * Tue Oct 14 2025 wangqiang - 19.1.7-14 - Replaced the hardcoded /opt/openEuler path with /opt/\%{_vendor}