diff --git a/tidb.spec b/tidb.spec index a73a89b9be61c5a5849328d3e0fe262fd6c10542..dd18ffe16376d782b93b04a27f51ed49f0ff162a 100644 --- a/tidb.spec +++ b/tidb.spec @@ -1,6 +1,6 @@ Name: tidb Version: 4.0.14 -Release: 5 +Release: 6 Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol License: QL and STRUTIL @@ -12,11 +12,9 @@ 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 -Patch4: 0001-add-loong64-support.patch +Patch2: add-riscv-support.patch +Patch3: add-riscv-support-for-vendor.patch +Patch4: 0001-add-loong64-support.patch BuildRequires: golang >= 1.10.0 Requires(pre): shadow-utils @@ -26,24 +24,20 @@ 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 -%setup -q -%patch0 -p1 -%patch1 -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 %ifarch loongarch64 -%patch4 -p1 -%endif +%patch -P 4 -p1 %endif - %build %make_build @@ -90,6 +84,9 @@ exit 0 %license LICENSE %changelog +* Tue Dec 17 2024 shenzhongwei - 4.0.14-6 +- include all patches in the source package. + * Mon Jul 01 2024 zhangxianting - 4.0.14-5 - add loongarch64 support