a33af0
# Version
14621b
%global major 8
14621b
%global minor 0
072def
%global patchlevel 1
a33af0
a33af0
# Revision
14621b
%global revnum 2
14621b
# set to 1 for snapshots, 0 for release
a33af0
%global usesnapshot 0
a33af0
a33af0
# SNAPSHOT version
072def
%global revhash 699a121bd449fe8a9350221282bd3f809691a766
072def
%global revdate 20210623
a33af0
14621b
%global tarball_name jmc-%{revhash}
a33af0
a33af0
%if %{usesnapshot}
14621b
  %global releasestr %{revnum}.%{revdate}
a33af0
%else
a33af0
  %global releasestr %{revnum}
a33af0
%endif
a33af0
a33af0
a33af0
# Don't require junit
a33af0
%global __requires_exclude ^osgi\\(org.junit.*$
a33af0
a33af0
Name:     jmc-core
a33af0
Version:  %{major}.%{minor}.%{patchlevel}
a33af0
Release:  %{releasestr}%{?dist}
a33af0
Summary:  Core API for JDK Mission Control
a33af0
a33af0
License:  UPL
a33af0
URL:      http://openjdk.java.net/projects/jmc/
a33af0
14621b
Source0:    https://github.com/openjdk/jmc/archive/%{revhash}.tar.gz
a33af0
a33af0
BuildArch:  noarch
14621b
ExclusiveArch: x86_64
14621b
14621b
# Change common manifest to reference lz4-java
14621b
Patch0:    0-amend-lz4-java-reference.patch
a33af0
a33af0
BuildRequires:  maven-local
14621b
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
14621b
BuildRequires:  mvn(org.commonjava.maven.plugins:directory-maven-plugin)
a33af0
BuildRequires:  mvn(org.owasp.encoder:encoder)
a33af0
14621b
BuildRequires: lz4-java
14621b
a33af0
# maven requires generator will add Require for runtime dependency
fb1722
#   on mvn(org.owasp.encoder:encoder)
a33af0
a33af0
%description
fb1722
JDK Mission Control is an advanced set of tools that enables efficient and
fb1722
detailed analysis of the extensive data collected by Flight Recorder. The
fb1722
tool chain enables developers and administrators to collect and analyze data
a33af0
from Java applications running locally or deployed in production environments.
a33af0
a33af0
%package javadoc
a33af0
Summary:  Javadoc for %{name}
a33af0
a33af0
%description javadoc
a33af0
%{summary}.
a33af0
a33af0
%prep
a33af0
%setup -q -n %{tarball_name}/core
a33af0
cp ../license/* ./
a33af0
cp ../README.md ./
a33af0
14621b
%patch0 -p1
14621b
a33af0
%pom_remove_plugin :nexus-staging-maven-plugin
fb1722
%pom_remove_plugin :maven-source-plugin
fb1722
%pom_remove_plugin :maven-javadoc-plugin
fb1722
%pom_remove_plugin :jacoco-maven-plugin tests
072def
fb1722
%pom_disable_module coverage
072def
%pom_disable_module org.openjdk.jmc.flightrecorder.writer
a33af0
14621b
# don't install test packages (aside from flightrecorder.test)
a33af0
%mvn_package org.openjdk.jmc:missioncontrol.core.tests __noinstall
a33af0
%mvn_package org.openjdk.jmc:flightrecorder.rules.test __noinstall
a33af0
%mvn_package org.openjdk.jmc:flightrecorder.rules.jdk.test __noinstall
a33af0
a33af0
%build
a33af0
# some tests require large heap and fail with OOM
a33af0
# depending on the builder resources
a33af0
%mvn_build -- -Dmaven.test.failure.ignore=true
a33af0
a33af0
%install
a33af0
%mvn_install
a33af0
a33af0
%files -f .mfiles
a33af0
%license LICENSE.txt
a33af0
%license THIRDPARTYREADME.txt
a33af0
%doc README.md
a33af0
a33af0
%files javadoc -f .mfiles-javadoc
a33af0
%license LICENSE.txt
a33af0
%license THIRDPARTYREADME.txt
a33af0
%doc README.md
a33af0
a33af0
%changelog
072def
* Tue Oct 05 2021 Alex Macdonald <almacdon@redhat.com> - 8.0.1-2
072def
- Rebuild with updated dependencies
072def
072def
* Tue Aug 17 2021 Alex Macdonald <almacdon@redhat.com> - 8.0.1-1
072def
- Revert jmc packages to 8.0.1 release
072def
072def
* Tue Aug 10 2021 Alex Macdonald <almacdon@redhat.com> - 8.1.0-1
072def
- Update to jmc-ga tagged commit d0f89f0
14621b
14621b
* Fri Feb 12 2021 Alex Macdonald <almacdon@redhat.com> - 8.0.0-1
14621b
- Update to jmc8 branch commit 8ab40bf
14621b
fb1722
* Thu Apr 23 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-3
fb1722
- Update to latest commit e67446b5fc9d
14621b
fb1722
* Fri Apr 17 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-2
fb1722
- remove plugins from pom (maven-source-plugin, jacoco)
14621b
fb1722
* Thu Apr 16 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-1
fb1722
- Updated to version 7.1.1
14621b
a33af0
* Thu Nov 14 2019 Jie Kang <jkang@redhat.com> - 7.0.0-3
a33af0
- Don't require junit
14621b
a33af0
* Wed Nov 13 2019 Jie Kang <jkang@redhat.com> - 7.0.0-2
a33af0
- Exclude test packages
14621b
a33af0
* Tue Mar 12 2019 Jie Kang <jkang@redhat.com> - 7.0.0-1
a33af0
- Initial package