Mercurial > logstash
annotate elasticsearch.spec @ 35:d5349a22907e default tip
fix license tags in spec files to be fedora compatible
author  Carl Byington <carl@fivetensg.com> 

date  Wed, 25 Sep 2013 21:00:11 0700 
parents  0faebb0b0fa4 
children 
rev  line source 

14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

1 # prevent brp repack jar files 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

2 %define __os_install_post %{nil} 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

3 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

4 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

5 Summary: elasticsearch is a scalable full text search engine 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

6 Name: elasticsearch 
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@fivetensg.com>
parents:
30
diff
changeset

7 Version: 0.90.5 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

8 Release: 0%{?dist} 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

9 Group: System Environment/Daemons 
35
d5349a22907e
fix license tags in spec files to be fedora compatible
Carl Byington <carl@fivetensg.com>
parents:
33
diff
changeset

10 License: ASL 2.0 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

11 URL: http://www.elasticsearch.org/ 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

12 BuildArch: noarch 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.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@fivetensg.com>
parents:
diff
changeset

14 BuildRoot: %(mktemp ud %{_tmppath}/%{name}%{version}%{release}XXXXXX) 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.com>
parents:
21
diff
changeset

15 BuildRequires: javadevel 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

16 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

17 %if "%{?dist}" != ".el6" 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.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@fivetensg.com>
parents:
diff
changeset

19 # in /usr/local/apachemaven3.0.5 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.com>
parents:
21
diff
changeset

20 BuildRequires: mavenlocal 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

21 %endif 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

22 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

23 %description 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

24 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

25 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

26 %prep 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

27 %setup q 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

28 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

29 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

30 %build 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

31 [ "%{?dist}" == ".el6" ] && export PATH=/usr/local/apachemaven3.0.5/bin:$PATH 
17
292b6583148a
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
16
diff
changeset

32 mvn Dmaven.test.skip=true clean package 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

33 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

34 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

35 %install 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

36 rm rf $RPM_BUILD_ROOT 
18
2b887e35b5cd
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
17
diff
changeset

37 mkdir xx 
2b887e35b5cd
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
17
diff
changeset

38 cd xx 
30
f2691b83bafa
update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@fivetensg.com>
parents:
23
diff
changeset

39 tar xvfz ../target/releases/%{name}%{version}.tar.gz 
18
2b887e35b5cd
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
17
diff
changeset

40 for f in %{name}%{version}/lib/*.jar; do 
2b887e35b5cd
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
17
diff
changeset

41 b=$(basename $f) 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.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@fivetensg.com>
parents:
17
diff
changeset

43 done 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.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@fivetensg.com>
parents:
23
diff
changeset

45 for f in lucene{core,analyzerscommon,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@fivetensg.com>
parents:
21
diff
changeset

46 v=$(echo $f*.jar) 
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.com>
parents:
21
diff
changeset

47 ln symbolic $v $f.jar 
18
2b887e35b5cd
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
17
diff
changeset

48 done 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

49 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

50 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

51 %clean 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

52 rm rf $RPM_BUILD_ROOT 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

53 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

54 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

55 %files 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

56 %defattr(,root,root,) 
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@fivetensg.com>
parents:
21
diff
changeset

57 %attr(0755,root,root) %{_javadir}/%{name} 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

58 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

59 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

60 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

61 %changelog 
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@fivetensg.com>
parents:
30
diff
changeset

62 * Sun Sep 22 2013 <carl@fivetensg.com>  0.90.50 
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@fivetensg.com>
parents:
30
diff
changeset

63  update to 0.90.5 
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@fivetensg.com>
parents:
30
diff
changeset

64 
30
f2691b83bafa
update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@fivetensg.com>
parents:
23
diff
changeset

65 * Fri May 10 2013 <carl@fivetensg.com>  0.90.00 
f2691b83bafa
update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@fivetensg.com>
parents:
23
diff
changeset

66  update to 0.90.0 
f2691b83bafa
update to ES 0.90.0 and logstash 1.1.12
Carl Byington <carl@fivetensg.com>
parents:
23
diff
changeset

67 
14
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

68 * Wed Apr 10 2013 <carl@fivetensg.com>  0.20.60 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

69  Initial build. 