|
|
c85f33 |
%global base_name jolokia
|
|
|
c85f33 |
|
|
|
c85f33 |
# Filter requires for the Java Agent as deps are bundled within.
|
|
|
c85f33 |
%global tools_or_json_simple com\\.googlecode\\.json-simple:json-simple.*|com\\.sun:tools.*
|
|
|
c85f33 |
%global mvn_requires_filter .*mvn\\(%{tools_or_json_simple}\\)
|
|
|
c85f33 |
%global __requires_exclude ^%{mvn_requires_filter}$
|
|
|
c85f33 |
|
|
|
c85f33 |
Name: jolokia-jvm-agent
|
|
|
c85f33 |
Version: 1.6.2
|
|
|
c85f33 |
Release: 3%{?dist}
|
|
|
c85f33 |
Summary: Jolokia JVM Agent
|
|
|
c85f33 |
|
|
|
c85f33 |
License: ASL 2.0
|
|
|
c85f33 |
URL: https://jolokia.org
|
|
|
c85f33 |
|
|
|
c85f33 |
Source0: https://github.com/rhuss/jolokia/releases/download/v%{version}/%{base_name}-%{version}-source.tar.gz
|
|
|
c85f33 |
# See https://github.com/rhuss/jolokia/pull/413, namespace json simple
|
|
|
c85f33 |
# so as to reduce problems related to classloading for apps using json_simple
|
|
|
c85f33 |
# See also: https://github.com/rhuss/jolokia/issues/398
|
|
|
c85f33 |
Patch1: 0001-Shade-json-simple-for-JVM-agent-jar.patch
|
|
|
c85f33 |
|
|
|
c85f33 |
BuildArch: noarch
|
|
|
c85f33 |
|
|
|
c85f33 |
BuildRequires: maven-local
|
|
|
c85f33 |
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
|
|
c85f33 |
BuildRequires: mvn(com.googlecode.json-simple:json-simple)
|
|
|
c85f33 |
# jolokia core depends on the servlet API
|
|
|
c85f33 |
BuildRequires: mvn(javax.servlet:servlet-api)
|
|
|
c85f33 |
|
|
|
c85f33 |
Provides: bundled(com.googlecode.json-simple:json-simple) = 1.1.1
|
|
|
c85f33 |
|
|
|
c85f33 |
%description
|
|
|
c85f33 |
Jolokia JVM Agent.
|
|
|
c85f33 |
|
|
|
c85f33 |
%prep
|
|
|
c85f33 |
%setup -q -n %{base_name}-%{version}
|
|
|
c85f33 |
%patch1 -p1
|
|
|
c85f33 |
# Only build the jolokia-jvm artefact.
|
|
|
c85f33 |
%pom_disable_module it
|
|
|
c85f33 |
%pom_disable_module client
|
|
|
c85f33 |
%pom_disable_module tools/test-util
|
|
|
c85f33 |
%pom_disable_module war agent
|
|
|
c85f33 |
%pom_disable_module war-unsecured agent
|
|
|
c85f33 |
%pom_disable_module jsr160 agent
|
|
|
c85f33 |
%pom_disable_module osgi agent
|
|
|
c85f33 |
%pom_disable_module osgi-bundle agent
|
|
|
c85f33 |
%pom_disable_module jmx agent
|
|
|
c85f33 |
%pom_disable_module jvm-spring agent
|
|
|
c85f33 |
%pom_disable_module mule agent
|
|
|
c85f33 |
|
|
|
c85f33 |
%pom_xpath_remove pom:project/pom:build/pom:extensions pom.xml
|
|
|
c85f33 |
%pom_xpath_remove pom:project/pom:reporting pom.xml
|
|
|
c85f33 |
|
|
|
c85f33 |
# Remove scope=system for com.sun:tools
|
|
|
c85f33 |
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" agent/jvm
|
|
|
c85f33 |
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" agent/jvm
|
|
|
c85f33 |
|
|
|
c85f33 |
%build
|
|
|
c85f33 |
%mvn_build -f -j
|
|
|
c85f33 |
|
|
|
c85f33 |
%install
|
|
|
c85f33 |
%mvn_install
|
|
|
c85f33 |
|
|
|
c85f33 |
%files -f .mfiles
|
|
|
c85f33 |
%license LICENSE
|
|
|
c85f33 |
%doc NOTICE
|
|
|
c85f33 |
|
|
|
c85f33 |
%changelog
|
|
|
c85f33 |
* Wed Oct 09 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1.6.2-3
|
|
|
c85f33 |
- rebuilt
|
|
|
c85f33 |
|
|
|
c85f33 |
* Fri Sep 20 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1.6.2-2
|
|
|
c85f33 |
- Properly name-space bundled json_simple.
|
|
|
c85f33 |
See upstream: https://github.com/rhuss/jolokia/issues/398
|
|
|
c85f33 |
|
|
|
c85f33 |
* Mon Aug 12 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1.6.2-1
|
|
|
c85f33 |
- Initial package.
|
|
|
c85f33 |
|