annotate GraphTastic-client.spec @ 24:0f249d38da21

jruby.spec needs /usr/share to match fedora jrudy location
author Carl Byington <carl@five-ten-sg.com>
date Fri, 19 Apr 2013 17:48:29 -0700
parents bb48b2672ff2
children d5349a22907e
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 %define gtcommit 06a620d011d08bd2c1099c0d0810c053bf105400
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: Plot metrics sent from logstash
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
7 Name: GraphTastic-client
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
8 Version: 0.0.0
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 License: Apache 2.0
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
11 Group: System Environment/Daemons
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
12 URL: https://github.com/NickPadilla/GraphTastic
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: https://github.com/NickPadilla/GraphTastic/tar.gz/%{gtcommit} >GraphTastic.tar.gz
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
15 Source0: GraphTastic.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)
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
17 BuildRequires: java-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 %description
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
20
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
21
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
22 %prep
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
23 %setup -q -n GraphTastic-%{gtcommit}
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 %build
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
27 cd src/main/java
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
28 javac com/monstersoftwarellc/graphtastic/rmi/IRmiService.java
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
29 jar cf graphtastic-client.jar com/monstersoftwarellc/graphtastic/rmi/IRmiService.class
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
30 unzip -t graphtastic-client.jar
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
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
33 %install
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
34 rm -rf $RPM_BUILD_ROOT
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
35 install -d $RPM_BUILD_ROOT%{_javadir}
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
36 install -D -p -m 644 src/main/java/graphtastic-client.jar $RPM_BUILD_ROOT%{_javadir}
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
37
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
38
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
39 %clean
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
40 rm -rf $RPM_BUILD_ROOT
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
41
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
42
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
43 %files
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
44 %defattr(-,root,root,-)
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
45 %attr(0755,root,root) %{_javadir}/*
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
46
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
47
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 %changelog
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
50 * Wed Apr 10 2013 <carl@five-ten-sg.com> - 0.0.0-0
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
51 - Initial build.