backport some bugfixes

This commit is contained in:
shizhili 2023-12-08 09:50:26 +08:00
parent 0c6097bb44
commit cd6b2c174e
3 changed files with 8659 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,8 @@
Summary: Cloud-Native, Distributed Messaging and Streaming
Name: rocketmq
Version: 5.1.3
Release: 23
Version: 5.1.5
Release: 24
License: Apache-2.0
Group: Applications/Message
URL: https://rocketmq.apache.org/
@ -32,6 +32,7 @@ Patch0019: patch019-backport-some-bugfix.patch
Patch0020: patch020-backport-add-goaway-mechanism.patch
Patch0021: patch021-backport-some-enhancements.patch
Patch0022: patch022-backport-Support-KV-Storage-for-ConsumeQueue.patch
Patch0023: patch023-backport-some-bugfixes.patch
BuildRequires: java-1.8.0-openjdk-devel, maven, maven-local, git
Requires: java-1.8.0-openjdk-devel
@ -39,15 +40,21 @@ Requires: java-1.8.0-openjdk-devel
Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
%prep
%autosetup -S git -n %{name}-all-%{version}-source-release
# -T is passed to %%setup to not re-extract the archive
# -D is passed to %%setup to not delete the existing archive dir
# -N to disable automatic patching
%autosetup -v -S git -n %{name}-all-%{version}-source-release -N
# -M Apply patches up to 999
# -m Apply patches greater to 24
%autopatch -m 24
%build
mvn -Prelease-all -DskipTests clean package -U
%install
cd %{_builddir}/rocketmq-all-5.1.3-source-release/distribution/target
cd %{_builddir}/rocketmq-all-5.1.5-source-release/distribution/target
mkdir -p $RPM_BUILD_ROOT%{_prefix}
cp -pr %{_builddir}/rocketmq-all-5.1.3-source-release/distribution/target/rocketmq-5.1.5-SNAPSHOT/rocketmq-5.1.5-SNAPSHOT/* $RPM_BUILD_ROOT%{_prefix}
cp -pr %{_builddir}/rocketmq-all-5.1.5-source-release/distribution/target/rocketmq-5.1.5-SNAPSHOT/rocketmq-5.1.5-SNAPSHOT/* $RPM_BUILD_ROOT%{_prefix}
%clean
@ -66,6 +73,9 @@ exit 0
%changelog
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-24
- backport some bugfixes
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-23
- backport support kv storage