Mercurial > logstash
annotate elasticsearch.spec @ 17:292b6583148a
work on building from source
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 12 Apr 2013 15:05:23 -0700 |
parents | aa606d801e02 |
children | 2b887e35b5cd |
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) |
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 sed -i -e 's,guava</include>,guava</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
35 <include>org.apache.lucene:lucene</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
36 <include>log4j:log4j</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
37 <include>net.java.dev.jna:jna</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
38 <include>org.xerial.snappy:snappy-java</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
39 <include>com.spatial4j:spatial4j</include> \ |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
40 <include>com.vividsolutions:jts</include>,g' pom.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
41 sed -i -e 's,<optional>true</optional>,,g' pom.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
42 sed -i -e 's,useTransitiveFiltering>true,useTransitiveFiltering>false,g' src/main/assemblies/common-bin.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
43 echo '*********' pom.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
44 cat pom.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
45 echo '*********' src/main/assemblies/common-bin.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
46 cat src/main/assemblies/common-bin.xml |
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
47 mvn -Dmaven.test.skip=true clean package |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
48 |
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 %install |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
51 rm -rf $RPM_BUILD_ROOT |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
52 install -D -p -m 644 target/elasticsearch-%{version}.jar $RPM_BUILD_ROOT%{_bindir}/elasticsearch.jar |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
53 find . -name '*.jar' |
14
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 %clean |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
57 rm -rf $RPM_BUILD_ROOT |
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 %files |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
61 %defattr(-,root,root,-) |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
62 %attr(0755,root,root) %{_bindir}/* |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
63 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
64 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
65 |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
66 %changelog |
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
67 * 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
|
68 - Initial build. |