File golang-github-prometheus-prometheus.spec of Package golang-github-prometheus-prometheus

#
# spec file for package golang-github-prometheus-prometheus
#
# Copyright (c) 2017 Silvio Moioli <moio@suse.com>
#
# 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 http://bugs.opensuse.org/
#

%{go_nostrip}

Name:           golang-github-prometheus-prometheus
Version:        1.5.2
Release:        0
License:        Apache-2.0
Summary:        The Prometheus monitoring system and time series database
Url:            https://prometheus.io/
Group:          System/Management
Source:         prometheus-%{version}.tar.xz
Patch:          0001-Do-not-force-the-pure-Go-name-resolver.patch
BuildRequires:  golang-github-prometheus-promu
BuildRequires:  golang-packaging
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{go_provides}

%description
Prometheus's main features are:
 - a multi-dimensional data model (time series identified by metric name and key/value pairs)
 - a flexible query language to leverage this dimensionality
 - no reliance on distributed storage; single server nodes are autonomous
 - time series collection happens via a pull model over HTTP
 - pushing time series is supported via an intermediary gateway
 - targets are discovered via service discovery or static configuration
 - multiple modes of graphing and dashboarding support

%prep
%setup -q -n prometheus-%{version}
%patch -p 1

%build
%goprep github.com/prometheus/prometheus
GOPATH=%{_builddir}/go promu build

%install
%goinstall
install -D -m0755 %{_builddir}/prometheus-%{version}/prometheus %{buildroot}/%{_bindir}/prometheus
install -D -m0755 %{_builddir}/prometheus-%{version}/prometheus %{buildroot}/%{_bindir}/promtool
%gosrc

%gofilelist

%files -f file.lst
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/prometheus
%{_bindir}/promtool

%changelog
openSUSE Build Service is sponsored by