Mercurial > logstash
annotate elasticsearch.spec @ 22:226946e5dca4
work on building from source
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 17 Apr 2013 19:38:59 -0700 |
parents | 1d50b19beda0 |
children | bb48b2672ff2 |
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 |
21
1d50b19beda0
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
19
diff
changeset
|
8 Version: 0.20.5 |
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 |
19
729f36e68da8
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
18
diff
changeset
|
46 for f in elasticsearch jna jts log4j lucene-core lucene-analyzers lucene-highlighter lucene-memory lucene-queries snappy-java spatial4j; do |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
47 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
|
48 done |
14
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 %clean |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 rm -rf $RPM_BUILD_ROOT |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
53 |
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 %files |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
56 %defattr(-,root,root,-) |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
57 %attr(0755,root,root) %{_bindir} |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
58 |
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 %changelog |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 * 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
|
63 - Initial build. |