This commit is contained in:
parent
234ea211ea
commit
094338eb6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user