From 9b63178a75fc66c2f0c97477c4d2aeb4fbab99ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E4=BB=B2=E4=BC=9F?= Date: Tue, 17 Dec 2024 17:05:33 +0800 Subject: [PATCH] include all patches in the source package. --- tidb.spec | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tidb.spec b/tidb.spec index 75481e0..6b8b343 100644 --- a/tidb.spec +++ b/tidb.spec @@ -1,6 +1,6 @@ Name: tidb Version: 4.0.14 -Release: 4 +Release: 5 Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol License: Apache 2.0 @@ -12,10 +12,8 @@ Source2: tidb-server.toml Source3: vendor.tar.gz Patch0: Set-GOFLAG-to-go-mod-vendor.patch Patch1: 0001-fix-release-version.patch -%ifarch riscv64 -Patch2: add-riscv-support.patch -Patch3: add-riscv-support-for-vendor.patch -%endif +Patch2: add-riscv-support.patch +Patch3: add-riscv-support-for-vendor.patch BuildRequires: golang >= 1.10.0 Requires(pre): shadow-utils Requires(post): systemd @@ -24,16 +22,15 @@ Requires(post): systemd TiDB is a distributed NewSQL database compatible with MySQL protocol %prep -%ifarch riscv64 %setup -q -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -tar xvf %{SOURCE3} -C . -%patch3 -%else -%autosetup -p1 +%patch -P 0 -p1 +%patch -P 1 -p1 +%ifarch riscv64 +%patch -P 2 -p1 +%endif tar xvf %{SOURCE3} -C . +%ifarch riscv64 +%patch -P 3 %endif @@ -83,6 +80,9 @@ exit 0 %license LICENSE %changelog +* Tue Dec 17 2024 shenzhongwei - 4.0.14-5 +- include all patches in the source package. + * Mon Jul 17 2023 zhangxiang - 4.0.14-4 - add riscv64 support -- Gitee