Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
157 kaklik 1
%define name AVRcamVIEW
2
%define version 01.07
3
%define release 1
4
%define jar %{name}.jar
5
%define ant_build_file build.linux.xml
6
%define run_script AVRcamVIEW.sh
7
 
8
Summary: AVRcamVIEW GUI for controlling the AVRcam
9
Name: %{name}
10
Version: %{version}
11
Release: %{release}
12
Source: %{name}-%{version}.tar.gz
13
License: GPL
14
Group: AVRcam
15
BuildRoot: %{_builddir}/%{name}-buildroot
16
Prefix: %{_prefix}
17
 
18
%description
19
This will build and install the AVRcamVIEW GUI
20
 
21
%prep
22
%setup -q
23
 
24
%build
25
ant -f %{ant_build_file}
26
 
27
%install
28
mkdir -p $RPM_BUILD_ROOT/opt/%{name}
29
mkdir -p $RPM_BUILD_ROOT/opt/%{name}/bin
30
mkdir -p $RPM_BUILD_ROOT/opt/%{name}/lib
31
mv %{jar} $RPM_BUILD_ROOT/opt/%{name}/lib
32
mv jre $RPM_BUILD_ROOT/opt/%{name}
33
mv %{run_script} $RPM_BUILD_ROOT/opt/%{name}/bin
34
 
35
%clean
36
rm -rf $RPM_BUILD_ROOT
37
 
38
%files
39
%attr(0755,root,root) /opt/%{name}/bin/%{run_script}
40
%attr(0644,root,root) /opt/%{name}/lib/%{jar}
41
%attr(-,root,root) /opt/%{name}/jre
42
%attr(0755,root,root) /opt/%{name}/jre/bin/java
43
 
44
%postun
45
rm -rf /opt/%{name}
46
 
47
%changelog