!19 手动同步源码包同源异构问题修复

From: @zhong-wei-shen 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-12-23 07:56:21 +00:00 committed by Gitee
commit 371d5f9f99
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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,23 +24,19 @@ Requires(post): systemd
TiDB is a distributed NewSQL database compatible with MySQL protocol
%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1
%ifarch riscv64
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
tar xvf %{SOURCE3} -C .
%patch3
%else
%setup -q
%patch0 -p1
%patch1 -p1
%patch -P 2 -p1
%endif
tar xvf %{SOURCE3} -C .
%ifarch riscv64
%patch -P 3
%endif
%ifarch loongarch64
%patch4 -p1
%patch -P 4 -p1
%endif
%endif
%build
%make_build
@ -90,6 +84,9 @@ exit 0
%license LICENSE
%changelog
* Tue Dec 17 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 4.0.14-6
- include all patches in the source package.
* Mon Jul 01 2024 zhangxianting <zhangxianting@uniontech.com> - 4.0.14-5
- add loongarch64 support