%{?scl:%scl_package jmc-core} %{!?scl:%global pkg_name %{name}} # Version %global major 8 %global minor 0 %global patchlevel 1 # Revision %global revnum 3 # set to 1 for hg snapshots, 0 for release %global usesnapshot 0 # SNAPSHOT version %global revhash 699a121bd449fe8a9350221282bd3f809691a766 %global revdate 20210623 %global tarball_name jmc-%{revhash} %if %{usesnapshot} %global releasestr %{revnum}.%{revdate} %else %global releasestr %{revnum} %endif Name: %{scl_prefix}jmc-core Version: %{major}.%{minor}.%{patchlevel} Release: %{releasestr}%{?dist} Summary: Core API for JDK Mission Control License: UPL URL: http://openjdk.java.net/projects/jmc/ Source0: https://github.com/openjdk/jmc/archive/%{revhash}.tar.gz BuildArch: noarch # Remove jacoco property as we don't use jacoco in this build Patch0: 0-jacoco-argline.patch # Change common manifest to reference lz4-java Patch1: 1-amend-lz4-java-reference.patch BuildRequires: %{?scl_prefix_maven}maven-local BuildRequires: %{?scl_prefix_maven}mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: %{?scl_prefix_jmc}mvn(org.commonjava.maven.plugins:directory-maven-plugin) BuildRequires: %{?scl_prefix_jmc}lz4-java BuildRequires: %{?scl_prefix_jmc}mvn(org.owasp.encoder:encoder) # maven requires generator will add Require for runtime dependency # on mvn(org.owasp.encoder:encoder) %description JDK Mission Control is an advanced set of tools that enables efficient and detailed analysis of the extensive data collected by JDK Flight Recorder. The tool chain enables developers and administrators to collect and analyze data from Java applications running locally or deployed in production environments. %package javadoc Summary: Javadoc for %{name} %description javadoc %{summary}. %prep # temporary(RHSCL 3.8): the directory in the sources tarball wasn't named properly; manually specify path to core %setup -q -n jmc-8.0.1-ga/core %patch0 -p1 %patch1 -p1 cp ../license/* ./ cp ../README.md ./ %pom_remove_plugin :nexus-staging-maven-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_disable_module org.openjdk.jmc.flightrecorder.writer %pom_remove_plugin :jacoco-maven-plugin tests %pom_disable_module coverage # don't install test packages (aside from flightrecorder.test used by jmc) %mvn_package org.openjdk.jmc:missioncontrol.core.tests __noinstall %mvn_package org.openjdk.jmc:flightrecorder.rules.test __noinstall %mvn_package org.openjdk.jmc:flightrecorder.rules.jdk.test __noinstall %build %{?scl:scl enable %{scl_maven} %{scl} - << "EOFSCL"} # some tests require large heap and fail with OOM # depending on the builder resources %mvn_build -- -Dmaven.test.failure.ignore=true %{?scl:EOFSCL} %install %{?scl:scl enable %{scl_maven} %{scl} - << "EOFSCL"} %mvn_install %{?scl:EOFSCL} %files -f .mfiles %license LICENSE.txt %license THIRDPARTYREADME.txt %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE.txt %license THIRDPARTYREADME.txt %doc README.md %changelog * Wed Aug 25 2021 Alex Macdonald - 8.0.1-3 - Fix path to core in sources tarball * Wed Aug 25 2021 Alex Macdonald - 8.0.1-2 - Fix invalid date in the last changelog entry * Tue Aug 17 2021 Alex Macdonald - 8.0.1-1 - Update to JMC revision for tag 8.0.1-ga * Tue Feb 16 2021 Alex Macdonald - 8.0.0-3 - Update to JMC revision for tag 8.0.0-ga * Thu Jan 28 2021 Alex Macdonald - 8.0.0-2 - Fix jacoco argline patch * Thu Jan 28 2021 Alex Macdonald - 8.0.0-1 - Update to JMC 8.0.0 * Fri Feb 28 2020 Alex Macdonald - 7.1.1-1 - Update to latest upstream * Tue Feb 11 2020 Jie Kang - 7.1.0-1 - Update to JMC 7.1.0 * Wed Feb 27 2019 Jie Kang - 7.0.0-4.20190211hg62c5279452a6 - Update to jmc7 revision 62c5279452a6 * Fri Feb 08 2019 Jie Kang - 7.0.0-3.20190204hgbfd2c61eb116 - Update to jmc7 revision bfd2c61eb116 * Mon Jan 21 2019 Jie Kang - 7.0.0-2.20181130hg1ddf3baa4e26 - SCL-ize package * Fri Dec 21 2018 Jie Kang - 7.0.0-1.20181130hg1ddf3baa4e26 - Update version to match jmc package - Use tarball from URL instead of script * Fri Nov 23 2018 Salman Siddiqui - 7.0.0-1.20181122hg9aa7085f938b - Update to latest SNAPSHOT * Fri Sep 14 2018 Salman Siddiqui - 7.0.0-1 - Initial packaging