rebuilt with java-gcj-compat 1.0.80-20mamba support
add maven 2 pom [release 3.8.2-3mamba;Fri Feb 25 2011]
This commit is contained in:
parent
6dc4f5afa8
commit
4ca35c5df5
@ -1,2 +1,7 @@
|
||||
# java-junit3
|
||||
|
||||
java-junit3 is a regression testing framework written by Erich Gamma and Kent
|
||||
Beck. It is used by the developer who implements unit tests in Java.
|
||||
java-junit3 is Open Source Software, released under the IBM Public License and
|
||||
hosted on SourceForge.
|
||||
|
||||
|
119
java-junit3-3.8.2-build.xml
Normal file
119
java-junit3-3.8.2-build.xml
Normal file
@ -0,0 +1,119 @@
|
||||
<!-- JUnit build script using ant 1.4 -->
|
||||
<project name="junit" default="dist" basedir=".">
|
||||
<property file="${user.home}/.junit.properties" />
|
||||
<property name="build.compiler" value="classic" />
|
||||
<property name="version" value="3.8.2" />
|
||||
<property name="dist" value="junit${version}" />
|
||||
<property name="versionfile" value="junit/runner/Version.java" />
|
||||
<property name="zipfile" value="${dist}.zip" />
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
</target>
|
||||
|
||||
<target name="versiontag" depends="init">
|
||||
<filter token="version" value="${version}" />
|
||||
<copy
|
||||
file="${versionfile}"
|
||||
tofile="${versionfile}tmp"
|
||||
filtering="on"
|
||||
/>
|
||||
<move file="${versionfile}tmp" tofile="${versionfile}" />
|
||||
</target>
|
||||
|
||||
<target name="build" depends="versiontag">
|
||||
<javac
|
||||
srcdir="."
|
||||
destdir="."
|
||||
debug="on"
|
||||
/>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="build">
|
||||
<delete dir="${dist}" />
|
||||
<mkdir dir="${dist}" />
|
||||
<jar
|
||||
jarfile="${dist}/src.jar"
|
||||
basedir="."
|
||||
excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.class, doc/**, README.html, .classpath, .project, cpl-v10.html"
|
||||
/>
|
||||
<jar
|
||||
jarfile="${dist}/junit.jar"
|
||||
basedir="."
|
||||
excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.java, doc/**, README.html, build.xml, jar-manifest.txt, .classpath, .project, cpl-v10.html"
|
||||
/>
|
||||
<copy todir="${dist}/junit/samples">
|
||||
<fileset dir="junit/samples" />
|
||||
</copy>
|
||||
<copy todir="${dist}/junit/tests">
|
||||
<fileset dir="junit/tests" />
|
||||
</copy>
|
||||
|
||||
|
||||
<delete file="${dist}/junit/tests/runner/test.jar"/>
|
||||
<jar jarfile="${dist}/junit/tests/runner/test.jar"
|
||||
basedir="."
|
||||
includes="junit/tests/runner/LoadedFromJar.class"
|
||||
/>
|
||||
|
||||
<mkdir dir="${dist}/javadoc" />
|
||||
<javadoc
|
||||
sourcepath="."
|
||||
packagenames="junit.framework.*, junit.extensions.*"
|
||||
destdir="${dist}/javadoc"
|
||||
author="false"
|
||||
version="false"
|
||||
use="false"
|
||||
windowtitle="JUnit API"
|
||||
stylesheetfile="./javadoc/stylesheet.css"
|
||||
/>
|
||||
<copy todir="${dist}/doc">
|
||||
<fileset dir="doc"/>
|
||||
</copy>
|
||||
<copy file="README.html" tofile="${dist}/README.html" />
|
||||
<copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html" />
|
||||
|
||||
<java classname="junit.textui.TestRunner" fork="yes">
|
||||
<arg value="junit.samples.AllTests" />
|
||||
<classpath>
|
||||
<pathelement location="${dist}" />
|
||||
<pathelement location="${dist}/junit.jar" />
|
||||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="zip" depends="dist">
|
||||
<zip
|
||||
zipfile="${zipfile}"
|
||||
basedir="."
|
||||
includes="${dist}/**"
|
||||
/>
|
||||
</target>
|
||||
|
||||
<target name="awtui" depends="dist">
|
||||
<java classname="junit.awtui.TestRunner" fork="yes">
|
||||
<arg value="junit.samples.AllTests" />
|
||||
<classpath>
|
||||
<pathelement location="${dist}" />
|
||||
<pathelement location="${dist}/junit.jar" />
|
||||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="swingui" depends="dist">
|
||||
<java classname="junit.swingui.TestRunner" fork="yes">
|
||||
<arg value="junit.samples.AllTests" />
|
||||
<classpath>
|
||||
<pathelement location="${dist}" />
|
||||
<pathelement location="${dist}/junit.jar" />
|
||||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${dist}" quiet="true"/>
|
||||
<delete file="${zipfile}" quiet="true"/>
|
||||
<delete>
|
||||
<fileset dir="${basedir}" includes="**/*.class" />
|
||||
</delete>
|
||||
</target>
|
||||
</project>
|
166
java-junit3.spec
Normal file
166
java-junit3.spec
Normal file
@ -0,0 +1,166 @@
|
||||
Name: java-junit3
|
||||
Version: 3.8.2
|
||||
Release: 3mamba
|
||||
Summary: Java regression test package
|
||||
Group: Development/Tools
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: gil <puntogil@libero.it>
|
||||
URL: http://junit.org/
|
||||
Source0: http://downloads.sourceforge.net/sourceforge/junit/junit%{version}.zip
|
||||
Source1: java-junit3-3.8.2-build.xml
|
||||
Source2: http://repo1.maven.org/maven2/junit/junit/%{version}/junit-%{version}.pom
|
||||
License: Common Public License 1.0
|
||||
BuildRequires: java-gcj-compat
|
||||
BuildRequires: apache-ant
|
||||
BuildRequires: 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}.
|
||||
|
||||
%package gcj
|
||||
Summary: GCJ %{name} support
|
||||
Group: System/Libraries/Java
|
||||
BuildRequires: java-gcj-compat
|
||||
BuildRequires: libgcj4-devel
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: java-gcj-compat
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description gcj
|
||||
%{name} - Java regression test package.
|
||||
|
||||
This package contains GCJ %{name} support.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q -n junit%{version}
|
||||
%java_home/bin/jar xf src.jar
|
||||
rm -f src.jar
|
||||
cp %{S:1} build.xml
|
||||
|
||||
%build
|
||||
export JAVA_HOME=%java_home
|
||||
ant dist
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -m 644 junit.jar %{buildroot}%{_javadir}/junit-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/junit-%{version}
|
||||
cp -pr javadoc/* %{buildroot}%{_javadocdir}/junit-%{version}
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/maven2/poms
|
||||
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-junit.pom
|
||||
%add_to_maven_depmap junit junit %{version} JPP junit
|
||||
|
||||
install -d -m 755 %{buildroot}%{_datadir}/junit/demo/junit
|
||||
cp -pr junit/* %{buildroot}%{_datadir}/junit/demo/junit
|
||||
|
||||
# these --exclude options work around an aot-compile-rpm problem with test.jar
|
||||
%{_bindir}/aot-compile-rpm --exclude usr/share/junit/demo --exclude usr/share/junit/demo/junit/tests/runner/test.jar
|
||||
|
||||
ln -s junit-%{version} %{buildroot}%{_javadocdir}/junit
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_javadir}/junit-%{version}.jar
|
||||
%{_javadir}/junit.jar
|
||||
%{_datadir}/maven2/poms
|
||||
%{_mavendepmapfragdir}
|
||||
%doc README.html
|
||||
|
||||
%post gcj
|
||||
/sbin/ldconfig
|
||||
if [ -x %{_bindir}/rebuild-gcj-db ]; then
|
||||
%{_bindir}/rebuild-gcj-db
|
||||
fi
|
||||
|
||||
%postun gcj
|
||||
/sbin/ldconfig
|
||||
if [ -x %{_bindir}/rebuild-gcj-db ]; then
|
||||
%{_bindir}/rebuild-gcj-db
|
||||
fi
|
||||
|
||||
%files gcj
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/gcj/java-junit3/junit-%{version}.jar.db
|
||||
%{_libdir}/gcj/java-junit3/junit-%{version}.jar.so
|
||||
|
||||
%files manual
|
||||
%defattr(-,root,root)
|
||||
%doc doc/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root)
|
||||
%{_javadocdir}/junit-%{version}
|
||||
%{_javadocdir}/junit
|
||||
|
||||
%files demo
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/junit/demo/junit
|
||||
%{_datadir}/junit/demo/junit/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 25 2011 gil <puntogil@libero.it> 3.8.2-3mamba
|
||||
- rebuilt with java-gcj-compat 1.0.80-20mamba support
|
||||
- add maven 2 pom
|
||||
|
||||
* Fri Jun 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.2-2mamba
|
||||
- rebuilt in devel
|
||||
|
||||
* Sat Feb 21 2009 gil <puntogil@libero.it> 3.8.2-1mamba
|
||||
- package created by autospec
|
26
junit-3.8.2.pom
Normal file
26
junit-3.8.2.pom
Normal file
@ -0,0 +1,26 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.2</version>
|
||||
<name>JUnit</name>
|
||||
<url>http://junit.org</url>
|
||||
<description>
|
||||
JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java.
|
||||
</description>
|
||||
<organization>
|
||||
<name>JUnit</name>
|
||||
<url>http://www.junit.org</url>
|
||||
</organization>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Common Public License Version 1.0</name>
|
||||
<url>http://www.opensource.org/licenses/cpl1.0.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<url>http://junit.cvs.sourceforge.net/junit/</url>
|
||||
</scm>
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user