annotate elasticsearch.spec @ 30:f2691b83bafa

update to ES 0.90.0 and logstash 1.1.12
author Carl Byington <carl@five-ten-sg.com>
date Fri, 10 May 2013 15:01:48 -0700
parents bb48b2672ff2
children 0faebb0b0fa4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
5 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
6 Name: elasticsearch
30
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
7 Version: 0.90.0
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
8 Release: 0%{?dist}
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
9 Group: System Environment/Daemons
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
10 License: Apache 2.0
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
11 URL: http://www.elasticsearch.org/
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
12 BuildArch: noarch
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
13 Source0: https://nodeload.github.com/%{name}/%{name}/tar.gz/v%{version}/%{name}-%{version}.tar.gz
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
14 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
15 BuildRequires: java-devel
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
16
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
17 %if "%{?dist}" != ".el6"
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
18 # 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
19 # in /usr/local/apache-maven-3.0.5
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
20 BuildRequires: maven-local
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
21 %endif
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
22
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
23 %description
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
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
26 %prep
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
27 %setup -q
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
28
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
29
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
30 %build
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
31 [ "%{?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
32 mvn -Dmaven.test.skip=true clean package
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
33
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
34
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
35 %install
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
36 rm -rf $RPM_BUILD_ROOT
18
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
37 mkdir xx
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
38 cd xx
30
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
39 tar xvfz ../target/releases/%{name}-%{version}.tar.gz
18
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
40 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
41 b=$(basename $f)
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
42 install -D -p -m 644 $f $RPM_BUILD_ROOT%{_javadir}/%{name}/$b
18
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
43 done
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
44 cd $RPM_BUILD_ROOT%{_javadir}/%{name}
30
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
45 for f in lucene-{core,analyzers-common,codecs,queries,memory,highlighter,queryparser,sandbox,suggest,join,grouping,spatial} spatial4j jts log4j jna elasticsearch; do
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
46 v=$(echo $f*.jar)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
47 ln --symbolic $v $f.jar
18
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,-)
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
57 %attr(0755,root,root) %{_javadir}/%{name}
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
30
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
62 * Fri May 10 2013 <carl@five-ten-sg.com> - 0.90.0-0
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
63 - update to 0.90.0
f2691b83bafa update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
64
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
65 * 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
66 - Initial build.