From ee862ffd6750ffc904a59073c10a8aeb2b60f1d4 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jul 01 2019 12:23:50 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df90308 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tsdb-0.7.1.tar.gz diff --git a/golang-github-prometheus-tsdb.spec b/golang-github-prometheus-tsdb.spec new file mode 100644 index 0000000..0b186da --- /dev/null +++ b/golang-github-prometheus-tsdb.spec @@ -0,0 +1,76 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/prometheus/tsdb +%global goipath github.com/prometheus/tsdb +Version: 0.7.1 + +%gometa + +%global common_description %{expand: +Package Tsdb implements a time series storage for float64 sample data.} + +%global golicenses LICENSE +%global godocs docs MAINTAINERS.md README.md CHANGELOG.md\\\ + README-tsdb.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Prometheus time series database layer + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/cespare/xxhash) +BuildRequires: golang(github.com/go-kit/kit/log) +BuildRequires: golang(github.com/go-kit/kit/log/level) +BuildRequires: golang(github.com/oklog/ulid) +BuildRequires: golang(github.com/pkg/errors) +BuildRequires: golang(github.com/prometheus/client_golang/prometheus) +BuildRequires: golang(github.com/prometheus/client_golang/prometheus/promauto) +BuildRequires: golang(golang.org/x/sync/errgroup) +BuildRequires: golang(golang.org/x/sys/unix) +BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/prometheus/client_golang/prometheus/testutil) +BuildRequires: golang(github.com/prometheus/client_model/go) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep +mv cmd/tsdb/README.md README-tsdb.md + +%build +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done + +%install +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +%files +%license LICENSE +%doc docs MAINTAINERS.md README.md CHANGELOG.md README-tsdb.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Wed May 15 15:44:48 CEST 2019 Robert-André Mauchin - 0.7.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6be6d09 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tsdb-0.7.1.tar.gz) = bd7fd29aee73df99969cd51422a2baf051c3d0cbc12a946f6550ae1fc9f7d8b16e86155d84d6ac869025aaca8c4bd3a0da221c32dae586524ddf583b8ee3d64c