Name: zookeeper Version: 3.7.1 Release: 1%{?dist}.harbottle Summary: High-performance coordination service for distributed applications. Group: Applications/System License: Apache License v2.0 URL: https://www.apache.org/dist/zookeeper/ Source0: https://www.apache.org/dist/zookeeper/zookeeper-%{version}/apache-zookeeper-%{version}.tar.gz Source1: zookeeper.service Source2: zoo.cfg Source3: log4j.properties Source4: zookeeper.sysconfig BuildArch: noarch BuildRequires: gcc,make,libtool,autoconf,cppunit-devel,hostname,systemd %if 0%{?rhel} == 8 BuildRequires: maven,python2-devel %else BuildRequires: rh-maven33,python-devel,java-1.8.0-openjdk-devel %endif Requires: java,nc,systemd Requires(pre): shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units AutoReqProv: no %description ZooKeeper is a distributed, open-source coordination service for distributed applications. It exposes a simple set of primitives that distributed applications can build upon to implement higher level services for synchronization, configuration maintenance, and groups and naming. It is designed to be easy to program to, and uses a data model styled after the familiar directory tree structure of file systems. It runs in Java and has bindings for both Java and C. Coordination services are notoriously hard to get right. They are especially prone to errors such as race conditions and deadlock. The motivation behind ZooKeeper is to relieve distributed applications the responsibility of implementing coordination services from scratch. %define _noarch_libdir /usr/lib %define _zookeeper_noarch_libdir %{_noarch_libdir}/zookeeper %define _maindir %{buildroot}%{_zookeeper_noarch_libdir} %prep %setup -q -n apache-zookeeper-%{version} %build %if 0%{?rhel} == 8 mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests -B package %else scl enable rh-maven33 - </dev/null || groupadd -r zookeeper getent passwd zookeeper >/dev/null || useradd -r -g zookeeper -d / -s /sbin/nologin zookeeper exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %changelog * Tue May 10 2022 - harbottle@room3d3.com - 3.7.1-1 - Bump version * Wed May 12 2021 - harbottle@room3d3.com - 3.7.0-2 - Fix build * Sat Mar 27 2021 - harbottle@room3d3.com - 3.7.0-1 - Fix build - Bump version * Mon Aug 31 2020 - harbottle@room3d3.com - 3.6.2-1 - Bump version * Tue May 12 2020 - harbottle@room3d3.com - 3.6.1-1 - Tidy spec file * Fri Oct 04 2019 Tigran Mkrtchyan - 3.5.5-3 - fix loading of systemd environment file - introduce variable to control package version * Thu Jul 11 2019 Anton Samets - add needed Requeries for correct rpm building and fix URL and Source paths * Fri Jul 5 2019 Sam Kottler - Remove systemd-rpm-macros from BuildRequires * Tue Jun 25 2019 Tigran Mkrtchyan - remove obsolete files * Tue Jun 25 2019 Tigran Mkrtchyan - 3.5.5-1 - migrate to zookeeper 3.5.5 * Mon May 27 2019 Tigran Mkrtchyan - 3.4.14-2 - Migrate to systemd * Thu May 02 2019 Tigran Mkrtchyan - 3.4.14-1 - Bump version to 3.4.14 * Mon Apr 17 2017 itxx00 - 3.4.10-1 - Bump version to 3.4.10 * Mon Mar 13 2017 itxx00 - 3.4.9-1 - Bump version to 3.4.9 * Thu Jul 7 2016 Jeremy Christian - 3.4.8-1 - Bump version to 3.4.8 * Mon Dec 8 2014 David Xie - 3.4.6-1 - Bump version to 3.4.6 * Thu May 30 2013 Sam Kottler - 3.4.5-1 - Updated to 3.4.5 * Tue Oct 2 2012 Sam Kottler - 3.3.2-1 - Initialize package creation