diff --git a/apache-commons-logging.changes b/apache-commons-logging.changes index c30e005..b7d82ea 100644 --- a/apache-commons-logging.changes +++ b/apache-commons-logging.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 12 11:10:06 UTC 2014 - lnussel@suse.de + +- add bcond java_bootstrap to build without unit tests + (commons-logging-1.1.3-src-junit.diff) + ------------------------------------------------------------------- Fri Jun 27 13:22:19 UTC 2014 - tchvatal@suse.com diff --git a/apache-commons-logging.spec b/apache-commons-logging.spec index 53e4a24..0cc7dfa 100644 --- a/apache-commons-logging.spec +++ b/apache-commons-logging.spec @@ -20,6 +20,7 @@ %define base_name logging %define short_name commons-%{base_name} +%bcond_with java_bootstrap Name: apache-%{short_name} Version: 1.1.3 @@ -32,9 +33,12 @@ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_n Source1: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc Source2: apache-commons-logging.keyring Source3: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{short_name}/%{short_name}-api/1.1/%{short_name}-api-1.1.pom +Patch0: commons-logging-1.1.3-src-junit.diff BuildRequires: ant +%if !%{with java_bootstrap} BuildRequires: ant-junit +%endif BuildRequires: apache-commons-parent BuildRequires: java-devel >= 1.6.0 BuildRequires: javapackages-tools @@ -84,6 +88,7 @@ API documentation for %{name}. %prep %gpg_verify %{SOURCE1} %setup -q -n %{short_name}-%{version}-src +%patch0 -p1 # Sent upstream https://issues.apache.org/jira/browse/LOGGING-143 %pom_remove_dep :avalon-framework diff --git a/commons-logging-1.1.3-src-junit.diff b/commons-logging-1.1.3-src-junit.diff new file mode 100644 index 0000000..7ae66bd --- /dev/null +++ b/commons-logging-1.1.3-src-junit.diff @@ -0,0 +1,28 @@ +Index: commons-logging-1.1.3-src/build.xml +=================================================================== +--- commons-logging-1.1.3-src.orig/build.xml ++++ commons-logging-1.1.3-src/build.xml +@@ -719,7 +719,8 @@ + - ant -Dtestmatch=**/FooTestCase testall + --> + +- + + +@@ -773,4 +774,13 @@ + + + ++ ++ ++ ++ ++ ================================= WARNING ================================ ++ Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. ++ ========================================================================== ++ ++ +