2021-04-11 17:32:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package vecmath
|
|
|
|
#
|
2024-02-21 17:04:39 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-04-11 17:32:28 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2021-04-11 17:48:22 +00:00
|
|
|
|
2021-04-11 17:32:28 +00:00
|
|
|
Name: vecmath
|
|
|
|
Version: 1.6.2
|
|
|
|
Release: 0
|
|
|
|
Summary: 3D vector math Java package
|
|
|
|
License: GPL-2.0-with-classpath-exception
|
2021-04-11 17:48:22 +00:00
|
|
|
Group: Development/Libraries/Java
|
2021-04-11 17:32:28 +00:00
|
|
|
URL: https://github.com/hharrison/vecmath
|
|
|
|
Source0: https://github.com/hharrison/vecmath/archive/refs/tags/%{version}.tar.gz
|
2022-03-23 11:56:38 +00:00
|
|
|
Patch0: vecmath-1.6.2-nosourcetarget.patch
|
2021-04-11 17:32:28 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
2022-03-23 11:56:38 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2021-04-11 17:48:22 +00:00
|
|
|
BuildRequires: javapackages-local
|
2021-04-11 17:32:28 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The 3D vector math Java package, javax.vecmath.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-02-21 17:04:39 +00:00
|
|
|
%patch -P 0 -p1
|
2021-04-11 17:32:28 +00:00
|
|
|
|
|
|
|
%build
|
2022-03-23 11:56:38 +00:00
|
|
|
%{ant} -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
|
2021-04-11 17:32:28 +00:00
|
|
|
|
|
|
|
%install
|
2022-03-23 11:56:38 +00:00
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -pm 0644 build/jars/%{name}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
|
|
|
%add_maven_depmap "javax.%{name}:%{name}:%{version}" %{name}/%{name}.jar
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}/
|
2021-04-11 17:32:28 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
2022-03-23 11:56:38 +00:00
|
|
|
%license LICENSE.txt COPYRIGHT.txt LICENSE-SPEC.html
|
|
|
|
%doc docs/api-changes*
|
2021-04-11 17:32:28 +00:00
|
|
|
|
2022-03-23 11:56:38 +00:00
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%license LICENSE.txt COPYRIGHT.txt LICENSE-SPEC.html
|
2021-04-11 17:32:28 +00:00
|
|
|
|
|
|
|
%changelog
|