Files
vecmath/vecmath.spec

70 lines
2.0 KiB
RPMSpec

#
# spec file for package vecmath
#
# Copyright (c) 2024 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: vecmath
Version: 1.6.2
Release: 0
Summary: 3D vector math Java package
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
URL: https://github.com/hharrison/vecmath
Source0: https://github.com/hharrison/vecmath/archive/refs/tags/%{version}.tar.gz
Patch0: vecmath-1.6.2-nosourcetarget.patch
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
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
%patch -P 0 -p1
%build
%{ant} -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
%install
# 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}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt COPYRIGHT.txt LICENSE-SPEC.html
%doc docs/api-changes*
%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt COPYRIGHT.txt LICENSE-SPEC.html
%changelog