include all patches in the source package.
This commit is contained in:
parent
f020b36443
commit
45fac27ade
35
tidb.spec
35
tidb.spec
@ -1,6 +1,6 @@
|
|||||||
Name: tidb
|
Name: tidb
|
||||||
Version: 4.0.14
|
Version: 4.0.14
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol
|
Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol
|
||||||
|
|
||||||
License: QL and STRUTIL
|
License: QL and STRUTIL
|
||||||
@ -12,11 +12,9 @@ Source2: tidb-server.toml
|
|||||||
Source3: vendor.tar.gz
|
Source3: vendor.tar.gz
|
||||||
Patch0: Set-GOFLAG-to-go-mod-vendor.patch
|
Patch0: Set-GOFLAG-to-go-mod-vendor.patch
|
||||||
Patch1: 0001-fix-release-version.patch
|
Patch1: 0001-fix-release-version.patch
|
||||||
%ifarch riscv64
|
Patch2: add-riscv-support.patch
|
||||||
Patch2: add-riscv-support.patch
|
Patch3: add-riscv-support-for-vendor.patch
|
||||||
Patch3: add-riscv-support-for-vendor.patch
|
Patch4: 0001-add-loong64-support.patch
|
||||||
%endif
|
|
||||||
Patch4: 0001-add-loong64-support.patch
|
|
||||||
|
|
||||||
BuildRequires: golang >= 1.10.0
|
BuildRequires: golang >= 1.10.0
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
@ -26,23 +24,19 @@ Requires(post): systemd
|
|||||||
TiDB is a distributed NewSQL database compatible with MySQL protocol
|
TiDB is a distributed NewSQL database compatible with MySQL protocol
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch -P 0 -p1
|
||||||
|
%patch -P 1 -p1
|
||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
%setup -q
|
%patch -P 2 -p1
|
||||||
%patch0 -p1
|
%endif
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
tar xvf %{SOURCE3} -C .
|
|
||||||
%patch3
|
|
||||||
%else
|
|
||||||
%setup -q
|
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
tar xvf %{SOURCE3} -C .
|
tar xvf %{SOURCE3} -C .
|
||||||
|
%ifarch riscv64
|
||||||
|
%patch -P 3
|
||||||
|
%endif
|
||||||
%ifarch loongarch64
|
%ifarch loongarch64
|
||||||
%patch4 -p1
|
%patch -P 4 -p1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
@ -90,6 +84,9 @@ exit 0
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 01 2024 zhangxianting <zhangxianting@uniontech.com> - 4.0.14-5
|
||||||
- add loongarch64 support
|
- add loongarch64 support
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user