From f2edda70cb2d778f3a658a0d0d0946f237ad5b5a Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: May 18 2012 14:23:43 +0000 Subject: Fix tests after junit update --- diff --git a/apache-commons-validator.spec b/apache-commons-validator.spec index 8b2d60b..adf2125 100644 --- a/apache-commons-validator.spec +++ b/apache-commons-validator.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 1.3.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Apache Commons Validator Group: Development/Libraries License: ASL 2.0 @@ -61,6 +61,10 @@ sed -i 's/\r//' LICENSE.txt sed -i 's/\r//' RELEASE-NOTES.txt sed -i 's/\r//' NOTICE.txt +# use textui instead of awtui (not available in junit4+) +sed -i 's:junit.awtui.TestRunner.main:junit.textui.TestRunner.main:g' \ + src/test/org/apache/commons/validator/*java + %build # TODO: Use Maven for building as soon as upstream provides proper build.xml. # Currently upstream build.xml uses antrun plugin to build, so downloads @@ -116,6 +120,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %{_javadocdir}/%{name} %changelog +* Fri May 18 2012 Stanislav Ochotnicky - 1.3.1-8 +- Fix tests after junit update + * Sat Jan 14 2012 Ville Skyttä - 1.3.1-7 - Tweak source encoding to fix build with Java 1.7. - Drop versioned jars and javadoc dir.