126 Star 1 Fork 15

src-openEuler/libkae

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kae.spec 2.36 KB
一键复制 编辑 原始数据 按行查看 历史
caodongxia 提交于 2021-08-12 14:22 . Fix pthread_yield is deprecated
%global debug_package %{nil}
Name: libkae
Summary: Huawei Kunpeng Accelerator Engine
Version: 1.2.10
Release: 5
License: Apache-2.0
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
ExclusiveOS: linux
URL: https://support.huawei.com
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
Requires: openssl
ExclusiveArch: aarch64
Patch0001: 0001-Don-t-redefine-gettid-if-glibc-provides-it.patch
Patch0002: 0002-fix-pthread_yield.patch
%description
This package contains the Huawei Kunpeng Accelerator Engine
%prep
%autosetup -c -n %{name}-%{version} -p1
%build
cd KAE
chmod +x configure
./configure
make
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
install -b -m755 KAE/libkae.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(755,root,root)
/usr/local/lib/engines-1.1/libkae.so.%{version}
%pre
if [ "$1" = "2" ] ; then #2: update
rm -rf $RPM_INSTALL_PREFIX/kae.so > /dev/null 2>&1 || true
rm -rf $RPM_INSTALL_PREFIX/kae.so.0 > /dev/null 2>&1 || true
fi
%post
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
ln -sf $RPM_INSTALL_PREFIX/libkae.so.%{version} $RPM_INSTALL_PREFIX/kae.so
ln -sf $RPM_INSTALL_PREFIX/libkae.so.%{version} $RPM_INSTALL_PREFIX/kae.so.0
fi
/sbin/ldconfig
%preun
if [ "$1" = "0" ] ; then #0: uninstall
rm -rf $RPM_INSTALL_PREFIX/kae.so > /dev/null 2>&1 || true
rm -rf $RPM_INSTALL_PREFIX/kae.so.0 > /dev/null 2>&1 || true
rm -f /var/log/kae.log > /dev/null 2>&1 || true
rm -f /var/log/kae.log.old > /dev/null 2>&1 || true
fi
%postun
/sbin/ldconfig
%changelog
* Thu Aug 12 2021 caodongxia <[email protected]> 1.2.10-5
- Fix pthread_yield is deprecated
* Tue Jul 28 2020 lingsheng <[email protected]> 1.2.10-4
- Check glibc version to avoid redefine gettid()
* Sun Mar 15 2020 zhangtao <[email protected]> 1.2.10-3
- Specify aarch64 compilation
* Tue Mar 03 2020 catastrowings <[email protected]> 1.2.10-2
- openEuler init
* Tue Jan 07 2020 jinbinhua <[email protected]> 1.2.7-1
- First Spec Version Include kunpeng_engine Code
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libkae.git
[email protected]:src-openeuler/libkae.git
src-openeuler
libkae
libkae
master

搜索帮助