2021-11-22 21:16:03 +08:00
|
|
|
Name: uadk_engine
|
|
|
|
|
Summary: UADK Accelerator Engine
|
2024-01-18 12:45:33 +00:00
|
|
|
Version: 1.3.0
|
2023-06-21 14:06:45 +08:00
|
|
|
Release: 1
|
2021-11-22 21:16:03 +08:00
|
|
|
License: Apache-2.0
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
|
ExclusiveOS: linux
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
Prefix: /usr/local/lib/engines-1.1
|
|
|
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
2024-01-18 12:45:33 +00:00
|
|
|
BuildRequires: libwd >= 2.6.0
|
|
|
|
|
BuildRequires: compat-openssl11-devel sed autoconf automake libtool numactl-devel
|
2021-11-22 21:16:03 +08:00
|
|
|
ExclusiveArch: aarch64
|
|
|
|
|
|
2024-01-18 12:45:33 +00:00
|
|
|
Patch0001: 0001-v1-dh-add-iova_map-and-iova_unmap-ops.patch
|
|
|
|
|
Patch0002: 0002-uadk_util-fix-clang-build-error.patch
|
|
|
|
|
Patch0003: 0003-uadk_engine-add-secure-compilation-option.patch
|
2021-12-10 10:04:38 +08:00
|
|
|
|
2021-11-22 21:16:03 +08:00
|
|
|
%description
|
|
|
|
|
This package contains the UADK Accelerator Engine
|
|
|
|
|
|
2024-01-18 12:45:33 +00:00
|
|
|
%global debug_package %{nil}
|
2021-11-22 21:16:03 +08:00
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -i
|
|
|
|
|
chmod +x configure
|
|
|
|
|
./configure --enable-kae
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
|
|
|
|
|
install -b -m755 src/.libs/uadk_engine.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/uadk_engine.so.%{version}
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
if [ "$1" = "2" ] ; then #2: update
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so.0 > /dev/null 2>&1 || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
|
|
|
|
|
ln -sf $RPM_INSTALL_PREFIX/uadk_engine.so.%{version} $RPM_INSTALL_PREFIX/uadk_engine.so
|
|
|
|
|
ln -sf $RPM_INSTALL_PREFIX/uadk_engine.so.%{version} $RPM_INSTALL_PREFIX/uadk_engine.so.0
|
|
|
|
|
fi
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ "$1" = "0" ] ; then #0: uninstall
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/uadk_engine.so.0 > /dev/null 2>&1 || true
|
|
|
|
|
rm -f /var/log/uadk_engine.log > /dev/null 2>&1 || true
|
|
|
|
|
rm -f /var/log/uadk_engine.log.old > /dev/null 2>&1 || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-18 12:45:33 +00:00
|
|
|
* Mon Jan 22 2024 Zhangfei Gao <zhangfei.gao@linaro.org> 1.3.0-1
|
|
|
|
|
- uadk_eingine: update to 1.3.0
|
|
|
|
|
|
2023-06-21 14:06:45 +08:00
|
|
|
* Tue Aug 22 2023 JiangShui Yang <yangjiangshui@h-partners.com> 1.2.0-1
|
|
|
|
|
- Backport uadk engine patch form v1.0.1 to 1.2.0
|
|
|
|
|
|
2023-03-20 10:10:16 +08:00
|
|
|
* Mon Mar 20 2023 linwenkai <linwenkai6@hisilicon.com> 1.0.0-10
|
|
|
|
|
- Backport uadk engine build patch
|
|
|
|
|
|
2023-02-09 15:19:01 +08:00
|
|
|
* Thu Feb 9 2023 linwenkai <linwenkai6@hisilicon.com> 1.0.0-9
|
|
|
|
|
- Fix uadk engine build compatiable problem
|
|
|
|
|
|
2022-12-18 22:30:47 -05:00
|
|
|
* Fri Dec 16 2022 JiangShui Yang <yangjiangshui@h-partners.com> 1.0.0-8
|
|
|
|
|
- Backport uadk engine patch for v1.0.1
|
|
|
|
|
|
2022-07-26 15:09:46 +08:00
|
|
|
* Tus Jul 26 2022 Yang Shen <shenyang39@huawei.com> 1.0.0-7
|
|
|
|
|
- Backport uadk engine patch from v1.0.0 to v1.0.1
|
|
|
|
|
|
2022-03-16 16:57:04 +08:00
|
|
|
* Mon Mar 21 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-6
|
|
|
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
|
|
2022-03-03 15:42:44 +08:00
|
|
|
* Thu Mar 3 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-5
|
|
|
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
|
|
2022-02-21 17:25:35 +08:00
|
|
|
* Mon Feb 21 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-4
|
|
|
|
|
- Backport uadk engine patch for v1.0.0
|
|
|
|
|
|
2022-01-12 10:27:45 +08:00
|
|
|
* Wed Jan 12 2022 linwenkai <linwenkai6@hisilicon.com> 1.0.0-3
|
|
|
|
|
- Backport uadk engine patch
|
|
|
|
|
|
2021-12-10 10:04:38 +08:00
|
|
|
* Fri Dec 10 2021 linwenkai <linwenkai6@hisilicon.com> 1.0.0-2
|
|
|
|
|
- Delete digest duplicate code
|
|
|
|
|
|
2021-11-22 21:16:03 +08:00
|
|
|
* Fri Dec 10 2021 linwenkai <linwenkai6@hisilicon.com> 1.0.0-1
|
|
|
|
|
- First Spec Version Include uadk_engine Code
|