2022-05-16 15:29:04 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package codahale-metrics
|
|
|
|
|
#
|
2023-09-26 23:32:08 +00:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-05-16 15:29:04 +00:00
|
|
|
|
#
|
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: codahale-metrics
|
2022-05-16 18:44:20 +00:00
|
|
|
|
Version: 3.0.2
|
2022-05-16 15:29:04 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: The Metrics library
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Libraries/Java
|
2022-05-16 18:44:20 +00:00
|
|
|
|
URL: https://github.com/dropwizard/metrics
|
|
|
|
|
Source0: metrics-%{version}.tar.xz
|
2022-05-16 15:29:04 +00:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(ch.qos.logback:logback-classic)
|
|
|
|
|
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
|
2023-09-26 23:32:08 +00:00
|
|
|
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
|
|
|
|
BuildRequires: mvn(log4j:log4j)
|
2022-05-16 18:44:20 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2023-09-26 23:32:08 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
|
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
2022-05-16 15:29:04 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Metrics is a Java library which gives you unparalleled insight into what your
|
|
|
|
|
code does in production. Metrics provides a powerful toolkit of ways to measure
|
|
|
|
|
the behavior of critical components in your production environment.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%package annotation
|
|
|
|
|
Summary: Annotations for Metrics
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description annotation
|
|
|
|
|
A dependency-less package of just the annotations used by other Metrics
|
|
|
|
|
modules.
|
|
|
|
|
|
|
|
|
|
%package core
|
|
|
|
|
Summary: Metrics Core
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description core
|
|
|
|
|
Metrics is a Java library which gives you unparalleled insight into what your
|
|
|
|
|
code does in production. Metrics provides a powerful toolkit of ways to measure
|
|
|
|
|
the behavior of critical components in your production environment.
|
|
|
|
|
|
|
|
|
|
%package graphite
|
|
|
|
|
Summary: Graphite Integration for Metrics
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description graphite
|
|
|
|
|
A reporter for Metrics which announces measurements to a Graphite server.
|
|
|
|
|
|
|
|
|
|
%package healthchecks
|
|
|
|
|
Summary: Metrics Health Checks
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description healthchecks
|
|
|
|
|
An addition to Metrics which provides the ability to run application-specific
|
|
|
|
|
health checks, allowing you to check your application’s heath in production.
|
|
|
|
|
|
|
|
|
|
%package httpclient
|
|
|
|
|
Summary: Metrics Integration for Apache HttpClient
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description httpclient
|
|
|
|
|
An Apache HttpClient wrapper providing Metrics instrumentation of connection
|
|
|
|
|
pools, request durations and rates, and other useful information.
|
|
|
|
|
|
|
|
|
|
%package json
|
|
|
|
|
Summary: Jackson Integration for Metrics
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description json
|
|
|
|
|
A set of Jackson modules which provide serializers for most Metrics classes.
|
|
|
|
|
|
|
|
|
|
%package jvm
|
|
|
|
|
Summary: JVM Integration for Metrics
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description jvm
|
|
|
|
|
A set of classes which allow you to monitor critical aspects of your Java
|
|
|
|
|
Virtual Machine using Metrics.
|
|
|
|
|
|
|
|
|
|
%package log4j
|
|
|
|
|
Summary: The Log4j module for %{name}
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description log4j
|
|
|
|
|
An instrumented appender for Log4j.
|
|
|
|
|
|
|
|
|
|
%package logback
|
|
|
|
|
Summary: The Logback module for %{name}
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description logback
|
|
|
|
|
An instrumented appender for Logback.
|
|
|
|
|
|
|
|
|
|
%package servlet
|
|
|
|
|
Summary: The Setvlet module for %{name}
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description servlet
|
|
|
|
|
An instrumented filter for servlet environments.
|
|
|
|
|
|
|
|
|
|
%package servlets
|
|
|
|
|
Summary: The Setvlets module for %{name}
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description servlets
|
|
|
|
|
A set of utility servlets for Metrics, allowing you to expose valuable
|
|
|
|
|
information about your production environment.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%setup -q -n metrics-%{version}
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%pom_xpath_replace 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:*/text()' 8
|
|
|
|
|
|
|
|
|
|
%pom_remove_plugin :maven-release-plugin
|
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
2023-09-15 05:35:05 +00:00
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
2022-05-16 15:29:04 +00:00
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
|
|
|
|
|
|
|
|
|
|
%pom_disable_module metrics-benchmarks
|
|
|
|
|
# No net.sf.ehcache:ehcache-core
|
|
|
|
|
%pom_disable_module metrics-ehcache
|
|
|
|
|
# No info.ganglia.gmetric4j:gmetric4j
|
|
|
|
|
%pom_disable_module metrics-ganglia
|
|
|
|
|
# No org.jdbi:jdbi
|
|
|
|
|
%pom_disable_module metrics-jdbi
|
|
|
|
|
%pom_disable_module metrics-jersey
|
|
|
|
|
%pom_disable_module metrics-jetty8
|
|
|
|
|
# Errors:
|
|
|
|
|
%pom_disable_module metrics-jetty9
|
|
|
|
|
|
|
|
|
|
%{mvn_package} ":metrics-{*}" @1
|
|
|
|
|
|
|
|
|
|
%build
|
2023-09-12 12:39:33 +00:00
|
|
|
|
%{mvn_build} -f -s -- \
|
|
|
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files -f .mfiles-parent
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
%doc README.md
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files annotation -f .mfiles-annotation
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files core -f .mfiles-core
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files graphite -f .mfiles-graphite
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files healthchecks -f .mfiles-healthchecks
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files httpclient -f .mfiles-httpclient
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files json -f .mfiles-json
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files jvm -f .mfiles-jvm
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files log4j -f .mfiles-log4j
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files servlet -f .mfiles-servlet
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files servlets -f .mfiles-servlets
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%files logback -f .mfiles-logback
|
2022-05-16 18:44:20 +00:00
|
|
|
|
%license LICENSE NOTICE
|
2022-05-16 15:29:04 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|