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