The package rpms/golang-github-prometheus-prometheus.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-promethe....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit b6ae0bc170e35899dd86410c2dcdda2c5334d96e
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Mon Jul 8 23:37:40 2019 +0200
Renamed to golang-github-prometheus
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 752c57f..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/prometheus-3569eef.tar.gz
-/prometheus-2.9.2.tar.gz
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..b0a3325
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+Renamed to golang-github-prometheus
diff --git a/golang-github-prometheus.spec b/golang-github-prometheus.spec
deleted file mode 100644
index d835951..0000000
--- a/golang-github-prometheus.spec
+++ /dev/null
@@ -1,212 +0,0 @@
-# Generated by go2rpm
-%bcond_without check
-
-#
https://github.com/prometheus/prometheus
-%global goipath
github.com/prometheus/prometheus
-Version: 2.9.2
-
-%gometa
-
-%global common_description %{expand:
-The Prometheus monitoring system and time series database.}
-
-%global golicenses LICENSE NOTICE
-%global godocs docs CHANGELOG.md MAINTAINERS.md code-of-conduct.md\\\
- CONTRIBUTING.md README.md RELEASE.md\\\
- documentation
-
-Name: %{goname}
-Release: 1%{?dist}
-Summary: Prometheus monitoring system and time series database
-
-# Upstream license specification: Apache-2.0
-License: ASL 2.0
-URL: %{gourl}
-Source0: %{gosource}
-
-BuildRequires:
golang(github.com/alecthomas/units)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/session)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/service/ec2)
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01...
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-10-01...
-BuildRequires:
golang(github.com/Azure/go-autorest/autorest)
-BuildRequires:
golang(github.com/Azure/go-autorest/autorest/adal)
-BuildRequires:
golang(github.com/Azure/go-autorest/autorest/azure)
-BuildRequires:
golang(github.com/cespare/xxhash)
-BuildRequires:
golang(github.com/cockroachdb/cockroach/pkg/util/protoutil)
-BuildRequires:
golang(github.com/go-kit/kit/log)
-BuildRequires:
golang(github.com/go-kit/kit/log/level)
-BuildRequires:
golang(github.com/go-logfmt/logfmt)
-BuildRequires:
golang(github.com/gogo/protobuf/gogoproto)
-BuildRequires:
golang(github.com/gogo/protobuf/proto)
-BuildRequires:
golang(github.com/gogo/protobuf/types)
-BuildRequires:
golang(github.com/golang/snappy)
-BuildRequires:
golang(github.com/google/pprof/profile)
-BuildRequires:
golang(github.com/gophercloud/gophercloud)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/servers)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/pagination)
-BuildRequires:
golang(github.com/grpc-ecosystem/grpc-gateway/runtime)
-BuildRequires:
golang(github.com/grpc-ecosystem/grpc-gateway/utilities)
-BuildRequires:
golang(github.com/hashicorp/consul/api)
-# Obsolete, in documentation examples only
-# BuildRequires:
golang(github.com/influxdata/influxdb/client/v2)
-BuildRequires:
golang(github.com/json-iterator/go)
-BuildRequires:
golang(github.com/miekg/dns)
-BuildRequires:
golang(github.com/mwitkow/go-conntrack)
-BuildRequires:
golang(github.com/oklog/oklog/pkg/group)
-BuildRequires:
golang(github.com/opentracing-contrib/go-stdlib/nethttp)
-BuildRequires:
golang(github.com/opentracing/opentracing-go)
-BuildRequires:
golang(github.com/pkg/errors)
-BuildRequires:
golang(github.com/prometheus/client_golang/api)
-BuildRequires:
golang(github.com/prometheus/client_golang/api/prometheus/v1)
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/promauto)
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/promhttp)
-BuildRequires:
golang(github.com/prometheus/client_model/go)
-BuildRequires:
golang(github.com/prometheus/common/config)
-BuildRequires:
golang(github.com/prometheus/common/expfmt)
-BuildRequires:
golang(github.com/prometheus/common/model)
-BuildRequires:
golang(github.com/prometheus/common/promlog)
-BuildRequires:
golang(github.com/prometheus/common/promlog/flag)
-BuildRequires:
golang(github.com/prometheus/common/route)
-BuildRequires:
golang(github.com/prometheus/common/version)
-BuildRequires:
golang(github.com/prometheus/tsdb)
-BuildRequires:
golang(github.com/prometheus/tsdb/fileutil)
-BuildRequires:
golang(github.com/prometheus/tsdb/labels)
-BuildRequires:
golang(github.com/prometheus/tsdb/wal)
-BuildRequires:
golang(github.com/samuel/go-zookeeper/zk)
-BuildRequires:
golang(github.com/shurcooL/vfsgen)
-BuildRequires:
golang(github.com/simonpasquier/klog-gokit)
-BuildRequires:
golang(github.com/soheilhy/cmux)
-BuildRequires:
golang(golang.org/x/net/netutil)
-BuildRequires:
golang(golang.org/x/oauth2/google)
-BuildRequires:
golang(golang.org/x/time/rate)
-BuildRequires:
golang(google.golang.org/api/compute/v1)
-BuildRequires:
golang(google.golang.org/api/option)
-BuildRequires:
golang(google.golang.org/genproto/googleapis/api/annotations)
-BuildRequires:
golang(google.golang.org/grpc)
-BuildRequires:
golang(google.golang.org/grpc/codes)
-BuildRequires:
golang(google.golang.org/grpc/grpclog)
-BuildRequires:
golang(google.golang.org/grpc/status)
-BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2)
-BuildRequires: golang(gopkg.in/fsnotify/fsnotify.v1)
-BuildRequires: golang(gopkg.in/yaml.v2)
-BuildRequires: golang(k8s.io/api/core/v1)
-BuildRequires: golang(k8s.io/api/extensions/v1beta1)
-BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1)
-BuildRequires: golang(k8s.io/apimachinery/pkg/runtime)
-BuildRequires: golang(k8s.io/apimachinery/pkg/watch)
-BuildRequires: golang(k8s.io/client-go/kubernetes)
-BuildRequires: golang(k8s.io/client-go/rest)
-BuildRequires: golang(k8s.io/client-go/tools/cache)
-BuildRequires: golang(k8s.io/client-go/tools/metrics)
-BuildRequires: golang(k8s.io/client-go/util/workqueue)
-
-%if %{with check}
-# Tests
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/testutil)
-BuildRequires:
golang(github.com/stretchr/testify/assert)
-BuildRequires:
golang(github.com/stretchr/testify/require)
-BuildRequires: golang(k8s.io/apimachinery/pkg/types)
-BuildRequires: golang(k8s.io/client-go/kubernetes/fake)
-%endif
-
-%description
-%{common_description}
-
-%gopkg
-
-%prep
-%goprep
-find . -name "*.go" -exec sed -i "s|\"k8s.io/klog\"|klog
\"github.com/simonpasquier/klog-gokit\"|" "{}" +;
-
-%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 NOTICE
-%doc docs CHANGELOG.md MAINTAINERS.md code-of-conduct.md CONTRIBUTING.md
-%doc README.md RELEASE.md documentation
-%{_bindir}/*
-
-%gopkgfiles
-
-%changelog
-* Wed May 15 03:08:50 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 2.9.2-1
-- Release 2.9.2
-
-* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-4
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Tue Oct 10 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.8.0-1
-- Update to 1.8.0
- resolves: #1495180
-
-* Tue Aug 22 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 0.15.0-8
-- Polish the spec file
-
-* Wed Aug 02 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-7
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-6
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-5
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Thu Jul 21 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-4
--
https://fedoraproject.org/wiki/Changes/golang1.7
-
-* Mon Feb 22 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-3
--
https://fedoraproject.org/wiki/Changes/golang1.6
-
-* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Thu Jul 23 2015 jchaloup <jchaloup(a)redhat.com> - 0.15.0-1
-- Update to 0.15.0
- resolves: #1246058
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.13.3-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Wed May 13 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-2
-- Add debug info
- related: #1190426
-
-* Tue May 12 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-1
-- Update to 0.13.3
- related: #1190426
-
-* Sat May 09 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.2-1
-- Update to 0.13.2
- related: #1190426
-
-* Sat Feb 07 2015 jchaloup <jchaloup(a)redhat.com> - 0-0.1.git4e6a807
-- First package for Fedora
- resolves: #1190426
diff --git a/sources b/sources
deleted file mode 100644
index 1b3d5bd..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-SHA512 (prometheus-2.9.2.tar.gz) =
4cce1827580e49b1659ad492de946a81694c1dab90e079f3f0e56c1991254cf4ecac7f052aac75bf58a0b95d3cf4daa8c15b3e8305a3c089570da40c44a8ccc0
commit 96e5c4ef537fea30b2e7bc50ecb8997b6cf9d2fd
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 17 18:33:10 2019 +0200
Release 2.9.2
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 29b3933..752c57f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/prometheus-3569eef.tar.gz
+/prometheus-2.9.2.tar.gz
diff --git a/golang-github-prometheus-prometheus.spec
b/golang-github-prometheus-prometheus.spec
deleted file mode 100644
index 56e7a26..0000000
--- a/golang-github-prometheus-prometheus.spec
+++ /dev/null
@@ -1,528 +0,0 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply
a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 1
-# Build with debug info rpm
-%global with_debug 1
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%if ! 0%{?gobuild:1}
-%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo prometheus
-#
https://github.com/prometheus/prometheus
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 3569eef8b1bc062bb5df43181b938277818f365b
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.8.0
-Release: 4%{?dist}
-Summary: The Prometheus monitoring system and time series database
-# Detected licences
-# - *No copyright* Apache (v2.0) GENERATED FILE at 'LICENSE'
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if ! 0%{?with_bundled}
-# cmd/prometheus/main.go
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires:
golang(github.com/prometheus/common/log)
-BuildRequires:
golang(github.com/prometheus/common/version)
-BuildRequires:
golang(golang.org/x/net/context)
-
-# cmd/promtool/main.go
-BuildRequires:
golang(github.com/prometheus/common/version)
-
-# cmd/prometheus/config.go
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires:
golang(github.com/prometheus/common/log)
-BuildRequires:
golang(github.com/prometheus/common/model)
-
-# documentation/examples/remote_storage/remote_storage_adapter/main.go
-BuildRequires:
golang(github.com/gogo/protobuf/proto)
-BuildRequires:
golang(github.com/golang/snappy)
-BuildRequires:
golang(github.com/influxdata/influxdb/client/v2)
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires:
golang(github.com/prometheus/common/log)
-BuildRequires:
golang(github.com/prometheus/common/model)
-
-# storage/local/storagetool/main.go
-BuildRequires:
golang(github.com/prometheus/common/version)
-
-# documentation/examples/remote_storage/example_write_adapter/server.go
-BuildRequires:
golang(github.com/golang/protobuf/proto)
-BuildRequires:
golang(github.com/golang/snappy)
-BuildRequires:
golang(github.com/prometheus/common/model)
-
-# Remaining dependencies not included in main packages
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/util)
-BuildRequires:
golang(golang.org/x/net/context/ctxhttp)
-BuildRequires: golang(gopkg.in/yaml.v2)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
-BuildRequires:
golang(google.golang.org/api/compute/v1)
-BuildRequires:
golang(github.com/opentracing/opentracing-go)
-BuildRequires:
golang(github.com/prometheus/client_model/go)
-BuildRequires:
golang(golang.org/x/oauth2/google)
-BuildRequires: golang(k8s.io/client-go/kubernetes)
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/arm/compute)
-BuildRequires: golang(k8s.io/client-go/tools/cache)
-BuildRequires:
golang(github.com/opentracing-contrib/go-stdlib/nethttp)
-BuildRequires: golang(k8s.io/client-go/pkg/apis/extensions/v1beta1)
-BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime)
-BuildRequires: golang(k8s.io/client-go/pkg/api)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws)
-BuildRequires:
golang(github.com/Azure/go-autorest/autorest/azure)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/servers)
-BuildRequires:
golang(github.com/prometheus/common/route)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/pagination)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/service/ec2)
-BuildRequires:
golang(github.com/samuel/go-zookeeper/zk)
-BuildRequires:
golang(github.com/prometheus/common/expfmt)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/filter)
-BuildRequires: golang(k8s.io/client-go/rest)
-BuildRequires:
golang(golang.org/x/oauth2)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/opt)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/iterator)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/session)
-BuildRequires:
golang(github.com/hashicorp/consul/api)
-BuildRequires:
golang(github.com/gophercloud/gophercloud)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(golang.org/x/time/rate)
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/arm/network)
-BuildRequires:
golang(golang.org/x/net/netutil)
-BuildRequires: golang(k8s.io/client-go/pkg/api/v1)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(github.com/miekg/dns)
-BuildRequires: golang(gopkg.in/fsnotify.v1)
-%endif
-
-%description
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/arm/compute)
-BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/arm/network)
-BuildRequires:
golang(github.com/Azure/go-autorest/autorest/azure)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/session)
-BuildRequires:
golang(github.com/aws/aws-sdk-go/service/ec2)
-BuildRequires:
golang(github.com/gogo/protobuf/proto)
-BuildRequires:
golang(github.com/golang/protobuf/proto)
-BuildRequires:
golang(github.com/golang/snappy)
-BuildRequires:
golang(github.com/gophercloud/gophercloud)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/servers)
-BuildRequires:
golang(github.com/gophercloud/gophercloud/pagination)
-BuildRequires:
golang(github.com/hashicorp/consul/api)
-BuildRequires:
golang(github.com/influxdata/influxdb/client/v2)
-BuildRequires:
golang(github.com/miekg/dns)
-BuildRequires:
golang(github.com/opentracing-contrib/go-stdlib/nethttp)
-BuildRequires:
golang(github.com/opentracing/opentracing-go)
-BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires:
golang(github.com/prometheus/client_model/go)
-BuildRequires:
golang(github.com/prometheus/common/expfmt)
-BuildRequires:
golang(github.com/prometheus/common/log)
-BuildRequires:
golang(github.com/prometheus/common/model)
-BuildRequires:
golang(github.com/prometheus/common/route)
-BuildRequires:
golang(github.com/prometheus/common/version)
-BuildRequires:
golang(github.com/samuel/go-zookeeper/zk)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/filter)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/iterator)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/opt)
-BuildRequires:
golang(github.com/syndtr/goleveldb/leveldb/util)
-BuildRequires:
golang(golang.org/x/net/context)
-BuildRequires:
golang(golang.org/x/net/context/ctxhttp)
-BuildRequires:
golang(golang.org/x/net/netutil)
-BuildRequires:
golang(golang.org/x/oauth2)
-BuildRequires:
golang(golang.org/x/oauth2/google)
-BuildRequires:
golang(golang.org/x/time/rate)
-BuildRequires:
golang(google.golang.org/api/compute/v1)
-BuildRequires: golang(gopkg.in/fsnotify.v1)
-BuildRequires: golang(gopkg.in/yaml.v2)
-BuildRequires: golang(k8s.io/apimachinery/pkg/util/runtime)
-BuildRequires: golang(k8s.io/client-go/kubernetes)
-BuildRequires: golang(k8s.io/client-go/pkg/api)
-BuildRequires: golang(k8s.io/client-go/pkg/api/v1)
-BuildRequires: golang(k8s.io/client-go/pkg/apis/extensions/v1beta1)
-BuildRequires: golang(k8s.io/client-go/rest)
-BuildRequires: golang(k8s.io/client-go/tools/cache)
-%endif
-
-Requires:
golang(github.com/Azure/azure-sdk-for-go/arm/compute)
-Requires:
golang(github.com/Azure/azure-sdk-for-go/arm/network)
-Requires:
golang(github.com/Azure/go-autorest/autorest/azure)
-Requires:
golang(github.com/aws/aws-sdk-go/aws)
-Requires:
golang(github.com/aws/aws-sdk-go/aws/credentials)
-Requires:
golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)
-Requires:
golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
-Requires:
golang(github.com/aws/aws-sdk-go/aws/session)
-Requires:
golang(github.com/aws/aws-sdk-go/service/ec2)
-Requires:
golang(github.com/gogo/protobuf/proto)
-Requires:
golang(github.com/golang/protobuf/proto)
-Requires:
golang(github.com/golang/snappy)
-Requires:
golang(github.com/gophercloud/gophercloud)
-Requires:
golang(github.com/gophercloud/gophercloud/openstack)
-Requires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-Requires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
-Requires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/servers)
-Requires:
golang(github.com/gophercloud/gophercloud/pagination)
-Requires:
golang(github.com/hashicorp/consul/api)
-Requires:
golang(github.com/influxdata/influxdb/client/v2)
-Requires:
golang(github.com/miekg/dns)
-Requires:
golang(github.com/opentracing-contrib/go-stdlib/nethttp)
-Requires:
golang(github.com/opentracing/opentracing-go)
-Requires:
golang(github.com/prometheus/client_golang/prometheus)
-Requires:
golang(github.com/prometheus/client_model/go)
-Requires:
golang(github.com/prometheus/common/expfmt)
-Requires:
golang(github.com/prometheus/common/log)
-Requires:
golang(github.com/prometheus/common/model)
-Requires:
golang(github.com/prometheus/common/route)
-Requires:
golang(github.com/prometheus/common/version)
-Requires:
golang(github.com/samuel/go-zookeeper/zk)
-Requires:
golang(github.com/syndtr/goleveldb/leveldb)
-Requires:
golang(github.com/syndtr/goleveldb/leveldb/filter)
-Requires:
golang(github.com/syndtr/goleveldb/leveldb/iterator)
-Requires:
golang(github.com/syndtr/goleveldb/leveldb/opt)
-Requires:
golang(github.com/syndtr/goleveldb/leveldb/util)
-Requires:
golang(golang.org/x/net/context)
-Requires:
golang(golang.org/x/net/context/ctxhttp)
-Requires:
golang(golang.org/x/net/netutil)
-Requires:
golang(golang.org/x/oauth2)
-Requires:
golang(golang.org/x/oauth2/google)
-Requires:
golang(golang.org/x/time/rate)
-Requires:
golang(google.golang.org/api/compute/v1)
-Requires: golang(gopkg.in/fsnotify.v1)
-Requires: golang(gopkg.in/yaml.v2)
-Requires: golang(k8s.io/apimachinery/pkg/util/runtime)
-Requires: golang(k8s.io/client-go/kubernetes)
-Requires: golang(k8s.io/client-go/pkg/api)
-Requires: golang(k8s.io/client-go/pkg/api/v1)
-Requires: golang(k8s.io/client-go/pkg/apis/extensions/v1beta1)
-Requires: golang(k8s.io/client-go/rest)
-Requires: golang(k8s.io/client-go/tools/cache)
-
-Provides: golang(%{import_path}/config) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/azure) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/consul) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/dns) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/ec2) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/file) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/gce) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/kubernetes) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/marathon) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/openstack) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/triton) = %{version}-%{release}
-Provides: golang(%{import_path}/discovery/zookeeper) = %{version}-%{release}
-Provides: golang(%{import_path}/notifier) = %{version}-%{release}
-Provides: golang(%{import_path}/promql) = %{version}-%{release}
-Provides: golang(%{import_path}/relabel) = %{version}-%{release}
-Provides: golang(%{import_path}/retrieval) = %{version}-%{release}
-Provides: golang(%{import_path}/rules) = %{version}-%{release}
-Provides: golang(%{import_path}/storage) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/fanin) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/local) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/local/chunk) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/local/codable) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/local/index) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/metric) = %{version}-%{release}
-Provides: golang(%{import_path}/storage/remote) = %{version}-%{release}
-Provides: golang(%{import_path}/template) = %{version}-%{release}
-Provides: golang(%{import_path}/util/cli) = %{version}-%{release}
-Provides: golang(%{import_path}/util/flock) = %{version}-%{release}
-Provides: golang(%{import_path}/util/httputil) = %{version}-%{release}
-Provides: golang(%{import_path}/util/promlint) = %{version}-%{release}
-Provides: golang(%{import_path}/util/stats) = %{version}-%{release}
-Provides: golang(%{import_path}/util/strutil) = %{version}-%{release}
-Provides: golang(%{import_path}/util/testutil) = %{version}-%{release}
-Provides: golang(%{import_path}/util/treecache) = %{version}-%{release}
-Provides: golang(%{import_path}/web) = %{version}-%{release}
-Provides: golang(%{import_path}/web/api/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/web/ui) = %{version}-%{release}
-
-%description devel
-%{summary}
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(github.com/stretchr/testify/assert)
-BuildRequires:
golang(github.com/stretchr/testify/require)
-BuildRequires:
golang(github.com/stretchr/testify/suite)
-BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1)
-%endif
-
-Requires:
golang(github.com/stretchr/testify/assert)
-Requires:
golang(github.com/stretchr/testify/require)
-Requires:
golang(github.com/stretchr/testify/suite)
-Requires: golang(k8s.io/apimachinery/pkg/apis/meta/v1)
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
-
-%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
-mkdir -p src/%{provider}.%{provider_tld}/%{project}
-ln -s ../../../ src/%{import_path}
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-# No dependency directories so far
-export GOPATH=$(pwd):%{gopath}
-%endif
-
-%gobuild -o bin/cmd/prometheus %{import_path}/cmd/prometheus
-%gobuild -o bin/cmd/promtool %{import_path}/cmd/promtool
-%gobuild -o bin/storage/local/storagetool %{import_path}/storage/local/storagetool
-
-%install
-install -d -p %{buildroot}%{_bindir}
-install -p -m 0755 bin/cmd/prometheus %{buildroot}%{_bindir}
-install -p -m 0755 bin/cmd/promtool %{buildroot}%{_bindir}
-install -p -m 0755 bin/storage/local/storagetool %{buildroot}%{_bindir}
-
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname
"*_test.go" | grep -v "vendor") ; do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test-devel.file-list
-for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-for dir in retrieval/testdata discovery/file/fixtures storage/local/fixtures
util/httputil; do
- mkdir -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $dir)
- cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $dir)/.
- echo "%%{gopath}/src/%%{import_path}/$dir" >> unit-test-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
-
-%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# Since we aren't packaging up the vendor directory we need to link
-# back to it somehow. Hack it up so that we can add the vendor
-# directory from BUILD dir as a gopath to be searched when executing
-# tests from the BUILDROOT dir.
-ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
-
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}/cmd/prometheus
-#%gotest %{import_path}/config
-%gotest %{import_path}/discovery
-%gotest %{import_path}/discovery/consul
-#%gotest %{import_path}/discovery/file
-%gotest %{import_path}/discovery/kubernetes
-#%gotest %{import_path}/discovery/marathon
-%gotest %{import_path}/discovery/openstack
-%gotest %{import_path}/discovery/triton
-%gotest
%{import_path}/documentation/examples/remote_storage/remote_storage_adapter/graphite
-%gotest
%{import_path}/documentation/examples/remote_storage/remote_storage_adapter/influxdb
-%gotest
%{import_path}/documentation/examples/remote_storage/remote_storage_adapter/opentsdb
-%gotest %{import_path}/notifier
-%gotest %{import_path}/promql
-%gotest %{import_path}/relabel
-%gotest %{import_path}/retrieval
-%gotest %{import_path}/rules
-%gotest %{import_path}/storage/fanin
-#%gotest %{import_path}/storage/local
-%gotest %{import_path}/storage/local/chunk
-%gotest %{import_path}/storage/local/codable
-%gotest %{import_path}/storage/metric
-%gotest %{import_path}/storage/remote
-%gotest %{import_path}/template
-%gotest %{import_path}/util/flock
-%gotest %{import_path}/util/httputil
-%gotest %{import_path}/util/promlint
-%gotest %{import_path}/util/strutil
-#%gotest %{import_path}/web
-%gotest %{import_path}/web/api/v1
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%files
-%license LICENSE
-%doc README.md CONTRIBUTING.md code-of-conduct.md CHANGELOG.md MAINTAINERS.md
-%{_bindir}/prometheus
-%{_bindir}/promtool
-%{_bindir}/storagetool
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license LICENSE
-%doc README.md CONTRIBUTING.md code-of-conduct.md CHANGELOG.md MAINTAINERS.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md CONTRIBUTING.md code-of-conduct.md CHANGELOG.md MAINTAINERS.md
-%endif
-
-%changelog
-* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-4
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Tue Oct 10 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.8.0-1
-- Update to 1.8.0
- resolves: #1495180
-
-* Tue Aug 22 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 0.15.0-8
-- Polish the spec file
-
-* Wed Aug 02 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-7
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-6
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-5
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Thu Jul 21 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-4
--
https://fedoraproject.org/wiki/Changes/golang1.7
-
-* Mon Feb 22 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-3
--
https://fedoraproject.org/wiki/Changes/golang1.6
-
-* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Thu Jul 23 2015 jchaloup <jchaloup(a)redhat.com> - 0.15.0-1
-- Update to 0.15.0
- resolves: #1246058
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.13.3-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Wed May 13 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-2
-- Add debug info
- related: #1190426
-
-* Tue May 12 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-1
-- Update to 0.13.3
- related: #1190426
-
-* Sat May 09 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.2-1
-- Update to 0.13.2
- related: #1190426
-
-* Sat Feb 07 2015 jchaloup <jchaloup(a)redhat.com> - 0-0.1.git4e6a807
-- First package for Fedora
- resolves: #1190426
diff --git a/golang-github-prometheus.spec b/golang-github-prometheus.spec
new file mode 100644
index 0000000..d835951
--- /dev/null
+++ b/golang-github-prometheus.spec
@@ -0,0 +1,212 @@
+# Generated by go2rpm
+%bcond_without check
+
+#
https://github.com/prometheus/prometheus
+%global goipath
github.com/prometheus/prometheus
+Version: 2.9.2
+
+%gometa
+
+%global common_description %{expand:
+The Prometheus monitoring system and time series database.}
+
+%global golicenses LICENSE NOTICE
+%global godocs docs CHANGELOG.md MAINTAINERS.md code-of-conduct.md\\\
+ CONTRIBUTING.md README.md RELEASE.md\\\
+ documentation
+
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Prometheus monitoring system and time series database
+
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: %{gourl}
+Source0: %{gosource}
+
+BuildRequires:
golang(github.com/alecthomas/units)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/aws)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/aws/session)
+BuildRequires:
golang(github.com/aws/aws-sdk-go/service/ec2)
+BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01...
+BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-10-01...
+BuildRequires:
golang(github.com/Azure/go-autorest/autorest)
+BuildRequires:
golang(github.com/Azure/go-autorest/autorest/adal)
+BuildRequires:
golang(github.com/Azure/go-autorest/autorest/azure)
+BuildRequires:
golang(github.com/cespare/xxhash)
+BuildRequires:
golang(github.com/cockroachdb/cockroach/pkg/util/protoutil)
+BuildRequires:
golang(github.com/go-kit/kit/log)
+BuildRequires:
golang(github.com/go-kit/kit/log/level)
+BuildRequires:
golang(github.com/go-logfmt/logfmt)
+BuildRequires:
golang(github.com/gogo/protobuf/gogoproto)
+BuildRequires:
golang(github.com/gogo/protobuf/proto)
+BuildRequires:
golang(github.com/gogo/protobuf/types)
+BuildRequires:
golang(github.com/golang/snappy)
+BuildRequires:
golang(github.com/google/pprof/profile)
+BuildRequires:
golang(github.com/gophercloud/gophercloud)
+BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack)
+BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
+BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/extensions...
+BuildRequires:
golang(github.com/gophercloud/gophercloud/openstack/compute/v2/servers)
+BuildRequires:
golang(github.com/gophercloud/gophercloud/pagination)
+BuildRequires:
golang(github.com/grpc-ecosystem/grpc-gateway/runtime)
+BuildRequires:
golang(github.com/grpc-ecosystem/grpc-gateway/utilities)
+BuildRequires:
golang(github.com/hashicorp/consul/api)
+# Obsolete, in documentation examples only
+# BuildRequires:
golang(github.com/influxdata/influxdb/client/v2)
+BuildRequires:
golang(github.com/json-iterator/go)
+BuildRequires:
golang(github.com/miekg/dns)
+BuildRequires:
golang(github.com/mwitkow/go-conntrack)
+BuildRequires:
golang(github.com/oklog/oklog/pkg/group)
+BuildRequires:
golang(github.com/opentracing-contrib/go-stdlib/nethttp)
+BuildRequires:
golang(github.com/opentracing/opentracing-go)
+BuildRequires:
golang(github.com/pkg/errors)
+BuildRequires:
golang(github.com/prometheus/client_golang/api)
+BuildRequires:
golang(github.com/prometheus/client_golang/api/prometheus/v1)
+BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
+BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/promauto)
+BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/promhttp)
+BuildRequires:
golang(github.com/prometheus/client_model/go)
+BuildRequires:
golang(github.com/prometheus/common/config)
+BuildRequires:
golang(github.com/prometheus/common/expfmt)
+BuildRequires:
golang(github.com/prometheus/common/model)
+BuildRequires:
golang(github.com/prometheus/common/promlog)
+BuildRequires:
golang(github.com/prometheus/common/promlog/flag)
+BuildRequires:
golang(github.com/prometheus/common/route)
+BuildRequires:
golang(github.com/prometheus/common/version)
+BuildRequires:
golang(github.com/prometheus/tsdb)
+BuildRequires:
golang(github.com/prometheus/tsdb/fileutil)
+BuildRequires:
golang(github.com/prometheus/tsdb/labels)
+BuildRequires:
golang(github.com/prometheus/tsdb/wal)
+BuildRequires:
golang(github.com/samuel/go-zookeeper/zk)
+BuildRequires:
golang(github.com/shurcooL/vfsgen)
+BuildRequires:
golang(github.com/simonpasquier/klog-gokit)
+BuildRequires:
golang(github.com/soheilhy/cmux)
+BuildRequires:
golang(golang.org/x/net/netutil)
+BuildRequires:
golang(golang.org/x/oauth2/google)
+BuildRequires:
golang(golang.org/x/time/rate)
+BuildRequires:
golang(google.golang.org/api/compute/v1)
+BuildRequires:
golang(google.golang.org/api/option)
+BuildRequires:
golang(google.golang.org/genproto/googleapis/api/annotations)
+BuildRequires:
golang(google.golang.org/grpc)
+BuildRequires:
golang(google.golang.org/grpc/codes)
+BuildRequires:
golang(google.golang.org/grpc/grpclog)
+BuildRequires:
golang(google.golang.org/grpc/status)
+BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2)
+BuildRequires: golang(gopkg.in/fsnotify/fsnotify.v1)
+BuildRequires: golang(gopkg.in/yaml.v2)
+BuildRequires: golang(k8s.io/api/core/v1)
+BuildRequires: golang(k8s.io/api/extensions/v1beta1)
+BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1)
+BuildRequires: golang(k8s.io/apimachinery/pkg/runtime)
+BuildRequires: golang(k8s.io/apimachinery/pkg/watch)
+BuildRequires: golang(k8s.io/client-go/kubernetes)
+BuildRequires: golang(k8s.io/client-go/rest)
+BuildRequires: golang(k8s.io/client-go/tools/cache)
+BuildRequires: golang(k8s.io/client-go/tools/metrics)
+BuildRequires: golang(k8s.io/client-go/util/workqueue)
+
+%if %{with check}
+# Tests
+BuildRequires:
golang(github.com/prometheus/client_golang/prometheus/testutil)
+BuildRequires:
golang(github.com/stretchr/testify/assert)
+BuildRequires:
golang(github.com/stretchr/testify/require)
+BuildRequires: golang(k8s.io/apimachinery/pkg/types)
+BuildRequires: golang(k8s.io/client-go/kubernetes/fake)
+%endif
+
+%description
+%{common_description}
+
+%gopkg
+
+%prep
+%goprep
+find . -name "*.go" -exec sed -i "s|\"k8s.io/klog\"|klog
\"github.com/simonpasquier/klog-gokit\"|" "{}" +;
+
+%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 NOTICE
+%doc docs CHANGELOG.md MAINTAINERS.md code-of-conduct.md CONTRIBUTING.md
+%doc README.md RELEASE.md documentation
+%{_bindir}/*
+
+%gopkgfiles
+
+%changelog
+* Wed May 15 03:08:50 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 2.9.2-1
+- Release 2.9.2
+
+* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.8.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Tue Oct 10 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.8.0-1
+- Update to 1.8.0
+ resolves: #1495180
+
+* Tue Aug 22 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 0.15.0-8
+- Polish the spec file
+
+* Wed Aug 02 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-7
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Thu Jul 21 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-4
+-
https://fedoraproject.org/wiki/Changes/golang1.7
+
+* Mon Feb 22 2016 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.15.0-3
+-
https://fedoraproject.org/wiki/Changes/golang1.6
+
+* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.15.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Thu Jul 23 2015 jchaloup <jchaloup(a)redhat.com> - 0.15.0-1
+- Update to 0.15.0
+ resolves: #1246058
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.13.3-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Wed May 13 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-2
+- Add debug info
+ related: #1190426
+
+* Tue May 12 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.3-1
+- Update to 0.13.3
+ related: #1190426
+
+* Sat May 09 2015 jchaloup <jchaloup(a)redhat.com> - 0.13.2-1
+- Update to 0.13.2
+ related: #1190426
+
+* Sat Feb 07 2015 jchaloup <jchaloup(a)redhat.com> - 0-0.1.git4e6a807
+- First package for Fedora
+ resolves: #1190426
diff --git a/hack-makefile.patch b/hack-makefile.patch
deleted file mode 100644
index 574819b..0000000
--- a/hack-makefile.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From 03de766b2698c601fcea44d50f0690d5d1953839 Mon Sep 17 00:00:00 2001
-From: Jan Chaloupka <jchaloup(a)redhat.com>
-Date: Thu, 23 Jul 2015 14:17:29 +0200
-Subject: [PATCH] commit
-
----
- Makefile.INCLUDE | 30 ++++++++++++++----------------
- 1 file changed, 14 insertions(+), 16 deletions(-)
-
-diff --git a/Makefile.INCLUDE b/Makefile.INCLUDE
-index 3a3f795..578c14b 100644
---- a/Makefile.INCLUDE
-+++ b/Makefile.INCLUDE
-@@ -17,7 +17,6 @@
-
- current_dir := $(patsubst %/,%, $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
-
--VERSION=$(shell cat $(current_dir)/version/VERSION)
-
- OS=$(shell uname)
- ARCH=$(shell uname -m)
-@@ -30,7 +29,6 @@ MAKEFILE_DIR ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
-
- BUILD_PATH = $(MAKEFILE_DIR)/.build
-
--GO_VERSION := 1.4.2
- GOOS = $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(OS))))
-
- ifeq ($(GOOS),darwin)
-@@ -45,13 +43,13 @@ unexport GOBIN
- GOARCH = $(subst x86_64,amd64,$(patsubst i%86,386,$(ARCH)))
- GOPKG ?= go$(GO_VERSION).$(GOOS)-$(GOARCH)$(RELEASE_SUFFIX).tar.gz
- GOURL ?=
https://golang.org/dl
--GOROOT = $(BUILD_PATH)/root/go
-+GOROOT = /usr/lib/golang
- GOPATH = $(BUILD_PATH)/root/gopath
--GOCC = $(GOROOT)/bin/go
-+GOCC = /usr/bin/go
- TMPDIR = /tmp
- GOENV = TMPDIR=$(TMPDIR) GOROOT=$(GOROOT) GOPATH=$(GOPATH)
- GO = $(GOENV) $(GOCC)
--GOFMT = $(GOROOT)/bin/gofmt
-+GOFMT = /usr/bin/gofmt
-
- UNAME := $(shell uname)
- REPO_PATH =
github.com/prometheus/prometheus
-@@ -63,17 +61,17 @@ export PATH := $(GOPATH)/bin:$(GOROOT)/bin:$(PATH)
-
- export GO_TEST_FLAGS ?= -short
-
--REV := $(shell git rev-parse --short HEAD 2> /dev/null || echo
'unknown')
--BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null || echo
'unknown')
--HOSTNAME := $(shell hostname -f)
--BUILD_DATE := $(shell date +%Y%m%d-%H:%M:%S)
--BUILDFLAGS := -ldflags \
-- " -X $(REPO_PATH)/version.Version $(VERSION)\
-- -X $(REPO_PATH)/version.Revision $(REV)\
-- -X $(REPO_PATH)/version.Branch $(BRANCH)\
-- -X $(REPO_PATH)/version.BuildUser $(USER)@$(HOSTNAME)\
-- -X $(REPO_PATH)/version.BuildDate $(BUILD_DATE)\
-- -X $(REPO_PATH)/version.GoVersion $(GO_VERSION)"
-+#REV := $(shell git rev-parse --short HEAD 2> /dev/null || echo
'unknown')
-+#BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null || echo
'unknown')
-+#HOSTNAME := $(shell hostname -f)
-+#BUILD_DATE := $(shell date +%Y%m%d-%H:%M:%S)
-+#BUILDFLAGS := -ldflags \
-+# " -X $(REPO_PATH)/version.Version $(VERSION)\
-+# -X $(REPO_PATH)/version.Revision $(REV)\
-+# -X $(REPO_PATH)/version.Branch $(BRANCH)\
-+# -X $(REPO_PATH)/version.BuildUser $(USER)@$(HOSTNAME)\
-+# -X $(REPO_PATH)/version.BuildDate $(BUILD_DATE)\
-+# -X $(REPO_PATH)/version.GoVersion $(GO_VERSION)"
- CURL := curl
-
- ARCHIVE := prometheus-$(VERSION).$(GOOS)-$(GOARCH).tar.gz
---
-1.9.3
-
diff --git a/sources b/sources
index b7d4397..1b3d5bd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (prometheus-3569eef.tar.gz) =
c7a3111ef91fbba6dbe14a7ebe707f541147799d3c34005a1a395340dd99ab383c52688d8e763b9d0b68911832cca87a9efae4635ca631392544ae1d2256c4c2
+SHA512 (prometheus-2.9.2.tar.gz) =
4cce1827580e49b1659ad492de946a81694c1dab90e079f3f0e56c1991254cf4ecac7f052aac75bf58a0b95d3cf4daa8c15b3e8305a3c089570da40c44a8ccc0