-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from jayunit100/2_1_5
2.1.6-SNAPSHOT (for 2.1.5 release) + spc.tmpl updates for RPM Releases.
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Name: rhs-hadoop | ||
Version: $version | ||
Release: $release | ||
#if $epoch | ||
Epoch: $epoch | ||
#end if | ||
License: Apache | ||
Summary: GlusterFS Hadoop Plugin | ||
Group: Application/File | ||
|
||
#for $i, $artifact in $enumerate($all_artifacts) | ||
Source$i: $artifact | ||
#end for | ||
|
||
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 | ||
The Gluster Filesystem Hadoop implementation for both Hadoop 1.x and 2.x. This | ||
Java plugin for Hadoop allows MapReduce and YARN to run on top of Gluster, by providing the | ||
GlusterFileSystem (1.x) and GlusterFs (2.x) implementations. These should be referenced | ||
in the hadoop configuration files and loaded at runtime as the FileSystem implementation. | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
/bin/mkdir -p %{buildroot}%{_javadir} | ||
/bin/mkdir -p %{buildroot}%{hadoop_libdir} | ||
|
||
#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 | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
#for $i, $artifact in $enumerate($all_artifacts) | ||
#if $artifact.endswith('.jar') | ||
%{_javadir}/$artifact | ||
%{hadoop_libdir}/$artifact | ||
#end if | ||
#end for | ||
|
||
%changelog | ||
* Wed Jan 9 2014 Jay Vyas <[email protected]> 2.1.4 renamed | ||
- rename to rhs-hadoop for release | ||
|
||
* Fri Nov 22 2013 Jay Vyas <[email protected]> 2.1.4 | ||
- Initial import into the glusterfs-hadoop plugin as part of our deployment. | ||
|
||
* Fri May 18 2012 Anthony Towns <[email protected]> - 0.20.2-0 | ||
- Initial build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters