libwd/libwd.spec
2024-11-19 11:51:09 +08:00

223 lines
8.4 KiB
RPMSpec

%define soversion 2
Name: libwd
Summary: User Space Accelerator Development Kit
Version: 2.7.0
Release: 2
License: Apache-2.0
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
ExclusiveOS: linux
URL: https://support.huawei.com
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Conflicts: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
BuildRequires: numactl-devel, openssl-devel, zlib-devel
BuildRequires: automake, autoconf, libtool, chrpath
BuildRequires: gcc, make
ExclusiveArch: aarch64
Patch0001: 0001-uadk_tool-benchmark-skip-sm4-benchmark-if-openssl-wi.patch
Patch0002: 0002-uadk-v1-hpre-remove-redundant-comments.patch
Patch0003: 0003-uadk-v1-fix-for-atomic-memory-order.patch
Patch0004: 0004-uadk-replace-wd_lock-to-pthread_spinlock.patch
Patch0005: 0005-uadk-v1-fix-for-wd_lock-implementation.patch
Patch0006: 0006-uadk-fix-for-env-uninit-segment-fault.patch
Patch0007: 0007-uadk-v1-drv-hisi_zip_udrv-fix-the-wrong-literal-buff.patch
Patch0008: 0008-uadk-v1-replace-wd_spinlock-to-pthread_spin_lock.patch
Patch0009: 0009-uadk_tools-add-segfault-locating-function.patch
Patch0010: 0010-uadk-bugfix-CE-driver-initialization-problem.patch
Patch0011: 0011-uadk-v1-fix-for-sec_dump_bd.patch
Patch0012: 0012-uadk-v1-fix-for-wd_recv_sync-print.patch
Patch0013: 0013-uadk-v1-update-the-symbol-table-for-libraries.patch
Patch0014: 0014-uadk-modify-address-check.patch
Patch0015: 0015-uadk-check-calloc-return-value.patch
Patch0016: 0016-drv-hisi-sec-modify-minor-errors-in-hisi_sec.c.patch
Patch0017: 0017-uadk-support-for-the-DAE-algorithm-layer.patch
Patch0018: 0018-drv-dae-support-hashagg-algorithm.patch
Patch0019: 0019-uadk_tool-use-wd_xxx_init2_-instead-of-wd_xxx_init2.patch
Patch0020: 0020-uadk-isa-ce-fix-sm4-CE-driver-initialization-error.patch
Patch0021: 0021-acc-uadk-fix-queue-configuration-parameter-error.patch
Patch0022: 0022-acc-uadk-fix-double-free-error.patch
Patch0023: 0023-uadk-fix-the-null-pointer-check-error.patch
Patch0024: 0024-uadk-add-null-pointer-check.patch
Patch0025: 0025-uadk-test-move-main-function-to-testsuit.c-and-rm.patch
Patch0026: 0026-uadk-fix-for-sec-software-compute-check.patch
Patch0027: 0027-uadk-fix-some-code-bugs.patch
Patch0028: 0028-uadk-cipher-add-length-check-of-CBC_CTS-mode.patch
Patch0029: 0029-uadk-fix-for-cipher-update-iv.patch
Patch0030: 0030-uadk-v1-fix-for-cipher-update-iv.patch
Patch0031: 0031-uadk-reduce-the-print-rating-of-specific-logs.patch
Patch0032: 0032-Revert-uadk-v1-replace-wd_spinlock-to-pthread_spin_l.patch
Patch0033: 0033-Revert-uadk-v1-check-queue-status-before-sending-doo.patch
Patch0034: 0034-uadk-v1-not-check-hardware-status-when-BD-not-proces.patch
Patch0035: 0035-uadk-v1-check-queue-status-before-sending-doorbells.patch
Patch0036: 0036-uadk-v1-replace-wd_spinlock-to-pthread_spin_lock.patch
Patch0037: 0037-uadk-fix-for-hashagg-include-files.patch
Patch0038: 0038-uadk-fix-code-compatibility-issue.patch
Patch0039: 0039-Update-wd_design.md.patch
%description
This package contains the User Space Accelerator Library
for hardware accelerator, compress, symmetric encryption
and decryption, asymmetric encryption and decryption.
%global debug_package %{nil}
%prep
%autosetup -n %{name}-%{version} -p1
%build
sh autogen.sh
./configure
make
%install
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
install -b -m755 .libs/libisa_*.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}
chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/uadk/libisa_*.so.%{version}
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/warpdrive
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
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(755,root,root)
%{_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}
%{_libdir}/uadk/libisa_*.so.%{version}
%{_libdir}/uadk/libisa_*.so
%{_libdir}/uadk/libisa_*.so.%{soversion}
%defattr(644,root,root)
%{_includedir}/warpdrive/*.h
%{_includedir}/uadk/*.h
%{_includedir}/uadk/v1/*.h
%{_libdir}/pkgconfig/*.pc
%exclude %{_includedir}/warpdrive/wd_util.h
%exclude %{_includedir}/warpdrive/wd_adapter.h
%exclude %{_includedir}/uadk/wd_util.h
%exclude %{_includedir}/uadk/v1/wd_util.h
%exclude %{_includedir}/uadk/v1/wd_adapter.h
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%changelog
* Tue Nov 19 2024 JiangShui Yang <yangjiangshui@h-partners.com> 2.7.0-2
- libwd: update the source code
* Fri Aug 23 2024 JiangShui Yang <yangjiangshui@h-partners.com> 2.7.0-1
- libwd: update the source code to 2.7.0
* Sun Apr 7 2024 JiangShui Yang <yangjiangshui@h-partners.com> 2.6.0-3
- libwd: update the source code
* Thu Feb 22 2024 JiangShui Yang <yangjiangshui@h-partners.com> 2.6.0-2
- libwd: simplify warpdrive.spec
* Mon Jan 22 2024 Zhangfei Gao <zhangfei.gao@linaro.org> 2.6.0-1
- libwd: update to 2.6.0
* Mon Sep 18 2023 renyi <977713017@qq.com> 2.5.0-4
- support clang compile
* Mon Sep 4 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.5.0-3
- libwd: Deleting rpath information from the dynamic library
* 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
- libwd: update the source code to 2.5.0
* Thu Jun 8 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.4.0-1
- libwd: update the source code to 2.4.0
* Mon Mar 20 2023 JiangShui Yang <yangjiangshui@h-partners.com> 2.3.37-4
- libwd: modify the build requirement
* Wed Feb 15 2023 Yang Shen <shenyang39@huawei.com> 2.3.37-3
- libwd: add build requirement
* Thu Dec 15 2022 Yang Shen <shenyang39@huawei.com> 2.3.37-2
- libwd: fix a bug for ecc
* Mon Oct 10 2022 Yang Shen <shenyang39@huawei.com> 2.3.37-1
- libwd: update the source code to 2.3.37
* 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
* 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
* 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
* 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
* 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
* Mon Dec 06 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.21-1
- libwd: update uadk from 2.3.20 to 2.3.21
* Wed Nov 24 2021 linwenkai <linwenkai6@hisilicon.com> 2.3.20-2
- libwd: add missing head files and fix install path
* Mon Nov 22 2021 Yang Shen <shenyang39@huawei.com> 2.3.20-1
- libwd: update uadk from 2.3.11 to 2.3.20
* Fri Sep 03 2021 Yang Shen <shenyang39@huawei.com> 2.3.11-4
- uadk-access-the-file-isolate-before-read-it.patch
* Fri Aug 06 2021 Pengju Jiang <jiangpengju2@huawei.com> 2.3.11-3
- bugfix-of-gcc-10.patch
* Wed Jul 21 2021 caodongxia <caodongxia@huawei.com> 2.3.11-2
- change uacce.h path.
* Tue Jul 06 2021 Hao Fang <fanghao11@huawei.com> 2.3.11-1
- update warpdrive to uadk, support kunpeng 920/930.
* Sun Mar 15 2020 zhangtao <zhangtao221@huawei.com> 1.2.10-3
- Specify compilation aarch64 as platform
* Tue Mar 03 2020 catastrowings <jianghuhao1994@163.com> 1.2.10-2
- openEuler init
* Tue Jan 07 2020 jinbinhua <jinbinhua@huawei.com> 1.2.7-1
- First Spec Version Include Warpdrive Code