Mercurial > logstash
annotate GraphTasticclient.spec @ 14:0e45fe64b10d
work on building from source
author  Carl Byington <carl@fivetensg.com> 

date  Wed, 10 Apr 2013 21:24:14 0700 
parents  
children  292b6583148a 
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 %define _bindir /usr/local/bin 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

5 %define gtcommit 06a620d011d08bd2c1099c0d0810c053bf105400 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

7 Summary: Plot metrics sent from logstash 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

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

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

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

12 Group: System Environment/Daemons 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

13 URL: https://github.com/NickPadilla/GraphTastic 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

15 #Source0: https://github.com/NickPadilla/GraphTastic/tar.gz/%{gtcommit} >GraphTastic.tar.gz 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

17 BuildRoot: %(mktemp ud %{_tmppath}/%{name}%{version}%{release}XXXXXX) 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

18 BuildRequires: java1.7.0openjdk 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

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

21 
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 %prep 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

24 %setup q n GraphTastic%{gtcommit} 
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 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

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

29 javac com/monstersoftwarellc/graphtastic/rmi/IRmiService.java 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

30 jar cf graphtasticclient.jar com/monstersoftwarellc/graphtastic/rmi/IRmiService.class 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

31 unzip t graphtasticclient.jar 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

32 
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 %install 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

36 install d $RPM_BUILD_ROOT%{_bindir} 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

37 install D p m 644 src/main/java/graphtasticclient.jar $RPM_BUILD_ROOT%{_bindir} 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

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

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

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

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

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

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

45 %defattr(,root,root,) 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

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

48 
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 %changelog 
0e45fe64b10d
work on building from source
Carl Byington <carl@fivetensg.com>
parents:
diff
changeset

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

52  Initial build. 