From 58a3a4d98aee6fce502577655d0749b9643f7104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E7=8B=AC=E7=9A=84=E5=A4=A7=E6=B2=B3=E9=A9=AC?= =?UTF-8?q?=E5=9C=A8=E8=BA=BA=E5=B9=B3?= Date: Tue, 28 May 2024 09:24:21 +0000 Subject: [PATCH] Fix lack of loongarch64 and sw_64 patche files in src.rpm package which is build from any platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孤独的大河马在躺平 (cherry picked from commit 37379101f9bf5721dd489eb45383913e0bd9509e) --- crash.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/crash.spec b/crash.spec index 58acaef..f72037a 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.4 -Release: 2 +Release: 3 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io @@ -9,12 +9,8 @@ Source1: http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz Patch0: 0000-lzo_snappy.patch Patch1: 0001-add-SDEI-stack-resolution.patch -%ifarch sw_64 Patch2: 0002-crash-8.0.2-sw.patch -%endif -%ifarch loongarch64 Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch -%endif BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel texinfo libzstd-devel BuildRequires: gcc gcc-c++ bison m4 @@ -45,7 +41,15 @@ created by manufacturer-specific firmware. %package_help %prep -%autosetup -n %{name}-%{version} -p1 +%setup -q -n %{name}-%{version} +%patch0 -p1 +%patch1 -p1 +%ifarch sw_64 +%patch2 -p1 +%endif +%ifarch loongarch64 +%patch3 -p1 +%endif %build cp %{SOURCE1} . @@ -80,6 +84,9 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog +* Tue May 28 2024 shaojiansong - 8.0.4-3 +- Fix lack of loongarch64 and sw_64 patch files in src.rpm package which is build from any platform. + * Tue Apr 16 2024 Pengda Dou - 8.0.4-2 - Resolve loongarch64 patch add error - add support for loongarch64 -- Gitee