加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
zookeeper.spec 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
wangzejun19 提交于 2022-06-11 18:28 . update zookeeper.spec.
%define rel_ver 3.8.0
%define pkg_ver 1
%define _prefix /opt/zookeeper
%global debug_package %{nil}
Summary: High-performance coordination service for distributed applications.
Name: zookeeper
Version: %{rel_ver}
Release: %{pkg_ver}
License: Apache-2.0 and OpenSSL and SSLeay and MIT and BSD
Group: Applications/Databases
URL: https://www.apache.org/dist/zookeeper/
Source0: https://github.com/apache/zookeeper/archive/refs/tags/release-3.8.0-1.tar.gz
Source1: zoo.cfg
Source2: zookeeper.service
Source3: zookeeper.sysconfig
Source4: log4j.properties
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
BuildRequires: java-1.8.0-openjdk-devel,javapackages-local,maven,hostname,maven-local,xmvn,xmvn-install,systemd
Requires: java-1.8.0-openjdk,systemd
BuildArch: noarch
%description
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
%prep
%setup -q -n zookeeper-release-%{version}-1
%build
%mvn_build -f -b
%install
%mvn_install -X
cat /home/abuild/rpmbuild/BUILDROOT/zookeeper-3.8.0-1.oe1.aarch64/usr/share/maven-metadata/zookeeper.xml
cat .mfiles
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.md
%pre
getent group zookeeper >/dev/null || groupadd -r zookeeper
getent passwd zookeeper >/dev/null || useradd -r -g zookeeper -d / -s /sbin/nologin zookeeper
exit 0
%post
%systemd_post zookeeper.service
%preun
%systemd_preun zookeeper.service
%postun
%systemd_postun_with_restart zookeeper.service
%changelog
* Thu May 5 2022 xiexing <xiexing4@hisilicon.com> - 3.8.0-1
- update version
* Tue Oct 24 2021 wangyue <wangyue92@huawei.com> - 2.4
- Add systemd to buildrequire because %{_unitdir} can't recognize
* Thu Jun 24 2021 Ge Wang <wangge20@huawei.com> - 2.3
- Add provides item apache-zookeeper and add packages to system default java package directory
* Fri Jun 18 2021 lingsheng <lingsheng@huawei.com> - 2.2
- Fix reload service failure
* Thu Apr 1 2021 zhangshaoning <zhangshaoning@uniontech.com> - 2.1
- Repair status failure after stopping service
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化