From 094338eb6c14df20119bb257241f945f85824b60ad0df4665998e07fea1b970c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 12 Feb 2021 11:37:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-math?expand=0&rev=18 --- apache-commons-math.spec | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 0328f35..e3dc0ba 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -25,10 +25,7 @@ Summary: The Apache Commons Mathematics Library License: Apache-2.0 URL: http://commons.apache.org/%{base_name}/ Source: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz -BuildRequires: ant -BuildRequires: ant-junit BuildRequires: java-devel >= 1.8 -BuildRequires: maven-antrun-plugin BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildArch: noarch @@ -47,16 +44,11 @@ This package contains the API documentation for %{name}. %prep %autosetup -n %{short_name}3-%{version}-src -# Compatibility links -%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" -%mvn_file :%{short_name} %{short_name} %{name} - -# Skip test that fails on Java 11 -sed -i -e '/checkMissingFastMathClasses/i@Ignore' \ -src/test/java/org/apache/commons/math3/util/FastMathTest.java +%pom_remove_plugin :maven-antrun-plugin +%pom_remove_plugin :build-helper-maven-plugin %build -%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 +%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install