view elasticsearch.spec @ 16:aa606d801e02

work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
author Carl Byington <>
date Thu, 11 Apr 2013 13:48:24 -0700
parents 0e45fe64b10d
children 292b6583148a
line wrap: on
line source

# prevent brp repack jar files
%define __os_install_post %{nil}

%define _bindir  /usr/local/bin

Summary:        elasticsearch is a scalable full text search engine
Name:           elasticsearch
Version:        0.20.2
Release:        0%{?dist}
Group:          System Environment/Daemons
License:        Apache 2.0
BuildArch:      noarch
#Source0:         curl{version} >elasticsearch-%{version}.tar.gz
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires:  java-1.7.0-openjdk

%if "%{?dist}" != ".el6"
# el6 does not have maven yet, so we assume it is manually installed
# in /usr/local/apache-maven-3.0.5
BuildRequires:  maven


%setup -q

[ "%{?dist}" == ".el6" ] && export PATH=/usr/local/apache-maven-3.0.5/bin:$PATH
mvn -Dmaven.test.skip=true package

install -D -p -m 644 target/elasticsearch-%{version}.jar $RPM_BUILD_ROOT%{_bindir}/elasticsearch.jar


%attr(0755,root,root) %{_bindir}/*

* Wed Apr 10 2013  <> - 0.20.6-0
- Initial build.