diff --git a/README.md b/README.md index 078f875..fe718cd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,4 @@ # 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. +Simple JVM framework to write repeatable tests. diff --git a/java-junit3-3.8.2-build.xml b/java-junit3-3.8.2-build.xml deleted file mode 100644 index 3916043..0000000 --- a/java-junit3-3.8.2-build.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java-junit3.spec b/java-junit3.spec index 51c83ee..d06ef66 100644 --- a/java-junit3.spec +++ b/java-junit3.spec @@ -1,160 +1,44 @@ Name: java-junit3 Version: 3.8.2 -Release: 3mamba +Release: 4mamba Summary: Java regression test package Group: Development/Tools Vendor: openmamba Distribution: openmamba -Packager: gil +Packager: Silvan Calarco 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 +Source: http://central.maven.org/maven2/junit/junit/%{version}/junit-%{version}.jar License: Common Public License 1.0 -BuildRequires: java-gcj-compat -BuildRequires: apache-ant -BuildRequires: jpackage-utils +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Obsoletes: java-junit3-gcj 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. +Simple JVM framework to write repeatable tests. %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 +install -D -m 644 %{SOURCE0} %{buildroot}%{_javadir}/junit-%{version}.jar +ln -s junit-%{version}.jar %{buildroot}%{_javadir}/junit3.jar %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/* +%{_javadir}/junit3.jar %changelog +* Fri Aug 10 2018 Silvan Calarco 3.8.2-4mamba +- don't provide junit.jar +- switch to installing prebuilt jar + * Fri Feb 25 2011 gil 3.8.2-3mamba - rebuilt with java-gcj-compat 1.0.80-20mamba support - add maven 2 pom diff --git a/junit-3.8.2.pom b/junit-3.8.2.pom deleted file mode 100644 index 8488147..0000000 --- a/junit-3.8.2.pom +++ /dev/null @@ -1,26 +0,0 @@ - - 4.0.0 - junit - junit - 3.8.2 - JUnit - http://junit.org - - 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. - - - JUnit - http://www.junit.org - - - - Common Public License Version 1.0 - http://www.opensource.org/licenses/cpl1.0.txt - - - - http://junit.cvs.sourceforge.net/junit/ - - - -