Mercurial > logstash
annotate elasticsearch.spec @ 16:aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 11 Apr 2013 13:48:24 -0700 |
parents | 0e45fe64b10d |
children | 292b6583148a |
rev | line source |
---|---|
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 # prevent brp repack jar files |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 %define __os_install_post %{nil} |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 %define _bindir /usr/local/bin |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 Summary: elasticsearch is a scalable full text search engine |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 Name: elasticsearch |
16
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
14
diff
changeset
|
8 Version: 0.20.2 |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 Release: 0%{?dist} |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 Group: System Environment/Daemons |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 License: Apache 2.0 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 URL: http://www.elasticsearch.org/ |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 BuildArch: noarch |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 #Source0: curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v%{version} >elasticsearch-%{version}.tar.gz |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 Source0: %{name}-%{version}.tar.gz |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 BuildRequires: java-1.7.0-openjdk |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 %if "%{?dist}" != ".el6" |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 # el6 does not have maven yet, so we assume it is manually installed |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 # in /usr/local/apache-maven-3.0.5 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 BuildRequires: maven |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 %endif |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
24 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 %description |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 %prep |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 %setup -q |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 %build |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
33 [ "%{?dist}" == ".el6" ] && export PATH=/usr/local/apache-maven-3.0.5/bin:$PATH |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 mvn -Dmaven.test.skip=true package |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
36 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
37 %install |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
38 rm -rf $RPM_BUILD_ROOT |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
39 install -D -p -m 644 target/elasticsearch-%{version}.jar $RPM_BUILD_ROOT%{_bindir}/elasticsearch.jar |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
40 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
41 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
42 %clean |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
43 rm -rf $RPM_BUILD_ROOT |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
44 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
45 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
46 %files |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
47 %defattr(-,root,root,-) |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
48 %attr(0755,root,root) %{_bindir}/* |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
49 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
50 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
51 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 %changelog |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 * Wed Apr 10 2013 <carl@five-ten-sg.com> - 0.20.6-0 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
54 - Initial build. |