diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c580cf2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/prometheus_client_golang-82f5ff156b29e276022b1a958f7d385870fb9814.tar.gz diff --git a/golang-github-m3db-prometheus-client.spec b/golang-github-m3db-prometheus-client.spec new file mode 100644 index 0000000..a939ca4 --- /dev/null +++ b/golang-github-m3db-prometheus-client.spec @@ -0,0 +1,59 @@ +# Generated by go2rpm +%bcond_with check + +# https://github.com/m3db/prometheus_client_golang +%global goipath github.com/m3db/prometheus_client_golang +Version: 0.9.0 +%global commit 82f5ff156b29e276022b1a958f7d385870fb9814 + +%gometa + +%global common_description %{expand: +This is the Go client library for Prometheus. It has two separate parts, one for +instrumenting application code, and one for creating clients that talk to the +Prometheus HTTP API.} + +%global golicenses LICENSE NOTICE +%global godocs examples CHANGELOG.md CONTRIBUTING.md\\\ + MAINTAINERS.md README.md + +Name: %{goname} +Release: 1.pre1%{?dist} +Summary: Prometheus instrumentation library for Go applications + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/beorn7/perks/quantile) +BuildRequires: golang(github.com/golang/protobuf/proto) +BuildRequires: golang(github.com/m3db/prometheus_client_model/go) +BuildRequires: golang(github.com/prometheus/common/expfmt) +BuildRequires: golang(github.com/prometheus/common/model) +BuildRequires: golang(github.com/prometheus/procfs) +BuildRequires: golang(golang.org/x/net/context) + +%description +%{common_description} + +%gopkg + +%prep +%goprep +find . -name "*.go" -exec sed -i "s|github.com/prometheus/client_golang|github.com/m3db/prometheus_client_golang|" "{}" +; +find . -name "*.go" -exec sed -i "s|github.com/prometheus/client_model|github.com/m3db/prometheus_client_model|" "{}" +; + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Mon May 06 16:24:01 CEST 2019 Robert-André Mauchin - 0.9.0-1.pre1.20190628git82f5ff1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bec6929 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (prometheus_client_golang-82f5ff156b29e276022b1a958f7d385870fb9814.tar.gz) = 426b9b4ad96bfaaa55b6e0dea430676153cf10a7d050658927ab67a40770e2c0e9f3ef64c740c9b503daff045dce46d3a2c127e453a5678de2e04227293bedec