forked from charlessimpson/dist-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accumulo-dist.spec
87 lines (64 loc) · 2 KB
/
accumulo-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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Name: accumulo-dist
Version: 1.5.1
Release: 1%{?dist}
Summary: Apache Accumulo is a sorted, distributed key/value store based on Google's BigTable design.
Group: System Environment/Daemons
License: ASL 2.0
URL: http://accumulo.apache.org/
Source: http://www.apache.org/dyn/closer.cgi/accumulo/%{version}/accumulo-%{version}-bin.tar.gz
BuildArch: noarch
Prefix: /opt/accumulo-%{version}
Requires: hadoop >= 2
Requires: zookeeper >= 3
Requires: java >= 1.6.0
Provides: accumulo
%define __jar_repack 0
%description
Accumulo packaged from the binary distribution.
Apache Accumulo is a highly scalable structured store based on Google's
BigTable. Accumulo is written in Java and operates over the Hadoop Distributed
File System (HDFS), which is part of the popular Apache Hadoop project.
Accumulo supports efficient storage and retrieval of structured data, including
queries for ranges, and provides support for using Accumulo tables as input and
output for MapReduce jobs.
Accumulo features automatic load-balancing and partitioning, data compression
and fine-grained security labels.
%prep
%setup -q -n accumulo-%{version}
%install
mkdir -p %{buildroot}%{prefix}
cp -R . %{buildroot}%{prefix}
%post
alternatives --install /etc/alternatives/accumulo accumulo %{prefix} 100
%postun
alternatives --remove accumulo %{prefix}
%files
%defattr(-,root,root,0755)
%{prefix}/bin
%{prefix}/conf
%{prefix}/lib
%{prefix}/logs
%{prefix}/proxy
%{prefix}/scripts
%{prefix}/server
%{prefix}/test
%dir %{prefix}/lib/native
%dir %{prefix}/lib/native/map
%doc %{prefix}/CHANGES
%doc %{prefix}/LICENSE
%doc %{prefix}/NOTICE
%doc %{prefix}/README
# Included in doc subpackage
%exclude %{prefix}/docs
%exclude %{prefix}/examples
# Included in -native package
%exclude %{prefix}/lib/native/map/libNativeMap-Linux-amd64-64.so
%changelog
%package doc
Group: Documentation
Summary: Documentation Apache Accumulo
%description doc
Documentation and examples, including Javadoc, for Apache Accumulo.
%files doc
%doc %{prefix}/docs
%doc %{prefix}/examples