Accepting request 780141 from home:fstrba:maven
new package OBS-URL: https://build.opensuse.org/request/show/780141 OBS-URL: https://build.opensuse.org/package/show/Java:packages/prometheus-simpleclient-java?expand=0&rev=1
This commit is contained in:
commit
45bc76ca17
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
parent-0.8.0.tar.gz
Normal file
3
parent-0.8.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4e2567d9b6baaa2043d0487ab8d9524a266519be3b4848a41a80ad2a74915a9a
|
||||||
|
size 162801
|
4
prometheus-simpleclient-java.changes
Normal file
4
prometheus-simpleclient-java.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 28 07:15:42 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Initial packaging of prometheus-simpleclient-java 0.8.0
|
190
prometheus-simpleclient-java.spec
Normal file
190
prometheus-simpleclient-java.spec
Normal file
@ -0,0 +1,190 @@
|
|||||||
|
#
|
||||||
|
# spec file for package prometheus-simpleclient-java
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global version_id parent
|
||||||
|
%global upstream_name client_java
|
||||||
|
Name: prometheus-simpleclient-java
|
||||||
|
Version: 0.8.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Prometheus Java Suite
|
||||||
|
License: Apache-2.0 AND CC0-1.0
|
||||||
|
URL: https://github.com/prometheus/client_java/
|
||||||
|
Source0: https://github.com/prometheus/client_java/archive/%{version_id}-%{version}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: java-devel >= 1.8
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(ch.qos.logback:logback-classic)
|
||||||
|
BuildRequires: mvn(com.google.guava:guava:18.0)
|
||||||
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||||||
|
BuildRequires: mvn(log4j:log4j:1.2.17)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
|
||||||
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Prometheus Java Suite: Client Metrics, Exposition, and Examples.
|
||||||
|
|
||||||
|
%package parent
|
||||||
|
Summary: Prometheus Java Suite parent pom
|
||||||
|
|
||||||
|
%description parent
|
||||||
|
The Prometheus Java Suite: Client Metrics, Exposition, and Examples.
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Summary: Prometheus Java Simpleclient Common
|
||||||
|
|
||||||
|
%description common
|
||||||
|
Common code used by various modules of the Simpleclient.
|
||||||
|
|
||||||
|
%package graphite_bridge
|
||||||
|
Summary: Prometheus Java Simpleclient Graphite Bridge
|
||||||
|
|
||||||
|
%description graphite_bridge
|
||||||
|
Graphite bridge for the Prometheus Java Simpleclient.
|
||||||
|
|
||||||
|
%package guava
|
||||||
|
Summary: Prometheus Java Simpleclient guava
|
||||||
|
|
||||||
|
%description guava
|
||||||
|
Metrics collector for guava based caches.
|
||||||
|
|
||||||
|
%package hotspot
|
||||||
|
Summary: Prometheus Java Simpleclient Hotspot
|
||||||
|
|
||||||
|
%description hotspot
|
||||||
|
Collectors of data from Java Hotspot.
|
||||||
|
|
||||||
|
%package httpserver
|
||||||
|
Summary: Prometheus Java Simpleclient Httpserver
|
||||||
|
|
||||||
|
%description httpserver
|
||||||
|
Httpserver exposition for the simpleclient.
|
||||||
|
|
||||||
|
%package jetty
|
||||||
|
Summary: Prometheus Java Simpleclient Jetty
|
||||||
|
|
||||||
|
%description jetty
|
||||||
|
Collector of data from Jetty StatisticsHandler.
|
||||||
|
|
||||||
|
%package jetty_jdk8
|
||||||
|
Summary: Prometheus Java Simpleclient Jetty JDK 8
|
||||||
|
|
||||||
|
%description jetty_jdk8
|
||||||
|
Collector of data from Jetty Statistics for Jetty versions which require JDK 8.
|
||||||
|
|
||||||
|
%package log4j
|
||||||
|
Summary: Prometheus Java Simpleclient log4j
|
||||||
|
|
||||||
|
%description log4j
|
||||||
|
Metrics collector for log4j appender logging.
|
||||||
|
|
||||||
|
%package log4j2
|
||||||
|
Summary: Prometheus Java Simpleclient log4j2
|
||||||
|
|
||||||
|
%description log4j2
|
||||||
|
Metrics collector for log4j2 appender logging.
|
||||||
|
|
||||||
|
%package logback
|
||||||
|
Summary: Prometheus Java Simpleclient logback
|
||||||
|
|
||||||
|
%description logback
|
||||||
|
Metrics collector for logback appender logging.
|
||||||
|
|
||||||
|
%package pushgateway
|
||||||
|
Summary: Prometheus Java Simpleclient Pushgateway
|
||||||
|
|
||||||
|
%description pushgateway
|
||||||
|
Pushgateway exporter for the simpleclient.
|
||||||
|
|
||||||
|
%package servlet
|
||||||
|
Summary: Prometheus Java Simpleclient Servlet
|
||||||
|
|
||||||
|
%description servlet
|
||||||
|
HTTP servlet exporter for the simpleclient.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
This package contains javadoc for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{upstream_name}-%{version_id}-%{version}
|
||||||
|
|
||||||
|
# Remove included jar files
|
||||||
|
find . -name \*.jar -print0 | xargs -0 rm
|
||||||
|
|
||||||
|
%pom_remove_plugin :maven-release-plugin
|
||||||
|
%pom_remove_plugin :maven-deploy-plugin
|
||||||
|
|
||||||
|
# Disable modules where we lack dependencies
|
||||||
|
for m in simpleclient_caffeine \
|
||||||
|
simpleclient_dropwizard \
|
||||||
|
simpleclient_hibernate \
|
||||||
|
simpleclient_spring_web \
|
||||||
|
simpleclient_spring_boot \
|
||||||
|
simpleclient_vertx \
|
||||||
|
benchmark; do
|
||||||
|
%pom_disable_module $m
|
||||||
|
done
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{mvn_build} -f -s -- -Dsource=8
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
%files -f .mfiles-simpleclient
|
||||||
|
%license LICENSE
|
||||||
|
%doc NOTICE
|
||||||
|
|
||||||
|
%files parent -f .mfiles-parent
|
||||||
|
|
||||||
|
%files common -f .mfiles-simpleclient_common
|
||||||
|
|
||||||
|
%files graphite_bridge -f .mfiles-simpleclient_graphite_bridge
|
||||||
|
|
||||||
|
%files guava -f .mfiles-simpleclient_guava
|
||||||
|
|
||||||
|
%files hotspot -f .mfiles-simpleclient_hotspot
|
||||||
|
|
||||||
|
%files httpserver -f .mfiles-simpleclient_httpserver
|
||||||
|
|
||||||
|
%files jetty -f .mfiles-simpleclient_jetty
|
||||||
|
|
||||||
|
%files jetty_jdk8 -f .mfiles-simpleclient_jetty_jdk8
|
||||||
|
|
||||||
|
%files log4j -f .mfiles-simpleclient_log4j
|
||||||
|
|
||||||
|
%files log4j2 -f .mfiles-simpleclient_log4j2
|
||||||
|
|
||||||
|
%files logback -f .mfiles-simpleclient_logback
|
||||||
|
|
||||||
|
%files pushgateway -f .mfiles-simpleclient_pushgateway
|
||||||
|
|
||||||
|
%files servlet -f .mfiles-simpleclient_servlet
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE
|
||||||
|
%doc NOTICE
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user