don't provide junit.jar
switch to installing prebuilt jar [release 3.8.2-4mamba;Fri Aug 10 2018]
This commit is contained in:
parent
4ca35c5df5
commit
fa3b3c9c7f
@ -1,7 +1,4 @@
|
|||||||
# java-junit3
|
# java-junit3
|
||||||
|
|
||||||
java-junit3 is a regression testing framework written by Erich Gamma and Kent
|
Simple JVM framework to write repeatable tests.
|
||||||
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.
|
|
||||||
|
|
||||||
|
@ -1,119 +0,0 @@
|
|||||||
<!-- 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>
|
|
144
java-junit3.spec
144
java-junit3.spec
@ -1,160 +1,44 @@
|
|||||||
Name: java-junit3
|
Name: java-junit3
|
||||||
Version: 3.8.2
|
Version: 3.8.2
|
||||||
Release: 3mamba
|
Release: 4mamba
|
||||||
Summary: Java regression test package
|
Summary: Java regression test package
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: gil <puntogil@libero.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://junit.org/
|
URL: http://junit.org/
|
||||||
Source0: http://downloads.sourceforge.net/sourceforge/junit/junit%{version}.zip
|
Source: http://central.maven.org/maven2/junit/junit/%{version}/junit-%{version}.jar
|
||||||
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
|
License: Common Public License 1.0
|
||||||
BuildRequires: java-gcj-compat
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: apache-ant
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: jpackage-utils
|
Obsoletes: java-junit3-gcj
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a regression testing framework written by Erich Gamma and Kent
|
Simple JVM framework to write repeatable tests.
|
||||||
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
|
%prep
|
||||||
|
|
||||||
%setup -q -n junit%{version}
|
|
||||||
%java_home/bin/jar xf src.jar
|
|
||||||
rm -f src.jar
|
|
||||||
cp %{S:1} build.xml
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export JAVA_HOME=%java_home
|
|
||||||
ant dist
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
install -D -m 644 %{SOURCE0} %{buildroot}%{_javadir}/junit-%{version}.jar
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
ln -s junit-%{version}.jar %{buildroot}%{_javadir}/junit3.jar
|
||||||
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
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%post
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_javadir}/junit-%{version}.jar
|
%{_javadir}/junit-%{version}.jar
|
||||||
%{_javadir}/junit.jar
|
%{_javadir}/junit3.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
|
%changelog
|
||||||
|
* Fri Aug 10 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.2-4mamba
|
||||||
|
- don't provide junit.jar
|
||||||
|
- switch to installing prebuilt jar
|
||||||
|
|
||||||
* Fri Feb 25 2011 gil <puntogil@libero.it> 3.8.2-3mamba
|
* Fri Feb 25 2011 gil <puntogil@libero.it> 3.8.2-3mamba
|
||||||
- rebuilt with java-gcj-compat 1.0.80-20mamba support
|
- rebuilt with java-gcj-compat 1.0.80-20mamba support
|
||||||
- add maven 2 pom
|
- add maven 2 pom
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
<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