Files
big-math/big-math.spec

68 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package big-math
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: big-math
Version: 2.3.2
Release: 0
Summary: Advanced Java BigDecimal math functions using arbitrary precision
License: MIT
Group: Development/Libraries/Java
URL: https://github.com/eobermuhlner/%{name}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/ch/obermuhlner/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: maven-local
BuildArch: noarch
%description
Advanced Java BigDecimal math functions (pow, sqrt, log, sin, …) using
arbitrary precision.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
cp %{SOURCE1} ch.obermuhlner.math.big/pom.xml
%{mvn_file} : %{name}
%build
pushd ch.obermuhlner.math.big
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dmaven.compiler.{source,target}=8
popd
%install
pushd ch.obermuhlner.math.big
%mvn_install
popd
%files -f ch.obermuhlner.math.big/.mfiles
%license LICENSE.txt
%doc README.md
%files javadoc -f ch.obermuhlner.math.big/.mfiles-javadoc
%license LICENSE.txt
%changelog