packages java-indy-mock.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-indy-mock
Version:       0.0
Release:       2mamba
Summary:       A set of mock classes to mimic the invokedynamic APIs in Java 7
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://github.com/jruby/indy_mock
# git clone git://github.com/jruby/indy_mock.git
Source:        indy_mock-src-git.tar.gz
License:       Common Pubblic License Version 1.0, GPL, LGPL, MIT
BuildRequires: apache-ant
BuildRequires: java-junit48
BuildRequires: jpackage-utils
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
This package contains dynamic language support provided directly by the
Java core class libraries and virtual machine.

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

%description javadoc
A set of mock classes to mimic the invokedynamic APIs in Java 7 

This package contains javadoc for %{name}.

%prep

%setup -q -n indy_mock

%build

export JAVA_HOME=/usr/lib/jvm/jdk-sun
export CLASSPATH=$(build-classpath junit48):build/classes
ant -Djavadoc.windowtitle="Indy Mock API" test jar javadoc

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

mkdir -p %{buildroot}%{_javadir}
install -pm 644 dist/indy_mock.jar %{buildroot}%{_javadir}/indy_mock-%{version}.jar

(
	cd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`
	done
)

mkdir -p %{buildroot}%{_javadocdir}/indy_mock-%{version}
cp -a dist/javadoc/* %{buildroot}%{_javadocdir}/indy_mock-%{version}
ln -sf indy_mock-%{version} %{buildroot}%{_javadocdir}/indy_mock

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

%files
%defattr(-,root,root)
%{_javadir}/indy_mock-%{version}.jar
%{_javadir}/indy_mock.jar

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

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

* Fri Feb 26 2010 gil <puntogil@...> 0.0-1mamba
- package created by autospec