File jol.spec of Package jol

#
# spec file for package jol
#
# 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:           jol
Version:        0.17
Release:        0
Summary:        A tiny toolbox to analyze object layout schemes in JVMs
License:        GPL-2.0
Group:          Development/Libraries/Java
URL:            https://openjdk.org/projects/code-tools/%{name}/
Source0:        https://github.com/openjdk/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(net.sf.jopt-simple:jopt-simple)
BuildRequires:  mvn(org.openjdk.jmh:jmh-core)
BuildRequires:  mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildArch:      noarch

%description
JOL (Java Object Layout) is the tiny toolbox to analyze object layout in JVMs.
These tools are using Unsafe, JVMTI, and Serviceability Agent (SA) heavily to
decode the actual object layout, footprint, and references. This makes JOL much
more accurate than other tools relying on heap dumps, specification
assumptions, etc.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin -r com.mycila.maven-license-plugin:maven-license-plugin

%build
%{mvn_build} -f -- -Dsource=8

%install
%mvn_install

%files -f .mfiles
%license LICENSE THIRD-PARTY
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE THIRD-PARTY

%changelog
openSUSE Build Service is sponsored by