# Generated by go2rpm %bcond_without check # https://github.com/hashicorp/go-hclog %global goipath github.com/hashicorp/go-hclog Version: 0.9.0 %gometa %global common_description %{expand: Go-hclog is a package for Go that provides a simple key/value logging interface for use in development and production environments.} %global golicenses LICENSE %global godocs README.md README-hclogvet Name: %{goname} Release: 1%{?dist} Summary: Common logging package for hashicorp tools License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep mv hclogvet/README README-hclogvet %build export GO111MODULE=off for cmd in hclogvet; 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 README.md README-hclogvet %{_bindir}/* %gopkgfiles %changelog * Tue Apr 30 17:29:13 CEST 2019 Robert-André Mauchin - 0.9.0-1 - Release 0.9.0 * Fri Feb 01 2019 Fedora Release Engineering - 0-0.4.20171005gitca137eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0-0.3.20171005gitca137eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0-0.2.20171005gitca137eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Oct 07 2017 Ed Marshall - 0-0.1.20171005gitca137eb - First package for Fedora