-
Notifications
You must be signed in to change notification settings - Fork 2
/
zookeeper-dist.spec
72 lines (52 loc) · 1.49 KB
/
zookeeper-dist.spec
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
Name: zookeeper-dist
Version: 3.4.5
Release: 1%{?dist}
Summary: ZooKeeper server
BuildArch: noarch
Group: System Environment/Daemons
License: ASL 2.0
URL: http://zookeeper.apache.org/
Source: http://www.apache.org/dyn/closer.cgi/zookeeper/zookeeper-%{version}/zookeeper-%{version}.tar.gz
Prefix: /opt/zookeeper-%{version}
Requires: java >= 1.6.0
%define __jar_repack 0
%description
ZooKeeper server packaged from the binary distribution.
ZooKeeper is a centralized service for maintaining configuration information,
naming, providing distributed synchronization, and providing group services.
%prep
%setup -q -n zookeeper-%{version}
%install
mkdir -p %{buildroot}%{prefix}
cp -R . %{buildroot}%{prefix}
%post
alternatives --install /etc/alternatives/zookeeper zookeeper %{prefix} 100
%postun
alternatives --remove zookeeper %{prefix}
%files
%defattr(-,root,root,0755)
%dir %{prefix}
%{prefix}/bin
%{prefix}/contrib
%{prefix}/dist-maven
%{prefix}/lib
%{prefix}/recipes
%{prefix}/src
%{prefix}/build.xml
%{prefix}/ivysettings.xml
%{prefix}/ivy.xml
%{prefix}/zookeeper-%{version}.jar
%{prefix}/zookeeper-%{version}.jar.asc
%{prefix}/zookeeper-%{version}.jar.md5
%{prefix}/zookeeper-%{version}.jar.sha1
%dir %{prefix}/conf
%config %{prefix}/conf/log4j.properties
%doc %{prefix}/conf/zoo_sample.cfg
%{prefix}/conf/configuration.xsl
%doc %{prefix}/docs
%doc %{prefix}/CHANGES.txt
%doc %{prefix}/LICENSE.txt
%doc %{prefix}/NOTICE.txt
%doc %{prefix}/README_packaging.txt
%doc %{prefix}/README.txt
%changelog