2024-02-22 15:27:33 +08:00
|
|
|
%define soversion 2
|
2020-01-20 16:33:54 +08:00
|
|
|
Name: libwd
|
2021-07-06 12:07:31 +00:00
|
|
|
Summary: User Space Accelerator Development Kit
|
2024-01-17 09:24:04 +00:00
|
|
|
Version: 2.6.0
|
2024-02-22 15:27:33 +08:00
|
|
|
Release: 2
|
2020-01-20 16:33:54 +08:00
|
|
|
License: Apache-2.0
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2023-09-18 20:06:02 +08:00
|
|
|
|
2024-01-17 09:24:04 +00:00
|
|
|
Patch01: 0001-uadk-fix-build-issue-of-pthread_atfork.patch
|
|
|
|
|
Patch02: 0002-uadk-fix-static-build-error.patch
|
|
|
|
|
Patch03: 0003-uadk-add-secure-compilation-option.patch
|
|
|
|
|
Patch04: 0004-uadk_tool-fix-build-error.patch
|
|
|
|
|
Patch05: 0005-v1-fix-build-error.patch
|
|
|
|
|
Patch06: 0006-wd_mempool-fix-build-error.patch
|
|
|
|
|
Patch07: 0007-wd_rsa-fix-build-error.patch
|
|
|
|
|
Patch08: 0008-test-fix-build-error.patch
|
2023-09-18 20:06:02 +08:00
|
|
|
|
2020-01-20 16:33:54 +08:00
|
|
|
Vendor: Huawei Corporation
|
|
|
|
|
ExclusiveOS: linux
|
2021-09-06 02:11:51 +00:00
|
|
|
URL: https://support.huawei.com
|
2020-03-04 02:23:50 +08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2020-01-20 16:33:54 +08:00
|
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
2024-01-17 09:24:04 +00:00
|
|
|
BuildRequires: numactl-devel, compat-openssl11-devel, zlib-devel
|
2023-09-04 15:49:59 +08:00
|
|
|
BuildRequires: automake, autoconf, libtool, chrpath
|
2019-12-26 20:57:37 +08:00
|
|
|
BuildRequires: gcc, make
|
2020-03-15 13:06:59 +08:00
|
|
|
ExclusiveArch: aarch64
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%description
|
2021-07-06 12:07:31 +00:00
|
|
|
This package contains the User Space Accelerator Library
|
|
|
|
|
for hardware accelerator, compress, symmetric encryption
|
|
|
|
|
and decryption, asymmetric encryption and decryption.
|
2019-12-26 20:57:37 +08:00
|
|
|
|
2024-01-17 09:24:04 +00:00
|
|
|
%global debug_package %{nil}
|
2019-12-26 20:57:37 +08:00
|
|
|
%prep
|
2022-01-10 16:52:18 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
sh autogen.sh
|
|
|
|
|
./configure
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
2024-02-22 15:27:33 +08:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/uadk
|
|
|
|
|
install -b -m755 .libs/libwd*.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
|
|
install -b -m755 .libs/libhisi_*.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/uadk
|
|
|
|
|
|
|
|
|
|
# create symbolic link
|
|
|
|
|
for lib in $RPM_BUILD_ROOT%{_libdir}/*.so.%{version} ; do
|
|
|
|
|
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`
|
|
|
|
|
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`.%{soversion}
|
|
|
|
|
done
|
|
|
|
|
for lib in $RPM_BUILD_ROOT%{_libdir}/uadk/*.so.%{version} ; do
|
|
|
|
|
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/uadk/`basename ${lib} .%{version}`
|
|
|
|
|
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/uadk/`basename ${lib} .%{version}`.%{soversion}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/libwd*.so.%{version}
|
|
|
|
|
chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/uadk/libhisi_*.so.%{version}
|
|
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/warpdrive/include
|
|
|
|
|
cp v1/uacce.h ${RPM_BUILD_ROOT}%{_includedir}/warpdrive/include
|
|
|
|
|
cp v1/*.h ${RPM_BUILD_ROOT}%{_includedir}/warpdrive
|
|
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/uadk/v1
|
|
|
|
|
cp include/*.h ${RPM_BUILD_ROOT}%{_includedir}/uadk
|
|
|
|
|
cp v1/*.h ${RPM_BUILD_ROOT}%{_includedir}/uadk/v1
|
|
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
|
|
|
|
|
cp lib/*.pc ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
|
2023-06-15 15:52:55 +08:00
|
|
|
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(755,root,root)
|
2024-02-22 15:27:33 +08:00
|
|
|
%{_libdir}/libwd*.so.%{version}
|
|
|
|
|
%{_libdir}/libwd*.so
|
|
|
|
|
%{_libdir}/libwd*.so.%{soversion}
|
|
|
|
|
%{_libdir}/uadk/libhisi_*.so.%{version}
|
|
|
|
|
%{_libdir}/uadk/libhisi_*.so
|
|
|
|
|
%{_libdir}/uadk/libhisi_*.so.%{soversion}
|
2019-12-26 20:57:37 +08:00
|
|
|
%defattr(644,root,root)
|
2024-02-22 15:27:33 +08:00
|
|
|
%{_includedir}/warpdrive/include/uacce.h
|
|
|
|
|
%{_includedir}/warpdrive/*.h
|
|
|
|
|
%{_includedir}/uadk/*.h
|
|
|
|
|
%{_includedir}/uadk/v1/*.h
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%exclude %{_includedir}/warpdrive/uacce.h
|
|
|
|
|
%exclude %{_includedir}/warpdrive/wd_util.h
|
|
|
|
|
%exclude %{_includedir}/warpdrive/wd_adapter.h
|
|
|
|
|
%exclude %{_includedir}/uadk/wd_util.h
|
|
|
|
|
%exclude %{_includedir}/uadk/hisi_qm_udrv.h
|
|
|
|
|
%exclude %{_includedir}/uadk/v1/wd_util.h
|
|
|
|
|
%exclude %{_includedir}/uadk/v1/wd_adapter.h
|
2019-12-26 20:57:37 +08:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-22 15:27:33 +08:00
|
|
|
* Thu Feb 22 2024 JiangShui Yang <yangjiangshui@h-partners.com> 2.6.0-2
|
|
|
|
|
- libwd: simplify warpdrive.spec
|
|
|
|
|
|
2024-01-17 09:24:04 +00:00
|
|
|
* Mon Jan 22 2024 Zhangfei Gao <zhangfei.gao@linaro.org> 2.6.0-1
|
|
|
|
|
- libwd: update to 2.6.0
|
|
|
|
|
|
2023-09-18 20:06:02 +08:00
|
|
|
* Mon Sep 18 2023 renyi <977713017@qq.com> 2.5.0-4
|
|
|
|
|
- support clang compile
|
|
|
|
|
|
2023-09-04 15:49:59 +08:00
|
|
|
* Mon Sep 4 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.5.0-3
|
|
|
|
|
- libwd: Deleting rpath information from the dynamic library
|
|
|
|
|
|
2023-06-15 15:52:55 +08:00
|
|
|
* Wed Jun 14 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.5.0-2
|
|
|
|
|
- libwd: Adding and packing the pkgconfig file
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.5.0-1
|
2023-06-15 09:55:19 +08:00
|
|
|
- libwd: update the source code to 2.5.0
|
|
|
|
|
|
2023-09-04 15:49:59 +08:00
|
|
|
* Thu Jun 8 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.4.0-1
|
2023-05-05 17:23:53 +08:00
|
|
|
- libwd: update the source code to 2.4.0
|
|
|
|
|
|
2023-03-20 00:16:47 -07:00
|
|
|
* Mon Mar 20 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.3.37-4
|
|
|
|
|
- libwd: modify the build requirement
|
|
|
|
|
|
2023-02-15 21:44:00 +08:00
|
|
|
* Wed Feb 15 2023 Yang Shen <shenyang39@huawei.com> 2.3.37-3
|
|
|
|
|
- libwd: add build requirement
|
|
|
|
|
|
2023-06-15 09:55:19 +08:00
|
|
|
* Thu Dec 15 2022 Yang Shen <shenyang39@huawei.com> 2.3.37-2
|
2022-12-16 11:32:02 +08:00
|
|
|
- libwd: fix a bug for ecc
|
|
|
|
|
|
2022-10-10 10:26:20 +08:00
|
|
|
* Mon Oct 10 2022 Yang Shen <shenyang39@huawei.com> 2.3.37-1
|
|
|
|
|
- libwd: update the source code to 2.3.37
|
|
|
|
|
|
2022-07-26 09:56:35 +08:00
|
|
|
* Tue Jul 26 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-6
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.31 to 2.3.36
|
|
|
|
|
|
2022-03-22 11:42:15 +08:00
|
|
|
* Mon Mar 21 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-5
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.28 to 2.3.31
|
|
|
|
|
|
2022-03-01 03:44:14 +00:00
|
|
|
* Tue Mar 1 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-4
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.27 to 2.3.28
|
|
|
|
|
|
2022-02-21 03:30:18 +00:00
|
|
|
* Mon Feb 21 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-3
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.24 to 2.3.27
|
|
|
|
|
|
2022-01-10 16:52:19 +08:00
|
|
|
* Tue Jan 04 2022 Yang Shen <shenyang39@huawei.com> 2.3.21-2
|
|
|
|
|
- libwd: backport the patch of uadk from 2.3.21 to 2.3.24
|
|
|
|
|
|
2021-12-06 17:30:13 +08:00
|
|
|
* Mon Dec 06 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.21-1
|
|
|
|
|
- libwd: update uadk from 2.3.20 to 2.3.21
|
|
|
|
|
|
2022-01-10 16:52:19 +08:00
|
|
|
* Wed Nov 24 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.20-2
|
2021-11-24 11:56:58 +08:00
|
|
|
- libwd: add missing head files and fix install path
|
|
|
|
|
|
|
|
|
|
* Mon Nov 22 2021 Yang Shen <shenyang39@huawei.com> 2.3.20-1
|
2021-11-22 02:20:24 +00:00
|
|
|
- libwd: update uadk from 2.3.11 to 2.3.20
|
|
|
|
|
|
2021-11-24 11:56:58 +08:00
|
|
|
* Fri Sep 03 2021 Yang Shen <shenyang39@huawei.com> 2.3.11-4
|
2021-09-06 02:11:51 +00:00
|
|
|
- uadk-access-the-file-isolate-before-read-it.patch
|
|
|
|
|
|
2021-11-24 11:56:58 +08:00
|
|
|
* Fri Aug 06 2021 Pengju Jiang <jiangpengju2@huawei.com> 2.3.11-3
|
2021-08-09 09:50:18 +08:00
|
|
|
- bugfix-of-gcc-10.patch
|
|
|
|
|
|
2021-07-21 18:03:36 +08:00
|
|
|
* Wed Jul 21 2021 caodongxia <caodongxia@huawei.com> 2.3.11-2
|
|
|
|
|
- change uacce.h path.
|
|
|
|
|
|
2021-11-22 02:20:24 +00:00
|
|
|
* Tue Jul 06 2021 Hao Fang <fanghao11@huawei.com> 2.3.11-1
|
2021-07-06 12:07:31 +00:00
|
|
|
- update warpdrive to uadk, support kunpeng 920/930.
|
|
|
|
|
|
2020-03-15 13:06:59 +08:00
|
|
|
* Sun Mar 15 2020 zhangtao <zhangtao221@huawei.com> 1.2.10-3
|
|
|
|
|
- Specify compilation aarch64 as platform
|
|
|
|
|
|
2020-03-04 02:23:50 +08:00
|
|
|
* Tue Mar 03 2020 catastrowings <jianghuhao1994@163.com> 1.2.10-2
|
|
|
|
|
- openEuler init
|
2019-12-26 20:57:37 +08:00
|
|
|
|
2020-01-20 16:33:54 +08:00
|
|
|
* Tue Jan 07 2020 jinbinhua <jinbinhua@huawei.com> 1.2.7-1
|
|
|
|
|
- First Spec Version Include Warpdrive Code
|