Name:		jattach
Version:	2.0
Release:	1
Summary:	JVM Dynamic Attach utility

Group:		Development/Tools
License:	ASL 2.0
URL:		https://github.com/apangin/jattach
Vendor:		Andrei Pangin
Packager:	Vadim Tsesko <incubos@yandex.com>

BuildRequires:	gcc
BuildRequires:	make

%description
The utility to send commands to remote JVM via Dynamic Attach mechanism.

All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program.
No installed JDK required, works with just JRE.

This is the lightweight native version of HotSpot Attach API:
https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/

%build
# Do nothing

%install
BIN=%{buildroot}/usr/bin

mkdir -p ${BIN}

install -p -m 555 %{_sourcedir}/bin/jattach ${BIN}

%files
/usr/bin/jattach

%changelog
* Wed Aug 11 2021 Vadim Tsesko <incubos@yandex.com> - 2.0-1
- Attach to OpenJ9 VMs
- Pass agent error codes
- Improved container support

* Wed Jan 09 2018 Vadim Tsesko <incubos@yandex.com> - 1.5-1
- Improved attach to containerized JVMs
- chroot support

* Wed Nov 30 2016 Vadim Tsesko <incubos@yandex.com> - 0.1-1
- Initial version