60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
Name: gmetric4j
|
|
Version: 1.0.10
|
|
Release: 1
|
|
Summary: JVM instrumentation to Ganglia
|
|
License: BSD
|
|
URL: https://github.com/ganglia/gmetric4j
|
|
Source0: https://github.com/ganglia/gmetric4j/archive/%{version}.tar.gz
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.acplt.remotetea:remotetea-oncrpc)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildRequires: xmvn
|
|
BuildArch: noarch
|
|
%description
|
|
Gmetric4j is a 100% java, configurable Ganglia agent that
|
|
periodically polls arbitrary attributes and reports their
|
|
values to Ganglia.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
find . -name "*.class" -delete
|
|
find . -name "*.jar" -type f -delete
|
|
%pom_remove_plugin :maven-jar-plugin
|
|
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin:2.4" . '
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>test-jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>'
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_xpath_inject "pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions" "
|
|
<Can-Redefine-Classes>false</Can-Redefine-Classes>"
|
|
rm src/main/resources/META-INF/MANIFEST.MF
|
|
rm -r src/test/java/info/ganglia/gmetric4j/gmetric/GMetricIT.java
|
|
%mvn_file : %{name}
|
|
%mvn_package :%{name}::tests:
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc README
|
|
%license COPYING
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license COPYING
|
|
|
|
%changelog
|
|
* Sat Aug 15 2020 Ge Wang <wangge20@huawei.com> - 1.0.10-1
|
|
- Package init
|