From 445140ebea2ac3329e84db65e7413a2c032e84ea Mon Sep 17 00:00:00 2001 From: wangqiang Date: Tue, 1 Jul 2025 16:17:38 +0800 Subject: [PATCH] Replaced the hardcoded /opt/openEuler path Replaced the hardcoded /opt/openEuler path with /opt/%{_vendor}, making the SCL installation prefix more generic and reusable across different vendor platforms. (cherry picked from commit 659510334db0e1e305d733f15f505cbb232d7a93) --- llvm-toolset-17.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/llvm-toolset-17.spec b/llvm-toolset-17.spec index dda9613..81d5691 100644 --- a/llvm-toolset-17.spec +++ b/llvm-toolset-17.spec @@ -49,7 +49,7 @@ %global pkg_suffix %{nil} %global exec_suffix %{nil} %else -%global _scl_prefix /opt/openEuler +%global _scl_prefix /opt/%{_vendor} %{?scl:%scl_package %scl} %{!?scl:%global scl_prefix llvm-toolset-%{maj_ver}-} %{!?scl:%global pkg_name %{name}} @@ -148,9 +148,9 @@ #region packages #region main package -Name: llvm-toolset-%{maj_ver} +Name: llvm-toolset-%{maj_ver} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 9 +Release: 10 Summary: The Low Level Virtual Machine License: NCSA @@ -2776,6 +2776,9 @@ fi #endregion files %changelog +* Tue Jul 01 2025 Wang Qiang - 17.0.6-10 +- Replaced the hardcoded /opt/openEuler path with /opt/\%{_vendor} + * Wed Jun 25 2025 liyunfei liyunfei33@huawei.com - 17.0.6-9 - update to llvm-for-oe-17.0.6-2506.0.4 -- Gitee