Blame SPECS/jmc-core.spec

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