From 4cf450f5c9b989b054c3ffe5037fd2fec6a60f27 Mon Sep 17 00:00:00 2001 From: yaqiangchen Date: Thu, 9 Nov 2023 15:46:24 +0800 Subject: [PATCH] fix the problem that patches are not packaged in src.rpm --- kernel.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel.spec b/kernel.spec index 5f736aa..85bfffa 100644 --- a/kernel.spec +++ b/kernel.spec @@ -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 - 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 - 4.19.90-2311.1.0.0236 - kernel.spec: skip check patches that from linux master or stable