!5 fix build error

Merge pull request !5 from catastrowings/master
This commit is contained in:
openeuler-ci-bot 2020-02-03 21:00:18 +08:00 committed by Gitee
commit 703a008eb2
2 changed files with 10 additions and 3 deletions

3
config_for_secure Normal file
View File

@ -0,0 +1,3 @@
rpm_name:libkae
sec_opt:-Wno-unused-result
fs_opt:

View File

@ -3,7 +3,7 @@
Name: libkae
Summary: Huawei Kunpeng Accelerator Engine
Version: 1.2.8
Release: 2
Release: 3
License: Apache-2.0
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
@ -13,7 +13,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: /usr/local/lib/engines-1.1
Conflicts: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
BuildRequires: libwd >= %{version} openssl-devel
BuildRequires: libwd-devel >= %{version} libwd >= %{version}
BuildRequires: openssl-devel sed
%description
This package contains the Huawei Kunpeng Accelerator Engine
@ -29,7 +30,7 @@ make
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
install -b -m -755 KAE/libkae.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
install -b -m755 KAE/libkae.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1
%clean
rm -rf ${RPM_BUILD_ROOT}
@ -63,6 +64,9 @@ fi
/sbin/ldconfig
%changelog
* Mon Feb 03 2020 catastrowings <jianghuhao1994@163.com> 1.2.8-3
- fix build error
* Mon Jan 20 2020 catastrowings <jianghuhao1994@163.com> 1.2.7-2
- compatible with openEuler