2015-10-10 22:21:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package apache-commons-math
|
|
|
|
#
|
2024-05-17 23:46:48 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-10-10 22:21:07 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-11-11 12:25:30 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-10-10 22:21:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global base_name math
|
|
|
|
%global short_name commons-%{base_name}
|
|
|
|
Name: apache-commons-math
|
2017-03-01 12:50:17 +01:00
|
|
|
Version: 3.6.1
|
2015-10-10 22:21:07 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The Apache Commons Mathematics Library
|
|
|
|
License: Apache-2.0
|
2019-11-11 12:25:30 +01:00
|
|
|
URL: http://commons.apache.org/%{base_name}/
|
2021-02-12 11:54:21 +01:00
|
|
|
Source: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz
|
2018-05-15 15:01:24 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2021-02-12 11:54:21 +01:00
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
2022-08-22 07:45:36 +02:00
|
|
|
Provides: apache-commons-math3 = %{version}
|
|
|
|
Obsoletes: apache-commons-math3 < %{version}
|
2017-05-21 09:55:03 +02:00
|
|
|
BuildArch: noarch
|
2015-10-10 22:21:07 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Commons Math is a library of lightweight, self-contained mathematics and
|
|
|
|
statistics components addressing the most common problems not available in
|
2017-05-21 09:55:03 +02:00
|
|
|
the Java programming language or Commons Lang.
|
2015-10-10 22:21:07 +02:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2021-02-12 11:54:21 +01:00
|
|
|
%autosetup -n %{short_name}3-%{version}-src
|
2015-10-10 22:21:07 +02:00
|
|
|
|
2021-02-12 12:37:20 +01:00
|
|
|
%pom_remove_plugin :maven-antrun-plugin
|
|
|
|
%pom_remove_plugin :build-helper-maven-plugin
|
2019-11-11 12:28:27 +01:00
|
|
|
|
2015-10-10 22:21:07 +02:00
|
|
|
%build
|
2023-09-09 11:14:46 +02:00
|
|
|
%mvn_build -f -- \
|
|
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
|
|
-Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
2015-10-10 22:21:07 +02:00
|
|
|
|
|
|
|
%install
|
2021-02-12 11:54:21 +01:00
|
|
|
%mvn_install
|
2015-10-10 22:21:07 +02:00
|
|
|
|
2019-11-11 12:25:30 +01:00
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt license-header.txt NOTICE.txt
|
|
|
|
%doc RELEASE-NOTES.txt
|
2015-10-10 22:21:07 +02:00
|
|
|
|
2021-02-12 11:54:21 +01:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2019-11-11 12:25:30 +01:00
|
|
|
%license LICENSE.txt
|
2015-10-10 22:21:07 +02:00
|
|
|
|
|
|
|
%changelog
|