70 lines
2.1 KiB
RPMSpec
70 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package la4j
|
|
#
|
|
# 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: la4j
|
|
Version: 0.6.0
|
|
Release: 0
|
|
Summary: Linear Algebra for Java
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: http://la4j.org/
|
|
Source: https://github.com/vkostyukov/la4j/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
la4j (Linear Algebra for Java) is an open source and 100% Java library that
|
|
provides Linear Algebra primitives (matrices and vectors) and algorithms. The
|
|
la4j library was initially designed to be a lightweight and simple tool for
|
|
passionate Java developers. It has been started as student project and turned
|
|
into one of the most popular Java packages for matrices and vectors.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8"
|
|
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8"
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
%{mvn_build} -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc {CHANGELOG,CONTRIBUTORS,README}.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|