Fridrich Strba 2021-02-12 11:37:20 +00:00 committed by Git OBS Bridge
parent 234ea211ea
commit 094338eb6c

View File

@ -25,10 +25,7 @@ Summary: The Apache Commons Mathematics Library
License: Apache-2.0 License: Apache-2.0
URL: http://commons.apache.org/%{base_name}/ URL: http://commons.apache.org/%{base_name}/
Source: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz 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: java-devel >= 1.8
BuildRequires: maven-antrun-plugin
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildArch: noarch BuildArch: noarch
@ -47,16 +44,11 @@ This package contains the API documentation for %{name}.
%prep %prep
%autosetup -n %{short_name}3-%{version}-src %autosetup -n %{short_name}3-%{version}-src
# Compatibility links %pom_remove_plugin :maven-antrun-plugin
%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %pom_remove_plugin :build-helper-maven-plugin
%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
%build %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 %install
%mvn_install %mvn_install