diff --git a/tidb.spec b/tidb.spec index aaf7ab3859870270b660768715e083890cc3ea59..5c43901417cf6bb1665ef740087343a259688aad 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: QL and STRUTIL @@ -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