Name: metrics-reporter-config Version: 3.0.0 Release: 1%{?dist} Summary: Metrics Reporter Config License: ASL 2.0 URL: https://github.com/addthis/metrics-reporter-config Source0: https://github.com/addthis/metrics-reporter-config/archive/v%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.hibernate:hibernate-validator) BuildRequires: mvn(org.mockito:mockito-all) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-simple) BuildRequires: mvn(org.yaml:snakeyaml) # https://bugzilla.redhat.com/show_bug.cgi?id=1245633 # BuildRequires: mvn(io.dropwizard.metrics:metrics-core:3.1.0) BuildRequires: mvn(com.codahale.metrics:metrics-core) # BuildRequires: mvn(io.dropwizard.metrics:metrics-ganglia:3.1.0) BuildRequires: mvn(com.codahale.metrics:metrics-ganglia) # BuildRequires: mvn(io.dropwizard.metrics:metrics-graphite:3.1.0) BuildRequires: mvn(com.codahale.metrics:metrics-graphite) BuildArch: noarch %description Metrics-Reporter-Config aims to provide a simple way to configure and enable a set of Reporters that can be shared among applications. It should fit most (say 90% of) use cases and avoid situations like a plethora of subtly incompatible properties files. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{version} # com.addthis.common.build.maven.pom:jar-pom:3.4.0 %pom_remove_parent %pom_disable_module reporter-config2 %pom_change_dep -r io.dropwizard.metrics: com.codahale.metrics: %pom_xpath_set -r "pom:dependency[pom:artifactId = 'guava']/pom:version" 18.0 %pom_xpath_set -r "pom:dependency[pom:groupId = 'org.slf4j']/pom:version" 1.7.10 # package org.junit does not exist %pom_add_dep junit:junit::test %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc README.mdown %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Wed Jul 22 2015 gil cattaneo 3.0.0-1 - initial rpm