packages java-jiprof.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-jiprof
Version:       1.1.1
Release:       2mamba
Summary:       Java Interactive Profiler
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://jiprof.sourceforge.net/
Source:        http://downloads.sourceforge.net/project/jiprof/jip/%{version}/jip-src-%{version}.zip
License:       BSD
BuildRequires: apache-ant
BuildRequires: java-junit3
BuildRequires: jpackage-utils
BuildRequires: objectweb-asm2
Requires:      jpackage-utils
Requires:      xerces-j2
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
JIP is a high performance, low overhead profiler that is written entirely in Java. JIP
gives the developer the ability to turn the profiler on and off while the VM is running.
You can also filter out classes and packages as well as control the output.

%package javadoc
Group:         Documentation
Summary:       Javadoc for %{name}

%description javadoc
The Java Interactive Profiler.

This package contains javadoc for %{name}

%package manual
Group:         Documentation
Summary:       Manual for %{name}

%description manual
The Java Interactive Profiler.

This package contains manual for %{name}

%prep

%setup -q -c %{name}-%{version}

for j in $(find -name "*.jar"); do
  	mv $j  $j.no
done

%build

export CLASSPATH=$(build-classpath junit-3.8.2 asm2/asm2 asm2/asm2-attrs asm2/asm2-commons xerces-j2 xercesImpl):bin
ant dist

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}/jiprof

install -pm 644 client/client.jar %{buildroot}%{_javadir}/jiprof/client-%{version}.jar
install -pm 644 profile/profile.jar %{buildroot}%{_javadir}/jiprof/profile-%{version}.jar
install -pm 644 profile/jipViewer.jar %{buildroot}%{_javadir}/jiprof/jipViewer-%{version}.jar

(
	cd %{buildroot}%{_javadir}/jiprof
	for jar in *-%{version}*; do 
		ln -sf ${jar} ${jar/-%{version}/}
	done
)

mkdir -p %{buildroot}%{_javadocdir}/jiprof-%{version}
cp -pr doc/javadoc/* %{buildroot}%{_javadocdir}/jiprof-%{version}
ln -s jiprof-%{version} %{buildroot}%{_javadocdir}/jiprof
rm -rf doc/javadoc

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%dir %{_javadir}/jiprof
%{_javadir}/jiprof/client-%{version}.jar
%{_javadir}/jiprof/client.jar
%{_javadir}/jiprof/profile-%{version}.jar
%{_javadir}/jiprof/profile.jar
%{_javadir}/jiprof/jipViewer-%{version}.jar
%{_javadir}/jiprof/jipViewer.jar
%doc doc/license.txt

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/jiprof-%{version}
%{_javadocdir}/jiprof

%files manual
%defattr(-,root,root)
%doc doc/*

%changelog
* Fri Dec 10 2010 gil <puntogil@...> 1.1.1-2mamba
- rebuilt devel

* Thu Sep 24 2009 gil <puntogil@...> 1.1.1-1mamba
- package created by autospec