rocketmq/rocketmq.spec

190 lines
7.5 KiB
RPMSpec
Raw Normal View History

2023-08-29 09:14:30 +08:00
%define debug_package %{nil}
%define _prefix /opt/rocketmq
%define path_name %{name}-all-%{version}-source-release
Summary: Cloud-Native, Distributed Messaging and Streaming
Name: rocketmq
2023-12-08 09:50:26 +08:00
Version: 5.1.5
Release: 35
2023-08-29 09:14:30 +08:00
License: Apache-2.0
Group: Applications/Message
URL: https://rocketmq.apache.org/
Source0: https://archive.apache.org/dist/%{name}/%{version}/%{name}-all-%{version}-source-release.zip
2023-09-13 17:29:07 +08:00
Patch0001: patch001-backport-some-typo-fixes.patch
Patch0002: patch002-backport-some-enhancement.patch
2023-09-15 08:54:17 +08:00
Patch0003: patch003-backport-feature-refactor-recipt-processor.patch
Patch0004: patch004-backport-Support-Proxy-Protocol-for-gRPC-and-Remoting-Server.patch
2023-09-15 15:20:33 +08:00
Patch0005: patch005-backport-fix-some-bugs.patch
2023-09-15 15:49:36 +08:00
Patch0006: patch006-backport-auto-batch-producer.patch
2023-09-19 16:10:33 +08:00
Patch0007: patch007-backport-fix-some-bugs.patch
2023-09-19 18:21:07 +08:00
Patch0008: patch008-backport-Allow-BoundaryType.patch
2023-09-20 17:59:10 +08:00
Patch0009: patch009-backport-Support-KV-Storage.patch
2023-10-01 10:27:45 +08:00
Patch0010: patch010-backport-add-some-fixes.patch
2023-10-01 22:17:15 +08:00
Patch0011: patch011-backport-optimize-config.patch
2023-10-02 21:16:25 +08:00
Patch0012: patch012-backport-enhance-rockdbconfigtojson.patch
2023-10-06 23:51:02 +08:00
Patch0013: patch013-backport-enhance-admin-output.patch
2023-10-30 20:40:07 +08:00
Patch0014: patch014-backport-Queue-Selection-Strategy-Optimization.patch
2023-10-30 20:47:50 +08:00
Patch0015: patch015-backport-fix-some-bugs.patch
Patch0016: patch016-backport-Optimize-fault-tolerant-mechanism.patch
Patch0017: patch017-backport-Convergent-thread-pool-creation.patch
Patch0018: patch018-backport-enhancement-of-tiered-storage.patch
2023-11-20 13:46:13 +08:00
Patch0019: patch019-backport-some-bugfix.patch
2023-12-05 14:54:08 +08:00
Patch0020: patch020-backport-add-goaway-mechanism.patch
2023-12-05 15:00:40 +08:00
Patch0021: patch021-backport-some-enhancements.patch
Patch0022: patch022-backport-Support-KV-Storage-for-ConsumeQueue.patch
2023-12-08 09:50:26 +08:00
Patch0023: patch023-backport-some-bugfixes.patch
2023-12-08 16:27:47 +08:00
Patch0024: patch024-backport-some-format.patch
2023-12-08 16:32:05 +08:00
Patch0025: patch025-backport-Fix-channel-connect-issue.patch
Patch0026: patch026-backport-AddBroker-removes-parsing-configuration-from-body.patch
Patch0027: patch027-backport-Utilizing-cache-to-avoid-duplicate-parsing.patch
2023-12-08 16:50:34 +08:00
Patch0028: patch028-backport-Fix-proxy-client-language-error.patch
Patch0029: patch029-backport-Introduce-new-event-NettyEventType.ACTIVEr.patch
2023-12-08 16:56:52 +08:00
Patch0030: patch030-backport-remove-some-code.patch
Patch0031: patch031-backport-Add-CRC-check-of-commitlog.patch
Patch0032: patch032-backport-Clear-POP_CK-when-sending-messages.patch
Patch0033: patch033-backport-Lock-granularity-issue-causing-LMQ-message-loss.patch
Patch0034: patch034-backport-Let-consumer-be-aware-of-message-queue-assignment-change.patch
2023-09-08 12:15:05 +08:00
BuildRequires: java-1.8.0-openjdk-devel, maven, maven-local, git
Requires: java-1.8.0-openjdk-devel
2023-08-29 09:14:30 +08:00
%description
Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
%prep
2023-12-08 09:50:26 +08:00
# -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
2023-08-29 09:14:30 +08:00
%build
2023-09-08 12:15:05 +08:00
mvn -Prelease-all -DskipTests clean package -U
2023-08-29 09:14:30 +08:00
%install
2023-12-08 09:50:26 +08:00
cd %{_builddir}/rocketmq-all-5.1.5-source-release/distribution/target
2023-08-29 09:14:30 +08:00
mkdir -p $RPM_BUILD_ROOT%{_prefix}
2023-12-08 09:50:26 +08:00
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}
2023-08-29 09:14:30 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD
%files
%defattr(-,root,root)
%attr(-,rocketmq,rocketmq) %{_prefix}
%dir %attr(755, rocketmq, rocketmq) %{_prefix}
%pre
getent group rocketmq >/dev/null || groupadd -r rocketmq
getent passwd rocketmq >/dev/null || useradd -r -g rocketmq -d / -s /sbin/nologin rocketmq
exit 0
%changelog
* Mon Dec 11 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-35
- backport Let consumer be aware of message queue assignment change
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-34
- backport Lock granularity issue causing LMQ message loss
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-33
- backport Clear POP_CK when sending messages
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-32
- backport Add the CRC check of commitlog
2023-12-08 16:56:52 +08:00
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-31
- backport remove some code
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-30
- backport Introduce a new event NettyEventType.ACTIVE
2023-12-08 16:50:34 +08:00
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-29
- backport fix proxy client language error
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-28
- backport Utilizing cache to avoid duplicate parsing
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-27
- backport AddBroker removes parsing configuration from body
2023-12-08 16:32:05 +08:00
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-26
- backport Fix channel connect issue
2023-12-08 16:32:05 +08:00
2023-12-08 16:27:47 +08:00
* Fri Dec 8 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-25
- backport some format and doc
2023-12-08 09:50:26 +08:00
* 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
2023-12-05 15:00:40 +08:00
* Tue Dec 5 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-22
- backport some enhancements
2023-12-05 14:54:08 +08:00
* Tue Dec 5 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-21
- backport add goaway mechanism
2023-11-20 13:46:13 +08:00
* Mon Nov 20 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-20
- backport some bugfixes
* Mon Nov 20 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-19
- backport some enhancement of tiered storage
* Mon Nov 20 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-18
- backport-Convergent-thread-pool-creation
* Mon Oct 30 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-17
- backport Optimize fault tolerant-mechanism
2023-10-30 20:47:50 +08:00
* Mon Oct 30 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-16
- backport some bug fixes
2023-10-30 20:40:07 +08:00
* Mon Oct 30 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-15
- backport queue selection strategy
2023-10-06 23:51:02 +08:00
* Fri Oct 6 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-14
- backport enhance admin output
2023-11-20 13:46:13 +08:00
* Mon Oct 2 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-13
2023-10-02 21:16:25 +08:00
- backport enhance medata to json
2023-11-20 13:46:13 +08:00
* Sun Oct 1 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-12
2023-10-01 22:17:15 +08:00
- backport optimize config
2023-11-20 13:46:13 +08:00
* Sun Oct 1 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-11
2023-10-01 10:27:45 +08:00
- backport add some fixes
2023-09-20 17:59:10 +08:00
* Wed Sep 20 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-10
- backport support kv storage
2023-09-19 18:21:07 +08:00
* Tue Sep 19 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-9
- backport add allow boundary type
2023-09-19 16:10:33 +08:00
* Tue Sep 19 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-8
- backport fix some docs error
2023-09-15 15:49:36 +08:00
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-7
- backport auto batch producer
2023-09-15 15:20:33 +08:00
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-6
- backport fix some bugs
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-5
- backport Support Proxy Protocol for gRPC and Remoting Server
2023-09-15 08:54:17 +08:00
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-4
- backport refactor receipt processor
2023-09-13 17:29:07 +08:00
* Wed Sep 13 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-3
- backport some enhancement
2023-09-08 12:15:05 +08:00
* Fri Sep 08 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-2
- fix some bugs
* Thu Aug 17 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-1
- init rocketmq spec