!34 [sync] PR-32: fix rpath error

From: @openeuler-sync-bot 
Reviewed-by: @wizardWithSword, @xqm227 
Signed-off-by: @xqm227
This commit is contained in:
openeuler-ci-bot 2024-06-14 01:53:56 +00:00 committed by Gitee
commit 45979ccf3f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: libkae
Summary: Huawei Kunpeng Accelerator Engine
Version: 1.2.10
Release: 6
Release: 7
License: Apache-2.0
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
@ -13,7 +13,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: /usr/local/lib/engines-1.1
Conflicts: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
BuildRequires: libwd >= %{version} openssl-devel sed
BuildRequires: libwd >= %{version} openssl-devel sed chrpath
Requires: openssl
ExclusiveArch: aarch64
@ -34,6 +34,7 @@ make
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
chrpath -d KAE/libkae.so.%{version}
install -b -m755 KAE/libkae.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
%clean
@ -68,6 +69,9 @@ fi
/sbin/ldconfig
%changelog
* Wed Dec 13 2023 liuyang <liuyang645@huawei.com> 1.2.10-7
- fix rpath error
* Mon Apr 17 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> 1.2.10-6
- solve libkae build problem in openEuler:22.03:LTS:Next