Accepting request 908784 from Java:packages

disable tests + fix build on sle12

OBS-URL: https://build.opensuse.org/request/show/908784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-logging?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2021-08-02 10:04:38 +00:00 committed by Git OBS Bridge
commit 056a34b026
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 28 07:28:43 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Disable tests everywhere, not only for arm6
-------------------------------------------------------------------
Wed Mar 24 09:22:40 UTC 2021 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file for package apache-commons-logging
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2000-2007, JPackage Project
@ -17,7 +17,6 @@
#
%{!?arm6:%global arm6 armv3l armv4b armv4l armv4tl armv5b armv5l armv5teb armv5tel armv5tejl armv6l armv6hl}
%define base_name logging
%define short_name commons-%{base_name}
Name: apache-%{short_name}
@ -35,11 +34,9 @@ Patch1: commons-logging-1.2-sourcetarget.patch
Patch2: commons-logging-manifests.patch
Patch3: no-tests.patch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: glassfish-servlet-api
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: junit
BuildRequires: log4j12-mini >= 1.2
Requires: java >= 1.8
Provides: jakarta-%{short_name} = %{version}-%{release}
@ -64,10 +61,7 @@ logging implementation.
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Disable tests on arm6
%ifarch %{arm6}
%patch3 -p1
%endif
sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt
@ -82,7 +76,6 @@ mkdir -p $MAVEN_REPO_LOCAL
export CLASSPATH=$(build-classpath \
plexus/ \
junit \
):target/classes:target/test-classes
ant \
-Dmaven.mode.offline=true -lib %{_javadir} \