commit 214d90a569f93ab1696ea268eabdaebd4fa1ed4a Author: CentOS Sources Date: Fri Jul 10 01:17:47 2020 +0000 import jmc-core-7.1.1-3.module+el8.2.1+6408+a7ca4662 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..097bf6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/e67446b5fc9d.tar.gz diff --git a/.jmc-core.metadata b/.jmc-core.metadata new file mode 100644 index 0000000..6908e7e --- /dev/null +++ b/.jmc-core.metadata @@ -0,0 +1 @@ +676ac85e3a33296288129c09e1b898a9d460d36f SOURCES/e67446b5fc9d.tar.gz diff --git a/SPECS/jmc-core.spec b/SPECS/jmc-core.spec new file mode 100644 index 0000000..39088e9 --- /dev/null +++ b/SPECS/jmc-core.spec @@ -0,0 +1,105 @@ +# Version +%global major 7 +%global minor 1 +%global patchlevel 1 + +# Revision +%global revnum 3 +# set to 1 for hg snapshots, 0 for release +%global usesnapshot 0 + +# SNAPSHOT version +%global hgrevhash e67446b5fc9d +%global hgrevdate 20200422 + +%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/%{hgrevhash}.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 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 :maven-source-plugin +%pom_remove_plugin :maven-javadoc-plugin + +%pom_remove_plugin :jacoco-maven-plugin tests +%pom_disable_module coverage + +# 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 Apr 23 2020 Alex Macdonald - 7.1.1-3 +- Update to latest commit e67446b5fc9d +* Fri Apr 17 2020 Alex Macdonald - 7.1.1-2 +- remove plugins from pom (maven-source-plugin, jacoco) +* Thu Apr 16 2020 Alex Macdonald - 7.1.1-1 +- Updated to version 7.1.1 +* Thu Nov 14 2019 Jie Kang - 7.0.0-3 +- Don't require junit +* Wed Nov 13 2019 Jie Kang - 7.0.0-2 +- Exclude test packages +* Tue Mar 12 2019 Jie Kang - 7.0.0-1 +- Initial package