import jmc-core-7.0.0-3.module+el8.1.1+4696+a8c87273

This commit is contained in:
CentOS Sources 2020-07-28 08:07:41 -04:00 committed by Stepan Oksanichenko
commit c0c247aabc
3 changed files with 97 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/9871e02a9e40.tar.gz

1
.jmc-core.metadata Normal file
View File

@ -0,0 +1 @@
f204e02359b91f8158edb5dc2934e6506567bce1 SOURCES/9871e02a9e40.tar.gz

95
SPECS/jmc-core.spec Normal file
View File

@ -0,0 +1,95 @@
# Version
%global major 7
%global minor 0
%global patchlevel 0
# Revision
%global revnum 3
# set to 1 for hg snapshots, 0 for release
%global usesnapshot 0
# SNAPSHOT version
%global hgrevhash 9871e02a9e40
%global hgrevdate 20190528
%global tarball_name jmc7-%{hgrevhash}
%if %{usesnapshot}
%global releasestr %{revnum}.%{hgrevdate}hg%{hgrevhash}
%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/
Source0: https://hg.openjdk.java.net/jmc/jmc7/archive/9871e02a9e40.tar.gz
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: 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
%setup -q -n %{tarball_name}/core
cp ../license/* ./
cp ../README.md ./
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
# don't install test packages
%mvn_package org.openjdk.jmc:missioncontrol.core.tests __noinstall
%mvn_package org.openjdk.jmc:flightrecorder.test __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
* Thu Nov 14 2019 Jie Kang <jkang@redhat.com> - 7.0.0-3
- Don't require junit
* Wed Nov 13 2019 Jie Kang <jkang@redhat.com> - 7.0.0-2
- Exclude test packages
* Tue Mar 12 2019 Jie Kang <jkang@redhat.com> - 7.0.0-1
- Initial package