## START: Set by rpmautospec %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check %bcond_with bootstrap # https://github.com/uber-go/zap %global goipath go.uber.org/zap %global forgeurl https://github.com/uber-go/zap Version: 1.18.1 %gometa %global common_description %{expand: Package Zap provides fast, structured, leveled logging. For applications that log in the hot path, reflection-based serialization and string formatting are prohibitively expensive - they're CPU-intensive and make many small allocations. Put differently, using json.Marshal and fmt.Fprintf to log tons of interface{} makes your application slow. Zap takes a different approach. It includes a reflection-free, zero-allocation JSON encoder, and the base Logger strives to avoid serialization overhead and allocations wherever possible. By building the high-level SugaredLogger on that foundation, zap lets users choose when they need to count every allocation and when they'd prefer a more familiar, loosely typed API.} %global golicenses LICENSE.txt %global godocs CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md FAQ.md README.md Name: %{goname} Release: %autorelease Summary: Blazing fast, structured, leveled logging in Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(go.uber.org/atomic) BuildRequires: golang(go.uber.org/multierr) %if %{without bootstrap} %if %{with check} # Tests BuildRequires: golang(github.com/apex/log) BuildRequires: golang(github.com/apex/log/handlers/json) BuildRequires: golang(github.com/benbjohnson/clock) BuildRequires: golang(github.com/go-kit/kit/log) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/rs/zerolog) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(go.uber.org/goleak) BuildRequires: golang(gopkg.in/inconshreveable/log15.v2) %endif %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{without bootstrap} %if %{with check} %check # TestStacktraceFiltersVendorZap: need go modules for test in "TestStacktraceFiltersVendorZap" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %endif %gopkgfiles %changelog