packages java-junit381-jdk5.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-junit381-jdk5
Version:       3.8.1
Release:       2mamba
Summary:       Java regression test package
Group:         Development/Tools
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://junit.org/
Source0:       http://surfnet.dl.sourceforge.net/sourceforge/junit/junit%{version}.zip
License:       Common Public License 1.0
BuildRequires: apache-ant
BuildRequires: jpackage-utils
BuildRequires: sun-java-5
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
%{name} is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java.
%{name} is Open Source Software, released under the IBM Public License and
hosted on SourceForge.

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

%description manual
%{name} is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java.
%{name} is Open Source Software, released under the IBM Public License and
hosted on SourceForge.

This package contains documentation for %{name}.

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

%description javadoc
%{name} is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java.
%{name} is Open Source Software, released under the IBM Public License and
hosted on SourceForge.

This package contains javadoc for %{name}.

%package demo
Group:          Development/Libraries
Summary:        Demos for %{name}
Requires:       %{name} = %{version}-%{release}

%description demo
%{name} is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java.
%{name} is Open Source Software, released under the IBM Public License and
hosted on SourceForge.

This package contains demonstrations and samples for %{name}.

%prep

%setup -q -n junit%{version}
jar xf src.jar

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

for j in $(find . -name "*.class"); do
	rm -rf $j
done

perl -pi -e 's/\r$//g' stylesheet.css

%build
export JAVA_HOME=/usr/lib/jvm/jdk-sun-1.5 
export CLASSPATH=$(build-classpath ant/ant-junit)
ant -Dant.build.javac.source=1.5  dist

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

mkdir -p %{buildroot}%{_javadir}
install -m 644 junit%{version}/junit.jar \
	%{buildroot}%{_javadir}/junit-jdk5-%{version}.jar

install -m 644 junit%{version}/src.jar %{buildroot}%{_javadir}/junit-jdk5-src-%{version}.jar


pushd %{buildroot}%{_javadir} 
	ln -sf junit-jdk5-%{version}.jar junit381-jdk5.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/junit-jdk5-%{version}
cp -pr junit%{version}/javadoc/* %{buildroot}%{_javadocdir}/junit-jdk5-%{version}
ln -s junit-%{version} %{buildroot}%{_javadocdir}/junit381-jdk5


mkdir -p %{buildroot}%{_datadir}/junit-jdk5-%{version}/demo/junit
cp -pr junit%{version}/junit/* %{buildroot}%{_datadir}/junit-jdk5-%{version}/demo/junit


#%{_bindir}/aot-compile-rpm


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

%files
%defattr(-,root,root)
%{_javadir}/junit-jdk5-%{version}.jar
%{_javadir}/junit381-jdk5.jar
%{_javadir}/junit-jdk5-src-%{version}.jar
%doc junit%{version}/*.html

%files manual
%defattr(-,root,root)
%doc junit%{version}/doc/*

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/junit-jdk5-%{version}
%{_javadocdir}/junit381-jdk5

%files demo
%defattr(-,root,root)
%{_datadir}/junit-jdk5-%{version}

%changelog
* Thu Nov 04 2010 gil <puntogil@...> 3.8.1-2mamba
- rebuilt devel

* Sat Jun 06 2009 gil <puntogil@...> 3.8.1-2mamba
- package created by autospec