Change timeout for riscv64

(cherry picked from commit 626fed2c83f34851362cc4558bcde81ba4ce828f)
This commit is contained in:
Dingli Zhang 2024-04-09 11:08:59 +08:00 committed by openeuler-sync-bot
parent e00348a226
commit dd1cd6576a

View File

@ -1,7 +1,7 @@
%global short_name commons-math3
Name: apache-commons-math
Version: 3.6.1
Release: 1
Release: 2
Summary: Java library of lightweight mathematics and statistics components
License: Apache-1.1 and Apache-2.0 and BSD-3-Clause
URL: http://commons.apache.org/math/
@ -24,6 +24,9 @@ This package contains the API documentation for %{name}.
%autosetup -n %{short_name}-%{version}-src -p1
sed -i -e '/checkMissingFastMathClasses/i@Ignore' \
src/test/java/org/apache/commons/math3/util/FastMathTest.java
%if "%{_arch}" == "riscv64"
sed -i -E 's/timeout=20000L/timeout=200000L/' src/test/java/org/apache/commons/math3/util/FastMathTest.java
%endif
%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}"
%mvn_file :%{short_name} %{short_name} %{name}
@ -40,6 +43,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java
%doc LICENSE.txt NOTICE.txt
%changelog
* Tue Apr 09 2024 Dingli Zhang <dingli@iscas.ac.cn> - 3.6.1-2
- Change timeout for riscv64
* Wed Jul 20 2022 liyanan <liyanan32@h-partners.com> - 3.6.1-1
- Update to 3.6.1