!4 openEuler init

Merge pull request !4 from catastrowings/master
This commit is contained in:
openeuler-ci-bot 2020-01-20 16:41:10 +08:00 committed by Gitee
commit 7d09af2b76
4 changed files with 24 additions and 57 deletions

View File

@ -1,39 +0,0 @@
# libwd
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

BIN
libwd-1.2.8.tar.gz Normal file

Binary file not shown.

View File

@ -1,18 +1,17 @@
Name: libwd
Summary: Huawei Accelerator Library
Version:1.1.10
Release: 1
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
License: Apache-2.0
ExclusiveOS: linux
ExclusiveArch: aarch64
Group: System Environment/Kernel
Provides: %{name} = %{version}
URL:https://support.huawei.com
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%global debug_package %{nil}
Conflicts: %{name} < %{version}
Name: libwd
Summary: Huawei Accelerator Library
Version: 1.2.8
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: automake, autoconf, libtool
BuildRequires: gcc, make
@ -20,7 +19,6 @@ BuildRequires: gcc, make
This package contains the Huawei Accelerator Library
%prep
%global debug_package %{nil}
%setup -c -n %{name}-%{version}
%build
@ -31,7 +29,9 @@ make
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64
install -p -m 0755 warpdrive/.libs/libwd.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
ls ${RPM_BUILD_ROOT}/usr/lib64
install -b -m -755 warpdrive/.libs/libwd.so.%{version} ${RPM_BUILD_ROOT}/usr/lib64
ls ${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
@ -50,8 +50,7 @@ rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(755,root,root)
/usr/lib64/libwd.so.%{version}
/usr/lib64/libwd.so.1
/usr/lib64/libwd.so.*
%defattr(644,root,root)
/usr/include/warpdrive/wd.h
/usr/include/warpdrive/wd_cipher.h
@ -68,22 +67,29 @@ rm -rf ${RPM_BUILD_ROOT}
%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
* Mon Jan 20 2020 catastrowings <jianghuhao1994@163.com> 1.2.7-2
- compatible with openEuler
* Tue Jan 07 2020 jinbinhua <jinbinhua@huawei.com> 1.2.7-1
- First Spec Version Include Warpdrive Code