!43 change name to zookeeper
From: @xiexing01 Reviewed-by: @macchen1 Signed-off-by: @macchen1
This commit is contained in:
commit
ef9dcca978
@ -1,9 +1,9 @@
|
||||
%define rel_ver 3.6.1
|
||||
%define pkg_ver 2.3
|
||||
%define pkg_ver 2.5
|
||||
%define _prefix /opt/zookeeper
|
||||
|
||||
Summary: High-performance coordination service for distributed applications.
|
||||
Name: apache-zookeeper
|
||||
Name: zookeeper
|
||||
Version: %{rel_ver}
|
||||
Release: %{pkg_ver}
|
||||
License: Apache-2.0 and OpenSSL and SSLeay and MIT and BSD
|
||||
@ -23,11 +23,11 @@ Requires: java-1.8.0-openjdk,systemd
|
||||
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n apache-zookeeper-3.6.1
|
||||
|
||||
%build
|
||||
mvn -DskipTests package
|
||||
tar xvf zookeeper-assembly/target/%{name}-%{rel_ver}-bin.tar.gz -C .
|
||||
tar xvf zookeeper-assembly/target/apache-%{name}-%{rel_ver}-bin.tar.gz -C .
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_prefix}/bin
|
||||
@ -36,9 +36,9 @@ mkdir -p %{buildroot}%{_prefix}/conf
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/zookeeper
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/zookeeper/data
|
||||
|
||||
install -p -D -m 755 %{name}-%{rel_ver}-bin/bin/*.sh %{buildroot}%{_prefix}/bin
|
||||
install -p -D -m 644 %{name}-%{rel_ver}-bin/lib/*.jar %{buildroot}%{_prefix}/lib
|
||||
install -p -D -m 644 %{name}-%{rel_ver}-bin/conf/* %{buildroot}%{_prefix}/conf
|
||||
install -p -D -m 755 apache-%{name}-%{rel_ver}-bin/bin/*.sh %{buildroot}%{_prefix}/bin
|
||||
install -p -D -m 644 apache-%{name}-%{rel_ver}-bin/lib/*.jar %{buildroot}%{_prefix}/lib
|
||||
install -p -D -m 644 apache-%{name}-%{rel_ver}-bin/conf/* %{buildroot}%{_prefix}/conf
|
||||
install -p -D -m 644 %{S:1} %{buildroot}%{_prefix}/conf/zoo.cfg
|
||||
install -p -D -m 644 %{S:2} %{buildroot}%{_unitdir}/zookeeper.service
|
||||
install -p -D -m 644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/zookeeper
|
||||
@ -71,9 +71,15 @@ exit 0
|
||||
%systemd_postun_with_restart zookeeper.service
|
||||
|
||||
%changelog
|
||||
* Fri Feb 25 2022 wangkai <wangkai385@huawei.com> - 2.3
|
||||
* Sun Nov 6 2022 xiexing <xiexing4@hisilicon.com> - 3.6.1-2.5
|
||||
- change Name apache-zookeeper to zookeeper
|
||||
|
||||
* Fri Feb 25 2022 wangkai <wangkai385@huawei.com> - 2.4
|
||||
- Rebuild for fix log4j1.x cves
|
||||
|
||||
* Thu Dec 16 2021 wangkai <wangkai385@huawei.com> - 2.3
|
||||
- This package depends on log4j.After the log4j vulnerability CVE-2021-44228 is fixed,the version needs to be rebuild.
|
||||
|
||||
* Fri Jun 18 2021 lingsheng <lingsheng@huawei.com> - 2.2
|
||||
- Fix reload service failure
|
||||
|
||||
@ -82,6 +88,6 @@ exit 0
|
||||
|
||||
* Thu Mar 25 2021 baizhonggui <baizhonggui@huawei.com> - 2.0
|
||||
- Delete %{dist} in Release
|
||||
|
||||
|
||||
* Sun Jun 28 2020 hao zhang <unioah@isrc.iscas.ac.cn> - 1.0
|
||||
- Add zookeeper.service
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user