Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:SilvioMoioli:tools
jmx_exporter
jmx_exporter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jmx_exporter.spec of Package jmx_exporter
# # spec file for "jmx_exporter" # # Copyright (c) 2017 silvio # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: jmx_exporter Version: 0.9 Release: 1 License: Apache-2.0 Summary: Prometheus exporter for JMX metrics Url: http://github.com/prometheus/jmx_exporter Group: Development/Libraries/Java Source0: parent-0.9.tar.gz Source1: build.sh BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: xz BuildRequires: java-devel BuildRequires: jmx_exporter-kit == 96e6792bd273163f93e71df44e0d232875ed6060 BuildArch: noarch Provides: mvn(io.prometheus.jmx:collector) == 0.9 Provides: mvn(io.prometheus.jmx:jmx_prometheus_httpserver) == 0.9 Provides: mvn(io.prometheus.jmx:jmx_prometheus_javaagent) == 0.9 Requires: java %description A Collector that can configurably scrape and expose mBeans of a JMX target. It meant to be run as a Java Agent, exposing an HTTP server and scraping the local JVM. This can be also run as an independent HTTP server and scrape remote JMX targets. %prep %setup -q -c -n src cp -f %{SOURCE1} . cp -Rf %{_datadir}/tetra ../kit %build cd .. sh src/build.sh %install export NO_BRP_CHECK_BYTECODE_VERSION=true mkdir -p %{buildroot}%{_javadir} cp -a jmx_exporter-parent-0.9/jmx_prometheus_httpserver/target/jmx_prometheus_httpserver-0.9-jar-with-dependencies.jar %{buildroot}%{_javadir}/jmx_prometheus_httpserver-0.9.jar cp -a jmx_exporter-parent-0.9/jmx_prometheus_javaagent/target/jmx_prometheus_javaagent-0.9.jar %{buildroot}%{_javadir}/jmx_prometheus_javaagent-0.9.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s/-%{version}//g"`; done) %files %defattr(-,root,root) %{_javadir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor