-
Notifications
You must be signed in to change notification settings - Fork 2
/
hadoop2-dist.spec
69 lines (50 loc) · 1.64 KB
/
hadoop2-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
Name: hadoop2-dist
Version: 2.2.0
Release: 1%{?dist}
Summary: Hadoop distributed computing components
Group: System Environment/Daemons
License: ASL 2.0
URL: http://hadoop.apache.org
Source: http://www.apache.org/dyn/closer.cgi/hadoop/hadoop-%{version}/hadoop-%{version}.tar.gz
BuildArch: noarch
Prefix: /opt/hadoop-%{version}
Requires: java >= 1.6.0
Provides: hadoop
%define __jar_repack 0
%description
Hadoop packaged from the binary distribution.
The Apache Hadoop software library is a framework that allows for the
distributed processing of large data sets across clusters of computers using
simple programming models. It is designed to scale up from single servers to
thousands of machines, each offering local computation and storage. Rather than
rely on hardware to deliver high-availability, the library itself is designed
to detect and handle failures at the application layer, so delivering a
highly-available service on top of a cluster of computers, each of which may be
prone to failures.
%prep
%setup -q -n hadoop-%{version}
%install
mkdir -p %{buildroot}%{prefix}
cp -R . %{buildroot}%{prefix}
%post
alternatives --install /etc/alternatives/hadoop-2 hadoop-2 %{prefix} 100
%postun
alternatives --remove hadoop-2 %{prefix}
%files
%defattr(-,root,root,0755)
%{prefix}/bin
%{prefix}/etc
%{prefix}/include
%{prefix}/libexec
%{prefix}/sbin
%{prefix}/share
%dir %{prefix}/lib
%dir %{prefix}/lib/native
%doc %{prefix}/LICENSE.txt
%doc %{prefix}/NOTICE.txt
%doc %{prefix}/README.txt
# Included in -native package
%exclude %{prefix}/bin/container-executor
%exclude %{prefix}/bin/test-container-executor
%exclude %{prefix}/lib/native/*
%changelog