!21 adopt to new cmake macro

From: @fundawang 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
This commit is contained in:
openeuler-ci-bot 2024-11-25 11:25:33 +00:00 committed by Gitee
commit 979aea71a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 12 additions and 7 deletions

View File

@ -38,11 +38,11 @@
Name: %{pkg_name}
Version: %{openmp_version}
Release: 4
Release: 5
Summary: OpenMP runtime for clang
License: Apache License 2.0
URL: http://openmp.llvm.org
License: Apache-2.0
URL: https://openmp.llvm.org
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{openmp_version}/%{openmp_srcdir}.tar.xz
BuildRequires: gcc gcc-c++
@ -109,14 +109,12 @@ OpenMP header files.
%endif
-DCMAKE_SKIP_RPATH:BOOL=ON
%ninja_build
%cmake_build
%install
%ninja_install
%cmake_install
rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%check
%files
%license LICENSE.TXT
%{install_libdir}/libomp.so
@ -152,6 +150,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/libomptarget.so
%changelog
* Sun Nov 10 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-5
- adopt to new cmake macro
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-4
- Add BiSheng Autotuner support.

4
openmp.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: llvm/llvm-project
tag_prefix: ^llvmorg-
separator: .