!32 Add BuildRequires uname-build-checks to get correct kernel_version

From: @panxh_purple 
Reviewed-by: @realzhongkeyi 
Signed-off-by: @realzhongkeyi
This commit is contained in:
openeuler-ci-bot 2023-03-22 01:29:21 +00:00 committed by Gitee
commit 839222c0e6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: kae_driver
Summary: Kunpeng Accelerator Engine Kernel Driver
Version: 2.0.0
Release: 1
Release: 2
License: GPL-2.0
Source: %{name}-%{version}.tar.gz
Vendor: Huawei Corporation
@ -12,7 +12,7 @@ URL: https://support.huawei.com
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Conflicts: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
BuildRequires: kernel-devel, gcc, make
BuildRequires: kernel-devel, gcc, make, uname-build-checks
ExclusiveArch: aarch64
Patch0001: 0001-ci-kernel-version-patch.patch
@ -232,6 +232,9 @@ echo "hisi_trng_v2 modules uninstalled"
%config(noreplace) /etc/modprobe.d/hisi_trng_v2.conf
%changelog
* Fri Mar 10 2023 panxiaohe <pan_xiaohe@hoperun.com> - 2.0.1-2
- Add BuildRequires uname-build-checks to get correct kernel_version
* Tue Feb 7 2023 mayunhui <mayunhui3@huawei.com> - 2.0.1
- Fix kae_driver build error in the patch file