File golang-github-joe-elliott-cert_exporter.spec of Package golang-github-joe-elliott-cert_exporter

# spec file for package golang-github-joe-elliott-cert_exporter
# Copyright (c) 2020 SUSE LLC, Nuernberg, Germany.
# 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

%global repo    cert-exporter
%global goipath

Name:           golang-github-joe-elliott-cert_exporter
Version:        2.3.0
Release:        0
Summary:        A Prometheus certificate exporter
License:        Apache-2.0
Group:          System/Monitoring
Provides:       prometheus-cert_exporter = %{version}-%{release}
URL:            https://%{goipath}
Source0:        %{repo}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  golang-packaging
BuildRequires:  golang(API) >= 1.12

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets.

%setup -q -n %{repo}-%{version}
%setup -q -T -D -a 1 -n %{repo}-%{version}

%goprep %{goipath}
export CGO_ENABLED=0
%gobuild -mod vendor -a -installsuffix %{repo}


%license LICENSE

openSUSE Build Service is sponsored by