packages java-junit-addons.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-junit-addons
Version:       1.4
Release:       3mamba
Summary:       JUnitX helper classes for JUnit 
Group:         Development/Tools
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://junit-addons.sourceforge.net/
Source0:       http://fastbull.dl.sourceforge.net/sourceforge/junit-addons/junit-addons-%{version}.zip
Source1:       java-junit-addons-1.4-build.xml
Source2:       java-junit-addons-1.4.pom
License:       Apache Software License Version 1.1
BuildRequires: apache-ant
BuildRequires: jakarta-commons-logging
BuildRequires: java-jaxen
BuildRequires: java-dom
BuildRequires: java-junit3
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
Requires:      apache-ant
Requires:      jakarta-commons-logging
Requires:      java-dom
Requires:      java-jaxen
Requires:      java-junit3
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
JUnit-addons is a collection of helper classes for JUnit. 
This library can be used with both JUnit 3.7 and JUnit 3.8.x

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

%description javadoc
JUnit-addons is a collection of helper classes for JUnit. 
This library can be used with both JUnit 3.7 and JUnit 3.8.x

This package contains javadoc for %{name}.

%prep

%setup -q -n junit-addons-%{version}
chmod -Rf a+rX,u+w,g-w,o-w *

jar xf src.jar

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

cp -p %{SOURCE1} build.xml

%build
export CLASSPATH=
export OPT_JAR_LIST=:
ant \
        -Dant.build.javac.source=1.4 \
	-Djdom.jar=$(build-classpath jdom) \
	-Djaxen.jar=$(build-classpath jaxen) \
	-Dsaxpath.jar=$(build-classpath jaxen) \
	-Dant.jar=$(build-classpath ant) \
	-Djunit.jar=$(build-classpath junit-3.8.2) \
	-Dxerces.jar=$(build-classpath xerces-j2) \
	-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
	-Dcommons-logging.jar=$(build-classpath commons-logging) \
	-Dproject.name=junit-addons \
	-Dproject.version=%{version} \
	release

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

mkdir -p %{buildroot}%{_javadir}
install -m 644 dist/junit-addons-%{version}.jar \
	%{buildroot}%{_javadir}/junit-addons-%{version}.jar
(
	cd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`
	done
)

mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-junit-addons.pom
%add_to_maven_depmap junit-addons junit-addons %{version} JPP junit-addons


mkdir -p %{buildroot}%{_datadir}/junit-addons/examples
cp -pr src/example/* %{buildroot}%{_datadir}/junit-addons/examples

mkdir -p %{buildroot}%{_javadocdir}/junit-addons-%{version}
cp -pr api/* %{buildroot}%{_javadocdir}/junit-addons-%{version}
ln -s junit-addons-%{version} %{buildroot}%{_javadocdir}/junit-addons


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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_javadir}/junit-addons-%{version}.jar
%{_javadir}/junit-addons.jar
%{_datadir}/junit-addons
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE README WHATSNEW

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

%changelog
* Mon Dec 13 2010 gil <puntogil@...> 1.4-3mamba
- rebuilt devel

* Tue Jun 01 2010 gil <puntogil@...> 1.4-2mamba
- add maven2 pom

* Sun Apr 12 2009 gil <puntogil@...> 1.4-1mamba
- package created by autospec