File maja.spec of Package maja
#
# spec file for package maja
#
# Copyright (c) 2023 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: maja
Version: 0.2.4
Release: 0
Summary: A slick numerics-oriented Mathematical library for Java
License: LGPL-3.0
Group: Development/Libraries/Java
URL: https://github.com/kspalaiologos/Maja
Source: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: java-devel = 17
#BuildConflicts: java-devel < 19
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.github.bsideup.jabel:jabel-javac-plugin)
BuildRequires: mvn(org.antlr:antlr4-runtime)
BuildArch: noarch
%description
A slick numerics-oriented Mathematical library for Java. Maja implements around
450 different functions for use in Java programs, including high-performance
cached variants of the Math equivalents. Javadoc.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n Maja-%{version}
%pom_xpath_inject 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:compilerArgs' \
'<arg>--system</arg>'
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dmaven.compiler.{source,target}=17
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc TODO.txt README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog