1 Star 0 Fork 18

wuliaokanke/libwd

forked from src-openEuler/libwd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
warpdrive.spec 2.82 KB
一键复制 编辑 原始数据 按行查看 历史
zhangtao2020 提交于 2020-03-15 13:06 . specify aarch64 compilationn
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wuliaokanke/libwd.git
git@gitee.com:wuliaokanke/libwd.git
wuliaokanke
libwd
libwd
master

搜索帮助