Blob Blame History Raw
# Generated by go2rpm 1.10.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/rs/zerolog
%global goipath         github.com/rs/zerolog
Version:                1.32.0

%gometa -L


%global common_description %{expand:
The Zerolog package provides a fast and simple logger dedicated to JSON output.

Zerolog's API is designed to provide both a great developer experience and
stunning performance. Its unique chaining API allows zerolog to write JSON (or
CBOR) log events by avoiding allocations and reflection.

Uber's zap library pioneered this approach. Zerolog is taking this concept to
the next level with a simpler to use API and even better performance.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           golang-github-rs-zerolog
Release:        %autorelease
Summary:        Zero allocation JSON logger

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

%description %{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
%ifarch %{arm}
# Test only runs on 64-bit arches
rm internal/cbor/types_64_test.go
%endif
# journald test requires journald running
%gocheck -d journald
%endif

%gopkgfiles

%changelog
%autochangelog