## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm # Tests are randomly failing. %bcond_without check # https://github.com/kubernetes/klog %global goipath k8s.io/klog %global forgeurl https://github.com/kubernetes/klog Version: 2.10.0 %gometa %global goaltipaths k8s.io/klog/v2 %global common_description %{expand: This is an efficient pure Go implementation of leveled logs in the manner of the open source C++ package} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md RELEASE.md code-\\\ of-conduct.md Name: %{goname} Release: %autorelease Summary: Leveled execution logs for Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Switching to logr tag v1.0.0 Patch0: 4171f3c1be1b60901704dfbd140b9f03161427b1.patch Patch1: https://github.com/kubernetes/klog/commit/8ee3d652c96bc3d9ce1075b2350e23fe2a910c76.patch # fix file-based filtering symbolization Patch2: https://patch-diff.githubusercontent.com/raw/kubernetes/klog/pull/204.patch BuildRequires: golang(github.com/go-logr/logr) BuildRequires: golang(github.com/golang/glog) BuildRequires: golang(golang.org/x/exp/utf8string) BuildRequires: golang(golang.org/x/tools/go/analysis) BuildRequires: golang(golang.org/x/tools/go/analysis/singlechecker) %if %{with check} # Tests BuildRequires: golang(golang.org/x/tools/go/analysis/analysistest) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %patch1 -p1 %patch2 -p1 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Wed Aug 10 2022 Maxwell G 2.10.0-6 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering 2.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 2.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 20 2021 Robert-André Mauchin 2.10.0-3 - Add upstream patch to export ClearLogger * Fri Aug 13 2021 Robert-André Mauchin 2.10.0-2 - Add patch to use logr v1.0.0 * Fri Aug 13 2021 Robert-André Mauchin 2.10.0-1 - Update to 2.10.0 Close: rhbz#1921437 * Thu Jul 22 2021 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 03 20:41:05 CET 2020 Robert-André Mauchin - 2.4.0-1 - Update to 2.4.0 * Mon Jul 27 2020 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 15:18:51 CEST 2020 Robert-André Mauchin - 2.3.0-1 - Update to 2.3.0 * Mon Apr 13 22:47:17 CEST 2020 Robert-André Mauchin - 2.0.0-1 - Update to 2.0.0 * Wed Jan 29 2020 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 20:26:14 CEST 2019 Robert-André Mauchin - 0.3.0-1 - Initial package