forked from prometheus/client_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient_java.spec
More file actions
98 lines (75 loc) · 2.64 KB
/
Copy pathclient_java.spec
File metadata and controls
98 lines (75 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Name: prometheus-java-simpleclient
Version: 0.3.0
Release: 1%{?dist}
Summary: Prometheus instrumentation library for JVM applications
License: ASL 2.0 and CC0
URL: https://github.com/yaacov/client_java/
Source0: https://github.com/yaacov/client_java/archive/parent-%{version}.tar.gz
BuildArch: noarch
Patch0: https://raw.githubusercontent.com/yaacov/client_java/master/jetty9.patch
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
%description
Prometheus JVM Client supports Java, Clojure, Scala,
JRuby, and anything else that runs on the JVM.
%package parent
Summary: Prometheus Java Suite Parent POM
%description parent
Prometheus Java Suite Parent POM.
%package common
Summary: Prometheus Java Simpleclient Common
%description common
Common code used by various modules of the Simpleclient.
%package servlet
Summary: Prometheus Java Simpleclient Servlet
%description servlet
HTTP servlet exporter for the simpleclient.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package provides %{summary}.
%prep
%setup -q -n client_java-parent-%{version}
%pom_disable_module simpleclient_caffeine
%pom_disable_module simpleclient_dropwizard
%pom_disable_module simpleclient_graphite_bridge
%pom_disable_module simpleclient_hibernate
%pom_disable_module simpleclient_guava
%pom_disable_module simpleclient_hotspot
%pom_disable_module simpleclient_httpserver
%pom_disable_module simpleclient_log4j
%pom_disable_module simpleclient_log4j2
%pom_disable_module simpleclient_logback
%pom_disable_module simpleclient_pushgateway
%pom_disable_module simpleclient_spring_web
%pom_disable_module simpleclient_spring_boot
%pom_disable_module simpleclient_jetty
%pom_disable_module simpleclient_jetty_jdk8
%pom_disable_module simpleclient_vertx
%pom_disable_module benchmark
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-release-plugin
%patch0 -p0
%build
%mvn_build -s
%install
%mvn_install
%files -f .mfiles-simpleclient
%doc README.md
%license LICENSE NOTICE
%files parent -f .mfiles-parent
%license LICENSE NOTICE
%files common -f .mfiles-simpleclient_common
%license LICENSE NOTICE
%files servlet -f .mfiles-simpleclient_servlet
%license LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Mon Apr 2 2018 Yaacov Zamir <yzamir@redhat.com> - 0.3.0-1
- Initial packaging