# Generated by go2rpm 1.9.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/projectdiscovery/gologger
%global goipath         github.com/projectdiscovery/gologger
Version:                1.1.8

%gometa -f


%global common_description %{expand:
A simple layer for leveled logging in go.}

%global golicenses      LICENSE.md
%global godocs          README.md

Name:           %{goname}
Release:        %autorelease
Summary:        A simple layer for leveled logging in go

License:        MIT
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

%gopkg

%prep
%goprep
# https://github.com/projectdiscovery/gologger/pull/34
sed -i "s|gopkg.in/djherbis/times.v1|github.com/djherbis/times|" $(find . -name "*.go" -type f)

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog