!1 Add package gmetric4j

Merge pull request !1 from 王歌/master
This commit is contained in:
openeuler-ci-bot 2020-08-20 18:28:14 +08:00 committed by Gitee
commit e096f8400c
3 changed files with 63 additions and 0 deletions

BIN
1.0.10.tar.gz Normal file

Binary file not shown.

59
gmetric4j.spec Normal file
View File

@ -0,0 +1,59 @@
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

4
gmetric4j.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ganglia/gmetric4j
tag_prefix: NA
seperator: "."