# Generated by go2rpm 1 %bcond_without check # https://github.com/alecthomas/kong-hcl %global goipath github.com/alecthomas/kong-hcl Version: 1.0.1 %gometa %global common_description %{expand: A Kong configuration loader for HCL.} %global golicenses COPYING %global godocs README.md Name: %{goname} # Upstream reseted the version Epoch: 1 Release: 5%{?dist} Summary: Kong configuration loader for HCL License: MIT URL: %{gourl} Source0: %{gosource} # https://github.com/alecthomas/kong-hcl/issues/4 # https://github.com/alecthomas/kong-hcl/pull/5 Patch0: 0001-Don-t-use-Kong-group-for-paths-for-v2.patch BuildRequires: golang(github.com/alecthomas/kong) BuildRequires: golang(github.com/hashicorp/hcl) BuildRequires: golang(github.com/hashicorp/hcl/v2) BuildRequires: golang(github.com/hashicorp/hcl/v2/gohcl) BuildRequires: golang(github.com/hashicorp/hcl/v2/hclparse) BuildRequires: golang(github.com/hashicorp/hcl/v2/hclsyntax) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/zclconf/go-cty/cty) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %install %gopkginstall %if %{with check} %check for test in "TestHCL" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Thu Jul 21 2022 Fedora Release Engineering - 1:1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Robert-André Mauchin - 1:1.0.1-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 1:1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1:1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 30 16:35:19 CEST 2021 Robert-André Mauchin - 1.0.1-1 - Reset version to 1.0.1 - Fix FTBFS * Tue Jan 26 2021 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 18:04:44 CET 2020 Robert-André Mauchin - 2.0.0-1 - Update to 2.0.0 - Close: rhbz#1827313 * Tue Aug 11 01:29:59 CEST 2020 Robert-André Mauchin - 1.0.0-1 - Update to 1.0.0 * Mon Jul 27 2020 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Aug 04 16:51:23 CEST 2019 Robert-André Mauchin - 0.2.0-1 - Initial package