forked from gluster/glusterfs-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glusterfs-hadoop.spec.tmpl
97 lines (74 loc) · 2.57 KB
/
glusterfs-hadoop.spec.tmpl
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
88
89
90
91
92
93
94
95
96
97
Name: rhs-hadoop
Version: $version
# release number is automatically updated when source version is the same
Release: $release%{?dist}
#if $epoch
Epoch: $epoch
#end if
License: Apache License
URL: https://forge.gluster.org/hadoop/glusterfs-hadoop
Summary: GlusterFS Hadoop Plug-in
Group: Applications/File
#for $i, $artifact in $enumerate($all_artifacts)
Source$i: $artifact
#end for
Source100: 20_glusterfs_hadoop_sudoers
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# yes, this is /usr/lib even on 64-bit
%global hadoop_libdir %{_prefix}/lib/hadoop/lib
%description
Hadoop FileSystem support for GlusterFS
%package javadoc
Summary: API documentation for %{name}
%description javadoc
%{summary}
%prep
%build
%install
rm -rf %{buildroot}
/bin/mkdir -p %{buildroot}%{_javadir}
/bin/mkdir -p %{buildroot}%{hadoop_libdir}
/bin/mkdir -p %{buildroot}%{_sysconfdir}/sudoers.d
#for $i, $artifact in $enumerate($all_artifacts)
#if $artifact.endswith('.jar')
/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir}
/bin/ln -s ../../../..%{_javadir}/$artifact %{buildroot}%{hadoop_libdir}/$artifact
#end if
#end for
# move sudoers file to /etc/sudoers.d/
install -m 644 %{SOURCE100} %{buildroot}%{_sysconfdir}/sudoers.d/
%clean
rm -rf %{buildroot}
%files javadoc -f .mfiles-javadoc
%doc COPYING
%files
%defattr(-,root,root,-)
#for $i, $artifact in $enumerate($all_artifacts)
#if $artifact.endswith('.jar')
%{_javadir}/$artifact
%{hadoop_libdir}/$artifact
#end if
#end for
%config %{_sysconfdir}/sudoers.d/20_glusterfs_hadoop_sudoers
%changelog
* Thu Mar 05 2015 Shubhendu Tripathi <[email protected]> 2.1.6-4
- bz#1094881 Modified to generate javadoc
* Thu Oct 13 2014 Shubhendu Tripathi <[email protected]> 2.1.6-3
- bz#1122909 Corrected the product name as GlusterFS instead of
- Red Hat Storage in description
* Thu Oct 09 2014 Shubhendu Tripathi <[email protected]> 2.1.6-2
- bz#1122909 corrected the description
* Thu Oct 09 2014 Shubhendu Tripathi <[email protected]> 2.1.6-1
- bz#1065417 fixed rpmlint errors and warnings
* Wed Feb 06 2014 Jeff Vance <[email protected]> 2.1.6
- fix name from "gluster" to "glusterfs-hadoop"
- minor README updates
* Wed Feb 05 2014 Jeff Vance <[email protected]> 2.1.5-2
- installs the sudoers file. BZ 1059986
* Wed Jan 9 2014 Jay Vyas <[email protected]> 2.1.4-1
- rename to rhs-hadoop for release
* Fri Nov 22 2013 Jay Vyas <[email protected]> 2.1.4
- Initial import into the glusterfs-hadoop plug-in as part of our deployment.
* Fri May 18 2012 Anthony Towns <[email protected]> - 0.20.2-0
- Initial build