代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/libwd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: libwd
Summary: Huawei Accelerator Library
Version: 1.2.10
Release: 3
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: automake, autoconf, libtool
BuildRequires: gcc, make
ExclusiveArch: aarch64
%description
This package contains the Huawei Accelerator Library
%prep
%global debug_package %{nil}
%setup -c -n %{name}-%{version}
%build
cd warpdrive
sh autogen.sh
./configure
make
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64
install -b -m755 warpdrive/.libs/libwd.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
mkdir -p ${RPM_BUILD_ROOT}/usr/include/warpdrive
mkdir -p ${RPM_BUILD_ROOT}/usr/include/warpdrive/include
cp warpdrive/wd.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_cipher.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_comp.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_dh.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_digest.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_rsa.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/wd_bmm.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/smm.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/config.h ${RPM_BUILD_ROOT}/usr/include/warpdrive
cp warpdrive/include/uacce.h ${RPM_BUILD_ROOT}/usr/include/warpdrive/include
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(755,root,root)
/usr/lib64/libwd.so.%{version}
%defattr(644,root,root)
/usr/include/warpdrive/wd.h
/usr/include/warpdrive/wd_cipher.h
/usr/include/warpdrive/wd_comp.h
/usr/include/warpdrive/wd_dh.h
/usr/include/warpdrive/wd_digest.h
/usr/include/warpdrive/wd_rsa.h
/usr/include/warpdrive/wd_bmm.h
/usr/include/warpdrive/smm.h
/usr/include/warpdrive/config.h
/usr/include/warpdrive/include/uacce.h
%exclude /usr/lib64/libwd.so.1
%pre
if [ "$1" = "2" ] ; then #2: update
rm -rf /usr/lib64/libwd.so > /dev/null 2>&1 || true
rm -rf /usr/lib64/libwd.so.1 > /dev/null 2>&1 || true
fi
%post
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
cd /usr/lib64
ln -sf libwd.so.%{version} libwd.so
ln -sf libwd.so.%{version} libwd.so.1
fi
/sbin/ldconfig
%preun
if [ "$1" = "0" ] ; then #0: uninstall
rm -rf /usr/lib64/libwd.so > /dev/null 2>&1 || true
rm -rf /usr/lib64/libwd.so.1 > /dev/null 2>&1 || true
fi
%postun
/sbin/ldconfig
%changelog
* 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。