fix rpath error

Signed-off-by: lauyarn <liuyang.nb@outlook.com>
(cherry picked from commit ac77417f534747105e97343f63f8399b805cef68)
This commit is contained in:
lauyarn 2023-12-13 09:25:20 +00:00 committed by openeuler-sync-bot
parent f0ff078e61
commit 91e298f744

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