diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa2bb39 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/junit-addons-1.4.zip diff --git a/.rh-maven35-junit-addons.metadata b/.rh-maven35-junit-addons.metadata new file mode 100644 index 0000000..eb8cd56 --- /dev/null +++ b/.rh-maven35-junit-addons.metadata @@ -0,0 +1 @@ +88dae5c711e2cb3d53085ee857ed9b091b094b32 SOURCES/junit-addons-1.4.zip diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/junit-addons-1.4-enum.patch b/SOURCES/junit-addons-1.4-enum.patch new file mode 100644 index 0000000..7655cd0 --- /dev/null +++ b/SOURCES/junit-addons-1.4-enum.patch @@ -0,0 +1,17 @@ +--- src/main/junitx/util/NamingUtil.java 2003-04-27 22:18:28.000000000 +0200 ++++ src/main/junitx/util/NamingUtil.java.enum 2015-02-09 17:00:50.618451688 +0100 +@@ -77,11 +77,11 @@ + /** + * Returns the values of a NamingEnumeration into a list. + */ +- public static List toList(NamingEnumeration enum) ++ public static List toList(NamingEnumeration mune) + throws NamingException { + List result = new Vector(); +- while (enum.hasMore()) { +- result.add(enum.next().toString()); ++ while (mune.hasMore()) { ++ result.add(mune.next().toString()); + } + return result; + } diff --git a/SOURCES/junit-addons-1.4.pom b/SOURCES/junit-addons-1.4.pom new file mode 100644 index 0000000..0478662 --- /dev/null +++ b/SOURCES/junit-addons-1.4.pom @@ -0,0 +1,23 @@ + + 4.0.0 + junit-addons + junit-addons + 1.4 + + + junit + junit + 3.8.1 + + + xerces + xercesImpl + 2.6.2 + + + xerces + xmlParserAPIs + 2.6.2 + + + diff --git a/SOURCES/junit-addons-build.xml b/SOURCES/junit-addons-build.xml new file mode 100644 index 0000000..33807f3 --- /dev/null +++ b/SOURCES/junit-addons-build.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS/junit-addons.spec b/SPECS/junit-addons.spec new file mode 100644 index 0000000..62dfe2a --- /dev/null +++ b/SPECS/junit-addons.spec @@ -0,0 +1,162 @@ +%{?scl:%scl_package junit-addons} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}junit-addons +Version: 1.4 +Release: 14.2%{?dist} +Summary: JUnitX helper classes for JUnit +License: ASL 1.1 +Url: http://sourceforge.net/projects/junit-addons/ +Source0: http://sourceforge.net/projects/%{pkg_name}/files/JUnit-addons/JUnit-addons%20%{version}/%{pkg_name}-%{version}.zip +# from http://junit-addons.cvs.sourceforge.net/viewvc/junit-addons/junit-addons/build.xml?view=markup&pathrev=release_1_4 +Source1: %{pkg_name}-build.xml +Source2: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{pkg_name}/%{pkg_name}/%{version}/%{pkg_name}-%{version}.pom +Patch0: junit-addons-1.4-enum.patch + +BuildRequires: %{?scl_prefix}javapackages-local +BuildRequires: %{?scl_prefix}ant +BuildRequires: %{?scl_prefix}apache-commons-logging +BuildRequires: %{?scl_prefix}jaxen +BuildRequires: %{?scl_prefix}jdom +BuildRequires: %{?scl_prefix}junit +BuildRequires: %{?scl_prefix}xerces-j2 +BuildRequires: %{?scl_prefix}xml-commons-apis + +Requires: %{?scl_prefix}ant +Requires: %{?scl_prefix}jaxen +Requires: %{?scl_prefix}jdom +Requires: %{?scl_prefix}junit +Requires: %{?scl_prefix}xerces-j2 + +BuildArch: noarch + +%description +JUnit-addons is a collection of helper classes for JUnit. + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +This package contains javadoc for %{pkg_name}. + +%prep +%setup -n %{pkg_name}-%{version} -q + +%jar xf src.jar +find . -name "*.class" -delete +find . -type f -name "*.jar" -delete +find . -type f -name "*.zip" -delete + +%patch0 -p0 + +rm -r api +cp -p %{SOURCE1} build.xml + +# fix non ASCII chars +for s in src/main/junitx/framework/TestSuite.java;do + native2ascii -encoding UTF8 ${s} ${s} +done + +# disable test +# some tests fails with the regenerate test resource +# tests.jar +# tests.zip +sed -i "s| test, ||" build.xml + +%build +# regenerate test resource +#( +# cd src/example +# mkdir test +# javac -d test -source 1.4 -target 1.4 $(find . -name "*.java") -cp $(build-classpath junit4) +# rm test/junitx/example/*.class +# cp -p junitx/example/packageA/SampleA.txt test/junitx/example/packageA/ +# cp -p junitx/example/packageA/packageB/SampleB.txt test/junitx/example/packageA/packageB/ +# ( +# cd test +# jar -cf ../tests.jar * +## zip -r ../tests.zip * +# ) +# cp -p tests.jar tests.zip +# rm -r test +#) + +export CLASSPATH= +export OPT_JAR_LIST=: +%ant \ + -Dant.build.javac.source=1.6 \ + -Djdom.jar=$(build-classpath jdom) \ + -Djaxen.jar=$(build-classpath jaxen) \ + -Dsaxpath.jar=$(build-classpath jaxen) \ + -Dant.jar=$(build-classpath ant.jar) \ + -Djunit.jar=$(build-classpath junit) \ + -Dxerces.jar=$(build-classpath xerces-j2) \ + -Dxml-apis.jar=$(build-classpath xml-commons-apis) \ + -Dcommons-logging.jar=$(build-classpath commons-logging) \ + -Dproject.name=%{pkg_name} \ + -Dproject.version=%{version} \ + release + +%install +%mvn_file : %{pkg_name} +%mvn_artifact %{SOURCE2} dist/%{pkg_name}-%{version}.jar + +%mvn_install -J build/api + +%files -f .mfiles +%doc README WHATSNEW +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Thu Jun 22 2017 Michael Simacek - 1.4-14.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 1.4-14.1 +- Automated package import and SCL-ization + +* Wed Mar 22 2017 Michael Simacek - 1.4-14 +- Install with XMvn + +* Fri Feb 10 2017 Fedora Release Engineering - 1.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Feb 09 2015 gil cattaneo 1.4-10 +- use javac source/target 1.6 + +* Mon Feb 09 2015 gil cattaneo 1.4-9 +- introduce license macro + +* Sun Jun 08 2014 Fedora Release Engineering - 1.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 22 2014 gil cattaneo 1.4-7 +- Use .mfiles generated during build +- Fix junit dep + +* Fri Mar 28 2014 Michael Simacek - 1.4-6 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 14 2012 gil cattaneo 1.4-2 +- remove pre-compiled artefacts +- add requires ant, jaxen, jdom + +* Sat May 05 2012 gil cattaneo 1.4-1 +- initial rpm