2020-02-04 12:41:30 +00:00
|
|
|
# Version
|
2021-05-18 07:02:22 +00:00
|
|
|
%global major 8
|
|
|
|
%global minor 0
|
|
|
|
%global patchlevel 0
|
2020-02-04 12:41:30 +00:00
|
|
|
|
|
|
|
# Revision
|
2021-05-18 07:02:22 +00:00
|
|
|
%global revnum 2
|
|
|
|
# set to 1 for snapshots, 0 for release
|
2020-02-04 12:41:30 +00:00
|
|
|
%global usesnapshot 0
|
|
|
|
|
|
|
|
# SNAPSHOT version
|
2021-05-18 07:02:22 +00:00
|
|
|
%global revhash 8ab40bfb565c1002e84bb238a620ab81bb64eceb
|
|
|
|
%global revdate 20210212
|
2020-02-04 12:41:30 +00:00
|
|
|
|
2021-05-18 07:02:22 +00:00
|
|
|
%global tarball_name jmc-%{revhash}
|
2020-02-04 12:41:30 +00:00
|
|
|
|
|
|
|
%if %{usesnapshot}
|
2021-05-18 07:02:22 +00:00
|
|
|
%global releasestr %{revnum}.%{revdate}
|
2020-02-04 12:41:30 +00:00
|
|
|
%else
|
|
|
|
%global releasestr %{revnum}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Don't require junit
|
|
|
|
%global __requires_exclude ^osgi\\(org.junit.*$
|
|
|
|
|
|
|
|
Name: 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/
|
|
|
|
|
2021-05-18 07:02:22 +00:00
|
|
|
Source0: https://github.com/openjdk/jmc/archive/%{revhash}.tar.gz
|
2020-02-04 12:41:30 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2021-05-18 07:02:22 +00:00
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
# Change common manifest to reference lz4-java
|
|
|
|
Patch0: 0-amend-lz4-java-reference.patch
|
2020-02-04 12:41:30 +00:00
|
|
|
|
|
|
|
BuildRequires: maven-local
|
2021-05-18 07:02:22 +00:00
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.commonjava.maven.plugins:directory-maven-plugin)
|
2020-02-04 12:41:30 +00:00
|
|
|
BuildRequires: mvn(org.owasp.encoder:encoder)
|
|
|
|
|
2021-05-18 07:02:22 +00:00
|
|
|
BuildRequires: lz4-java
|
|
|
|
|
2020-02-04 12:41:30 +00:00
|
|
|
# maven requires generator will add Require for runtime dependency
|
2020-07-21 15:03:26 +00:00
|
|
|
# on mvn(org.owasp.encoder:encoder)
|
2020-02-04 12:41:30 +00:00
|
|
|
|
|
|
|
%description
|
2020-07-21 15:03:26 +00:00
|
|
|
JDK Mission Control is an advanced set of tools that enables efficient and
|
|
|
|
detailed analysis of the extensive data collected by Flight Recorder. The
|
|
|
|
tool chain enables developers and administrators to collect and analyze data
|
2020-02-04 12:41:30 +00:00
|
|
|
from Java applications running locally or deployed in production environments.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{tarball_name}/core
|
|
|
|
cp ../license/* ./
|
|
|
|
cp ../README.md ./
|
|
|
|
|
2021-05-18 07:02:22 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
2020-02-04 12:41:30 +00:00
|
|
|
%pom_remove_plugin :nexus-staging-maven-plugin
|
2020-07-21 15:03:26 +00:00
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
2021-05-18 07:02:22 +00:00
|
|
|
%pom_disable_module org.openjdk.jmc.flightrecorder.writer
|
2020-07-21 15:03:26 +00:00
|
|
|
|
|
|
|
%pom_remove_plugin :jacoco-maven-plugin tests
|
|
|
|
%pom_disable_module coverage
|
2020-02-04 12:41:30 +00:00
|
|
|
|
2021-05-18 07:02:22 +00:00
|
|
|
# don't install test packages (aside from flightrecorder.test)
|
2020-02-04 12:41:30 +00:00
|
|
|
%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
|
|
|
|
# some tests require large heap and fail with OOM
|
|
|
|
# depending on the builder resources
|
|
|
|
%mvn_build -- -Dmaven.test.failure.ignore=true
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%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
|
2021-05-18 07:02:22 +00:00
|
|
|
* Thu Mar 04 2021 Alex Macdonald <almacdon@redhat.com> - 8.0.0-2
|
|
|
|
- Add ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
* Fri Feb 12 2021 Alex Macdonald <almacdon@redhat.com> - 8.0.0-1
|
|
|
|
- Update to jmc8 branch commit 8ab40bf
|
|
|
|
|
2020-07-21 15:03:26 +00:00
|
|
|
* Thu Apr 23 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-3
|
|
|
|
- Update to latest commit e67446b5fc9d
|
2021-05-18 07:02:22 +00:00
|
|
|
|
2020-07-21 15:03:26 +00:00
|
|
|
* Fri Apr 17 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-2
|
|
|
|
- remove plugins from pom (maven-source-plugin, jacoco)
|
2021-05-18 07:02:22 +00:00
|
|
|
|
2020-07-21 15:03:26 +00:00
|
|
|
* Thu Apr 16 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-1
|
|
|
|
- Updated to version 7.1.1
|
2021-05-18 07:02:22 +00:00
|
|
|
|
2020-02-04 12:41:30 +00:00
|
|
|
* Thu Nov 14 2019 Jie Kang <jkang@redhat.com> - 7.0.0-3
|
|
|
|
- Don't require junit
|
2021-05-18 07:02:22 +00:00
|
|
|
|
2020-02-04 12:41:30 +00:00
|
|
|
* Wed Nov 13 2019 Jie Kang <jkang@redhat.com> - 7.0.0-2
|
|
|
|
- Exclude test packages
|
2021-05-18 07:02:22 +00:00
|
|
|
|
2020-02-04 12:41:30 +00:00
|
|
|
* Tue Mar 12 2019 Jie Kang <jkang@redhat.com> - 7.0.0-1
|
|
|
|
- Initial package
|