libwd/warpdrive.spec

182 lines
6.0 KiB
RPMSpec
Raw Normal View History

2024-02-22 15:27:33 +08:00
%define soversion 2
2020-01-20 16:33:54 +08:00
Name: libwd
Summary: User Space Accelerator Development Kit
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
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
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}
BuildRequires: numactl-devel, compat-openssl11-devel, zlib-devel
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
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
%global debug_package %{nil}
2019-12-26 20:57:37 +08:00
%prep
%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
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
* 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
* 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
2023-06-15 09:55:19 +08:00
- libwd: update the source code to 2.5.0
* 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
* 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
2023-06-15 09:55:19 +08:00
* 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
2021-07-21 18:03:36 +08:00
* 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.
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