apache-commons-math/apache-commons-math.spec

57 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-08-10 16:14:50 +08:00
%global short_name commons-math3
Name: apache-commons-math
2022-07-20 15:44:09 +08:00
Version: 3.6.1
Release: 2
2020-08-10 16:14:50 +08:00
Summary: Java library of lightweight mathematics and statistics components
2022-05-09 09:17:53 +00:00
License: Apache-1.1 and Apache-2.0 and BSD-3-Clause
2020-08-10 16:14:50 +08:00
URL: http://commons.apache.org/math/
Source0: http://archive.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz
BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0 jpackage-utils maven-local
2022-07-20 15:44:09 +08:00
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) mvn(junit:junit)
2020-08-10 16:14:50 +08:00
Requires: jpackage-utils
%description
Commons Math is a library of lightweight, self-contained mathematics and
statistics components addressing the most common problems not available in the
Java programming language or Commons Lang.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%autosetup -n %{short_name}-%{version}-src -p1
2022-07-20 15:44:09 +08:00
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
2020-08-10 16:14:50 +08:00
%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}"
%mvn_file :%{short_name} %{short_name} %{name}
%build
2022-07-20 15:44:09 +08:00
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
2020-08-10 16:14:50 +08:00
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
* Tue Apr 09 2024 Dingli Zhang <dingli@iscas.ac.cn> - 3.6.1-2
- Change timeout for riscv64
2022-07-20 15:44:09 +08:00
* Wed Jul 20 2022 liyanan <liyanan32@h-partners.com> - 3.6.1-1
- Update to 3.6.1
2022-05-09 09:17:53 +00:00
* Mon May 09 2022 chenchen <chen_aka_jan@163.com> - 3.4.1-2
- License compliance rectification
2020-08-10 16:14:50 +08:00
* Tue Jul 28 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 3.4.1-1
- Package init