Mercurial > logstash
annotate elasticsearch.spec @ 18:2b887e35b5cd
work on building from source
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 15 Apr 2013 19:33:28 -0700 |
parents | 292b6583148a |
children | 729f36e68da8 |
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 |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
4 %define _bindir /usr/local/bin/elasticsearch |
14
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) |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
17 BuildRequires: java-1.7.0-openjdk-devel |
14
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 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
34 mvn -Dmaven.test.skip=true clean package |
14
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 |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
39 mkdir xx |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
40 cd xx |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
41 tar xfz ../target/releases/%{name}-%{version}.tar.gz |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
42 for f in %{name}-%{version}/lib/*.jar; do |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
43 b=$(basename $f) |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
44 install -D -p -m 644 $f $RPM_BUILD_ROOT%{_bindir}/$b |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
45 done |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
46 rm -f $RPM_BUILD_ROOT%{_bindir}/lucene-core*.jar |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
47 for f in elasticsearch jna jts log4j lucene-analyzers lucene-highlighter lucene-memory lucene-queries snappy-java spatial4j; do |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
48 mv $RPM_BUILD_ROOT%{_bindir}/$f*.jar $RPM_BUILD_ROOT%{_bindir}/$f.jar |
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
49 done |
14
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 %clean |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 rm -rf $RPM_BUILD_ROOT |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
54 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
55 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
56 %files |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
57 %defattr(-,root,root,-) |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
58 %attr(0755,root,root) %{_bindir} |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
59 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
60 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
61 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 %changelog |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
63 * 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
|
64 - Initial build. |