blob: 048a58d7d6d98c79b19c3b7e05f724ad11b5f04f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
%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
Version: 5.1.3
Release: 10
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
Patch0001: patch001-backport-some-typo-fixes.patch
Patch0002: patch002-backport-some-enhancement.patch
Patch0003: patch003-backport-feature-refactor-recipt-processor.patch
Patch0004: patch004-backport-Support-Proxy-Protocol-for-gRPC-and-Remoting-Server.patch
Patch0005: patch005-backport-fix-some-bugs.patch
Patch0006: patch006-backport-auto-batch-producer.patch
Patch0007: patch007-backport-fix-some-bugs.patch
Patch0008: patch008-backport-Allow-BoundaryType.patch
Patch0009: patch009-backport-Support-KV-Storage.patch
BuildRequires: java-1.8.0-openjdk-devel, maven, maven-local, git
Requires: java-1.8.0-openjdk-devel
%description
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
%build
mvn -Prelease-all -DskipTests clean package -U
%install
cd %{_builddir}/%{path_name}/distribution/target
mkdir -p $RPM_BUILD_ROOT%{_prefix}
cp -pr %{_builddir}/%{path_name}/distribution/target/rocketmq-5.1.4-SNAPSHOT/rocketmq-5.1.4-SNAPSHOT/* $RPM_BUILD_ROOT%{_prefix}
%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
* Wed Sep 20 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-10
- backport support kv storage
* Tue Sep 19 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-9
- backport add allow boundary type
* Tue Sep 19 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-8
- backport fix some docs error
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-7
- backport auto batch producer
* 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
* Fri Sep 15 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-4
- backport refactor receipt processor
* Wed Sep 13 2023 ShiZhili <shizhili_yewu@cmss.chinamobile.com> - 5.1.3-3
- backport some enhancement
* 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
|