Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (38 sloc) 1.39 KB
Summary: GPL Compression Libraries for Hadoop
Version: @VERSION@
Release: @RELEASE@
License: GPL
Source0: @PACKAGE_NAME@-@VERSION@.tar.gz
Group: Development/Libraries
Buildroot: %{_tmppath}/%{name}-%{version}
BuildRequires: ant, ant-nodeps, gcc-c++, lzo-devel
Requires: lzo
%define _use_internal_dependency_generator 0
%define hadoop_home @HADOOP_HOME@
GPLed Compression Libraries for Hadoop, built at $DATE on $HOST
# Requires: exclude since it generally isn't installed
# on the system library path, and we don't want to have to install
# with --nodeps
# RHEL doesn't have nice macros. Oh well. Do it old school.
%define our_req_script %{name}
cat <<__EOF__ > %{our_req_script}
%{__find_requires} | grep -v libjvm
%define __find_requires %{_builddir}/%{name}-%{version}/%{our_req_script}
chmod +x %{__find_requires}
ant -Dname=%{name} -Dversion=%{version} compile-native package
mkdir -p $RPM_BUILD_ROOT/%{hadoop_home}/lib
install -m644 $RPM_BUILD_DIR/%{name}-%{version}/build/%{name}-%{version}.jar $RPM_BUILD_ROOT/%{hadoop_home}/lib/
rsync -av --no-t $RPM_BUILD_DIR/%{name}-%{version}/build/%{name}-%{version}/lib/native/ $RPM_BUILD_ROOT/%{hadoop_home}/lib/native/