!1286 修复kernel源码包本地自编译失败的问题

From: @yaqiangchen 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
This commit is contained in:
openeuler-ci-bot 2023-11-09 14:05:22 +00:00 committed by Gitee
commit a60fbae833
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -32,7 +32,7 @@
Name: kernel
Version: 4.19.90
Release: %{hulkrelease}.0236
Release: %{hulkrelease}.0237
Summary: Linux Kernel
License: GPLv2
URL: http://www.kernel.org/
@ -57,8 +57,7 @@ Source2001: cpupower.config
Source9000: apply-patches
Source9001: guards
Source9002: series.conf
Source9003: patches
#Source9998: patches.tar.bz2
Source9998: patches.tar.gz
%endif
#BuildRequires:
@ -222,6 +221,9 @@ package or when debugging this package.\
%setup -q -n kernel-%{version} -c
%if 0%{?with_patch}
tar -zvxf %{SOURCE9998}
%endif
mv kernel linux-%{KernelVer}
cd linux-%{KernelVer}
@ -230,7 +232,6 @@ cd linux-%{KernelVer}
cp %{SOURCE9000} .
cp %{SOURCE9001} .
cp %{SOURCE9002} .
cp %{SOURCE9003} . -r
if [ ! -d patches ];then
mv ../patches .
@ -835,6 +836,8 @@ fi
%endif
%changelog
* Tue Nov 7 2023 YaQiang Chen <chenyaqiang@huawei.com> - 4.19.90-2311.1.0.0237
- spec: fix the problem that patches are not packaged in src.rpm
* Wed Nov 8 2023 Yu Liao <liaoyu15@huawei.com> - 4.19.90-2311.1.0.0236
- kernel.spec: skip check patches that from linux master or stable