代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/kafka 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global debug_package %{nil}
%global debug_package %{nil}
%define kafka_home /opt/kafka
Name: kafka
Version: 2.6.0
Release: 2
Summary: A Distributed Streaming Platform.
License: Apache License, Version 2.0
Source0: https://archive.apache.org/dist/%{name}/%{version}/%{name}-%{version}-src.tgz
Source1: https://services.gradle.org/distributions/gradle-6.5-bin.zip
Source2: kafka.service
BuildRequires: systemd java-1.8.0-openjdk-devel
Provides: kafka = %{version}
Requires: java-1.8.0-openjdk
%description
Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \
-c "User for Kafka services" %{name}
exit 0
%prep
%setup -q -n %{name}-%{version}-src
%build
unzip -q $RPM_SOURCE_DIR/gradle-6.5-bin.zip
./gradle-6.5/bin/gradle
./gradlew jar
%install
mkdir -p $RPM_BUILD_ROOT%{kafka_home}/{libs,bin,config}
install -p -D -m 755 bin/*.sh $RPM_BUILD_ROOT%{kafka_home}/bin
install -p -D -m 644 config/* $RPM_BUILD_ROOT%{kafka_home}/config
cp -n */build/libs/* $RPM_BUILD_ROOT%{kafka_home}/libs
cp -n */build/dependant-libs*/* $RPM_BUILD_ROOT%{kafka_home}/libs
cp -n */*/build/libs/* $RPM_BUILD_ROOT%{kafka_home}/libs
cp -n */*/build/dependant-libs*/* $RPM_BUILD_ROOT%{kafka_home}/libs
%files
%defattr(-,root,root)
%{kafka_home}
%doc NOTICE
%doc LICENSE
%clean
rm -rf %{buildroot}
%changelog
* Thu Mar 25 2021 huanghaitao <huanghaitao8@huawei.com> 2.6.0 - 2
- Remove dist macros
* Sat Aug 15 2020 Hao Zhang <unioah@isrc.iscas.ac.cn>
- init
* Sat Oct 04 2020 Hao Zhang <unioah@isrc.iscas.ac.cn>
- add service
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。