first commit
This commit is contained in:
parent
d944cc27f3
commit
af5770beee
BIN
1.0.10.tar.gz
Normal file
BIN
1.0.10.tar.gz
Normal file
Binary file not shown.
59
gmetric4j.spec
Normal file
59
gmetric4j.spec
Normal 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
4
gmetric4j.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: ganglia/gmetric4j
|
||||
tag_prefix: NA
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user