From 14744395ec48b7fea9f9016bf8514399d17f4e75 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Mon, 3 Mar 2025 13:28:48 +0000 Subject: [PATCH] Remove python pack without sys_llvm --- llvm-toolset-19.spec | 78 +++++++++++--------------------------------- 1 file changed, 19 insertions(+), 59 deletions(-) diff --git a/llvm-toolset-19.spec b/llvm-toolset-19.spec index e421915..f2c0efc 100644 --- a/llvm-toolset-19.spec +++ b/llvm-toolset-19.spec @@ -149,7 +149,7 @@ #region main package Name: llvm-toolset-%{maj_ver} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 3 +Release: 4 Summary: The Low Level Virtual Machine License: NCSA @@ -559,80 +559,37 @@ Shared libraries for LLD. #endregion LLD packages -#region LLDB packages -%if %{with lldb} -%package -n %{pkg_name_lldb} -Summary: Next generation high-performance debugger -License: Apache-2.0 WITH LLVM-exception OR NCSA -URL: http://lldb.llvm.org/ - -Requires: %{pkg_name_clang}-libs%{?_isa} = %{version}-%{release} -Requires: %{?scl_prefix}python3-lldb +#region LLDB packages %if %{with lldb} %package -n %{pkg_name_lldb} Summary: Next generation high-performance debugger License: Apache-2.0 WITH LLVM-exception OR NCSA URL: http://lldb.llvm.org/ -%description -n %{pkg_name_lldb} -LLDB is a next generation, high-performance debugger. It is built as a set -of reusable components which highly leverage existing libraries in the -larger LLVM Project, such as the Clang expression parser and LLVM -disassembler. +Requires: %{pkg_name_clang}-libs%{?_isa} = %{version}-%{release} %if %{with sys_llvm} Requires: python%{python3_pkgversion}-lldb %endif -%package -n %{pkg_name_lldb}-devel -Summary: Development header files for LLDB -Requires: %{pkg_name_lldb}%{?_isa} = %{version}-%{release} +%description -n %{pkg_name_lldb} LLDB is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler. -%description -n %{pkg_name_lldb}-devel -The package contains header files for the LLDB debugger. +%package -n %{pkg_name_lldb}-devel Summary: Development header files for LLDB Requires: %{pkg_name_lldb}%{?_isa} = %{version}-%{release} -%package -n %{?scl_prefix}python3-lldb -%{?python_provide:%python_provide python3-lldb} -Summary: Python module for LLDB +%description -n %{pkg_name_lldb}-devel The package contains header files for the LLDB debugger. %if %{with sys_llvm} %package -n python%{python3_pkgversion}-lldb %{?python_provide:%python_provide python%{python3_pkgversion}-lldb} Summary: Python module for LLDB Requires: %{pkg_name_lldb}%{?_isa} = %{version}-%{release} -%description -n %{?scl_prefix}python3-lldb -The package contains the LLDB Python module. -%endif -#endregion LLDB packages +%description -n python%{python3_pkgversion}-lldb The package contains the LLDB Python module. %endif %endif #endregion LLDB packages -#region MLIR packages -%if %{with mlir} -%package -n %{pkg_name_mlir} -Summary: Multi-Level Intermediate Representation Overview -License: Apache-2.0 WITH LLVM-exception -URL: http://mlir.llvm.org +#region MLIR packages %if %{with mlir} %package -n %{pkg_name_mlir} Summary: Multi-Level Intermediate Representation Overview License: Apache-2.0 WITH LLVM-exception URL: http://mlir.llvm.org -%description -n %{pkg_name_mlir} -The MLIR project is a novel approach to building reusable and extensible -compiler infrastructure. MLIR aims to address software fragmentation, -improve compilation for heterogeneous hardware, significantly reduce -the cost of building domain specific compilers, and aid in connecting -existing compilers together. +%description -n %{pkg_name_mlir} The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the cost of building domain specific compilers, and aid in connecting existing compilers together. -%package -n %{pkg_name_mlir}-static -Summary: MLIR static files -Requires: %{pkg_name_mlir}%{?_isa} = %{version}-%{release} +%package -n %{pkg_name_mlir}-static Summary: MLIR static files Requires: %{pkg_name_mlir}%{?_isa} = %{version}-%{release} -%description -n %{pkg_name_mlir}-static -MLIR static files. +%description -n %{pkg_name_mlir}-static MLIR static files. -%package -n %{pkg_name_mlir}-devel -Summary: MLIR development files -Requires: %{pkg_name_mlir}%{?_isa} = %{version}-%{release} -Requires: %{pkg_name_mlir}-static%{?_isa} = %{version}-%{release} +%package -n %{pkg_name_mlir}-devel Summary: MLIR development files Requires: %{pkg_name_mlir}%{?_isa} = %{version}-%{release} Requires: %{pkg_name_mlir}-static%{?_isa} = %{version}-%{release} -%description -n %{pkg_name_mlir}-devel -MLIR development files. +%description -n %{pkg_name_mlir}-devel MLIR development files. -%package -n %{?scl_prefix}python3-mlir -%{?python_provide:%python_provide python3-mlir} -Summary: MLIR python bindings +%if %{with sys_llvm} %package -n python%{python3_pkgversion}-mlir %{?python_provide:%python_provide python%{python3_pkgversion}-mlir} Summary: MLIR python bindings -Requires: python3 -Requires: python3-numpy +Requires: python%{python3_pkgversion} Requires: python%{python3_pkgversion}-numpy -%description -n %{?scl_prefix}python3-mlir -MLIR python bindings. -%endif -#endregion MLIR packages +%description -n python%{python3_pkgversion}-mlir MLIR python bindings. %endif %endif #endregion MLIR packages #region libcxx packages %if %{with libcxx} @@ -2788,6 +2745,9 @@ fi #endregion files %changelog +* Mon Mar 3 2025 liyunfei liyunfei33@huawei.com - 19.1.7-4 +- Remove python pack without sys_llvm + * Fri Feb 28 2025 jchzhou - 19.1.7-3 - Backport riscv64 support for offload host plugin - Exclude packaging non-supported liborc_rt.a for riscv64 -- Gitee