Blame SPECS/jmc-core.spec

487c1b
# Version
487c1b
%global major 7
487c1b
%global minor 1
487c1b
%global patchlevel 1
487c1b
487c1b
# Revision
487c1b
%global revnum 5
487c1b
# set to 1 for hg snapshots, 0 for release
487c1b
%global usesnapshot 0
487c1b
487c1b
# SNAPSHOT version
487c1b
%global hgrevhash 63ec7d0ee8d9
487c1b
%global hgrevdate 20200608
487c1b
487c1b
%global tarball_name jmc7-%{hgrevhash}
487c1b
487c1b
%if %{usesnapshot}
487c1b
  %global releasestr %{revnum}.%{hgrevdate}hg%{hgrevhash}
487c1b
%else
487c1b
  %global releasestr %{revnum}
487c1b
%endif
487c1b
487c1b
Name:     jmc-core
487c1b
Version:  %{major}.%{minor}.%{patchlevel}
487c1b
Release:  %{releasestr}%{?dist}.2
487c1b
Summary:  Core API for JDK Mission Control
487c1b
# jmc source README.md states: The Mission Control source code is made
487c1b
# available under the Universal Permissive License (UPL), Version 1.0 or a
487c1b
# BSD-style license, alternatively. The full open source license text is
487c1b
# available at license/LICENSE.txt in the JMC project.
487c1b
License:  UPL or BSD
487c1b
URL:      http://openjdk.java.net/projects/jmc/
487c1b
487c1b
Source0:    https://hg.openjdk.java.net/jmc/jmc7/archive/%{hgrevhash}.tar.gz
487c1b
487c1b
BuildArch:  noarch
487c1b
487c1b
BuildRequires:  maven-local
487c1b
BuildRequires:  mvn(org.owasp.encoder:encoder)
487c1b
487c1b
# maven requires generator will add Require for runtime dependency
487c1b
#   on mvn(org.owasp.encoder:encoder)
487c1b
487c1b
%description
487c1b
JDK Mission Control is an advanced set of tools that enables efficient and
487c1b
detailed analysis of the extensive data collected by Flight Recorder. The
487c1b
tool chain enables developers and administrators to collect and analyze data
487c1b
from Java applications running locally or deployed in production environments.
487c1b
487c1b
%package javadoc
487c1b
Summary:  Javadoc for %{name}
487c1b
487c1b
%description javadoc
487c1b
%{summary}.
487c1b
487c1b
%prep
487c1b
%setup -q -n %{tarball_name}/core
487c1b
cp ../license/* ./
487c1b
cp ../README.md ./
487c1b
487c1b
%pom_remove_plugin :nexus-staging-maven-plugin
487c1b
%pom_remove_plugin :maven-source-plugin
487c1b
%pom_remove_plugin :maven-javadoc-plugin
487c1b
487c1b
%pom_remove_plugin :jacoco-maven-plugin tests
487c1b
%pom_disable_module coverage
487c1b
487c1b
# don't install test packages
487c1b
%mvn_package org.openjdk.jmc:missioncontrol.core.tests __noinstall
487c1b
%mvn_package org.openjdk.jmc:flightrecorder.test __noinstall
487c1b
%mvn_package org.openjdk.jmc:flightrecorder.rules.test __noinstall
487c1b
%mvn_package org.openjdk.jmc:flightrecorder.rules.jdk.test __noinstall
487c1b
487c1b
%build
487c1b
# some tests require large heap and fail with OOM
487c1b
# depending on the builder resources
487c1b
%mvn_build -- -Dmaven.test.failure.ignore=true
487c1b
487c1b
%install
487c1b
%mvn_install
487c1b
487c1b
%files -f .mfiles
487c1b
%license LICENSE.txt
487c1b
%license THIRDPARTYREADME.txt
487c1b
%doc README.md
487c1b
487c1b
%files javadoc -f .mfiles-javadoc
487c1b
%license LICENSE.txt
487c1b
%license THIRDPARTYREADME.txt
487c1b
%doc README.md
487c1b
487c1b
%changelog
487c1b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 7.1.1-5.2
487c1b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
487c1b
487c1b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-5.1
487c1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
487c1b
487c1b
* Mon Sep 21 2020 Jie Kang <jkang@redhat.com> - 7.1.1-5
487c1b
- Update license
487c1b
* Fri Aug 28 2020 Jie Kang <jkang@redhat.com> - 7.1.1-4
487c1b
- Update to latest upstream 63ec7d0ee8d9
487c1b
* Mon Apr 27 2020 Jie Kang <jkang@redhat.com> - 7.1.1-3
487c1b
- Update to upstream 7.1.1 ga commit
487c1b
* Wed Mar 11 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-2
487c1b
- Update to latest upstream to include JMC-6728
487c1b
* Fri Feb 28 2020 Alex Macdonald <almacdon@redhat.com> - 7.1.1-1
487c1b
- Update to latest upstream
487c1b
* Fri Dec 20 2019 Alex Macdonald <almacdon@redhat.com> - 7.1.0-1
487c1b
- Update to latest upstream (7.1.0-ga) and disable jacoco & coverage
487c1b
* Tue Sep 24 2019 Jie Kang <jkang@redhat.com> - 7.0.0-2
487c1b
- Update to latest upstream with minor bug fixes
487c1b
* Thu Aug 15 2019 Jie Kang <jkang@redhat.com> - 7.0.0-1
487c1b
- Exclude test packages
487c1b
* Fri May 31 2019 Jie Kang <jkang@redhat.com> - 7.0.0-0
487c1b
- Initial package