File golang-github-wrouesnel-postgres_exporter.spec of Package golang-github-wrouesnel-postgres_exporter
#
# spec file for package golang-github-wrouesnel-postgres_exporter
#
# 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-wrouesnel-postgres_exporter
Version: 0.1.2
Release: 0
License: Apache-2.0
Summary: Prometheus exporter for PostgreSQL
Url: https://prometheus.io/
Group: System/Management
Source: postgres_exporter-%{version}.tar.xz
BuildRequires: golang-packaging
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{go_provides}
%description
Prometheus exporter for PostgreSQL server metrics. Supported PostgreSQL versions: 9.1 and up.
%prep
%setup -q -n postgres_exporter-%{version}
%build
%goprep github.com/wrouesnel/postgres_exporter
%gobuild
%install
%goinstall
%gosrc
%gofilelist
%files -f file.lst
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/postgres_exporter
%changelog