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

# https://github.com/op/go-logging
%global goipath         gopkg.in/op/go-logging.v1
%global forgeurl        https://github.com/op/go-logging
Version:                1

%gometa

%global common_description %{expand:
Package logging implements a logging infrastructure for Go. Its output
format is customizable and supports different logging backends like
syslog, file and memory. Multiple backends can be utilized with
different log levels per backend and logger.}

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

Name:           %{goname}
Release:        2%{?dist}
Summary:        Golang logging library

# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source:         %{gosource}

# https://github.com/op/go-logging/pull/133
Patch:          0001-Fix-function-name-query-for-callpath.patch

%description
%{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Tue Jul 05 2022 Julien Rische <jrische@redhat.com> - 1-1
- Initial package
- Resolves: rhbz#2074463