fix the problem that patches are not packaged in src.rpm

This commit is contained in:
yaqiangchen 2023-11-09 15:46:24 +08:00
parent 548d7a798d
commit 4cf450f5c9

View File

@ -32,7 +32,7 @@
Name: kernel Name: kernel
Version: 4.19.90 Version: 4.19.90
Release: %{hulkrelease}.0236 Release: %{hulkrelease}.0237
Summary: Linux Kernel Summary: Linux Kernel
License: GPLv2 License: GPLv2
URL: http://www.kernel.org/ URL: http://www.kernel.org/
@ -57,8 +57,7 @@ Source2001: cpupower.config
Source9000: apply-patches Source9000: apply-patches
Source9001: guards Source9001: guards
Source9002: series.conf Source9002: series.conf
Source9003: patches Source9998: patches.tar.gz
#Source9998: patches.tar.bz2
%endif %endif
#BuildRequires: #BuildRequires:
@ -222,6 +221,9 @@ package or when debugging this package.\
%setup -q -n kernel-%{version} -c %setup -q -n kernel-%{version} -c
%if 0%{?with_patch}
tar -zvxf %{SOURCE9998}
%endif
mv kernel linux-%{KernelVer} mv kernel linux-%{KernelVer}
cd linux-%{KernelVer} cd linux-%{KernelVer}
@ -230,7 +232,6 @@ cd linux-%{KernelVer}
cp %{SOURCE9000} . cp %{SOURCE9000} .
cp %{SOURCE9001} . cp %{SOURCE9001} .
cp %{SOURCE9002} . cp %{SOURCE9002} .
cp %{SOURCE9003} . -r
if [ ! -d patches ];then if [ ! -d patches ];then
mv ../patches . mv ../patches .
@ -835,6 +836,8 @@ fi
%endif %endif
%changelog %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 * 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 - kernel.spec: skip check patches that from linux master or stable