## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 28; 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 1.9.0 %bcond_without check # https://github.com/kubernetes/kube-openapi %global goipath k8s.io/kube-openapi %global forgeurl https://github.com/kubernetes/kube-openapi %global commit b0c0aaee3cc0929a67dd20e7b6438021765e5c17 %global goignoreflags_examples %{nil} %gometa %global common_description %{expand: Kubernetes OpenAPI spec generation & serving.} %global golicenses LICENSE pkg/validation/errors/LICENSE\\\ pkg/validation/strfmt/LICENSE\\\ pkg/validation/spec/license.go\\\ pkg/validation/spec/LICENSE\\\ pkg/validation/spec/license_test.go\\\ pkg/validation/validate/LICENSE %global godocs SECURITY.md CONTRIBUTING.md code-of-conduct.md\\\ README.md\\\ pkg/openapiconv/testdata_generated_from_k8s/README.md\\\ pkg/generators/README.md\\\ boilerplate/boilerplate.go.txt Name: %{goname} Version: 0 Release: %autorelease -p Summary: Kubernetes OpenAPI spec generation & serving License: BSD-3-Clause AND Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: golang(github.com/asaskevich/govalidator) BuildRequires: golang(github.com/emicklei/go-restful/v3) BuildRequires: golang(github.com/getkin/kin-openapi/openapi3) BuildRequires: golang(github.com/go-openapi/jsonreference) BuildRequires: golang(github.com/go-openapi/swag) BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(github.com/google/gnostic/openapiv2) BuildRequires: golang(github.com/google/gnostic/openapiv3) BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) BuildRequires: golang(github.com/google/gofuzz) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/mitchellh/mapstructure) # BuildRequires: golang(github.com/munnerz/goautoneg) BuildRequires: golang(github.com/NYTimes/gziphandler) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(gopkg.in/yaml.v2) BuildRequires: golang(gopkg.in/yaml.v3) BuildRequires: golang(k8s.io/gengo/args) BuildRequires: golang(k8s.io/gengo/examples/set-gen/sets) BuildRequires: golang(k8s.io/gengo/generator) BuildRequires: golang(k8s.io/gengo/namer) BuildRequires: golang(k8s.io/gengo/types) BuildRequires: golang(k8s.io/klog/v2) BuildRequires: golang(sigs.k8s.io/structured-merge-diff/v4/schema) %if %{with check} # Tests BuildRequires: golang(github.com/onsi/ginkgo/v2) BuildRequires: golang(github.com/davecgh/go-spew/spew) BuildRequires: golang(github.com/google/gofuzz) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/json-iterator/go) BuildRequires: golang(github.com/onsi/ginkgo) BuildRequires: golang(github.com/onsi/ginkgo/config) BuildRequires: golang(github.com/onsi/ginkgo/types) BuildRequires: golang(github.com/onsi/gomega) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(k8s.io/gengo/parser) BuildRequires: golang(sigs.k8s.io/yaml) BuildRequires: golang(sigs.k8s.io/json) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 sed -i "s|github.com/munnerz/goautoneg|bitbucket.org/ww/goautoneg|" $(find . -name "*.go") # sed -i 's|github.com/googleapis/gnostic|github.com/googleapis/gnostic-0.4|' $(find . -iname "*.go" -type f) %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %ifarch x86_64 %gocheck %else %gocheck -d pkg/handler %endif %endif %files %license LICENSE pkg/validation/errors/LICENSE pkg/validation/strfmt/LICENSE %license pkg/validation/spec/license.go pkg/validation/spec/LICENSE %license pkg/validation/spec/license_test.go pkg/validation/validate/LICENSE %doc SECURITY.md CONTRIBUTING.md code-of-conduct.md README.md %doc pkg/openapiconv/testdata_generated_from_k8s/README.md %doc pkg/generators/README.md boilerplate/boilerplate.go.txt %{_bindir}/* %gopkgfiles %changelog ## START: Generated by rpmautospec * Wed Dec 06 2023 Sérgio M. Basto - 0-0.28 - Uncommitted changes * Tue May 02 2023 Sérgio M. Basto - 0-0.27 - update git HEAD * Tue May 02 2023 Sérgio M. Basto - 0-0.26 - kube-openapi branch release-1.22 include examples * Thu Jan 19 2023 Fedora Release Engineering - 0-0.25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 10 2022 Maxwell G - 0-0.24 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering - 0-0.23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0-0.22 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 0-0.21 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Apr 16 2022 Fabio Alessandro Locati - 0-0.20 - Rebuilt for CVE-2022-27191 * Thu Jan 20 2022 Fedora Release Engineering - 0-0.19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 13 2021 Robert-André Mauchin - 0-0.18 - Bump to commit 3c818078ee3de6569a8f02b6345ea3c4cc8b0998 * Thu Jul 22 2021 Fedora Release Engineering - 0-0.13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 21:52:15 CET 2021 Robert-André Mauchin - 0-0.11.20210113git45edf8a - Bump to commit 45edf8a2a574ed1c5ba4dc5c7621f60f32d9d26c * Sat Sep 19 20:13:36 CEST 2020 Robert-André Mauchin - 0-0.1.20200919git64514a1 - Bump to commit 64514a1d5d596b96e6f957e2be275ae14d6b0804 * Tue Aug 18 01:21:32 CEST 2020 Robert-André Mauchin - 0-0.9.20200614git656914f - Add patch to fix compatibility with latest gnostic * Mon Jul 27 2020 Fedora Release Engineering - 0-0.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 14 16:27:09 CEST 2020 Robert-André Mauchin - 0-0.7.20200614git656914f - Bump to commit 656914f816f9f6bcb37ec2b40cb7c16fd9084d4c * Wed Jan 29 2020 Fedora Release Engineering - 0-0.6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0-0.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jul 06 22:40:41 CEST 2019 Robert-André Mauchin - 0-0.4.20190706gitb3a7cee - Bump to commit b3a7cee44a305be0a69e1b9ac03018307287e1b0 * Sat Jul 06 21:51:58 CEST 2019 Robert-André Mauchin - 0-0.3.20190706gita5f05d4 - Bump to commit a5f05d44704602ce36b50a0201a439b616649972 * Sat Jul 06 19:08:03 CEST 2019 Robert-André Mauchin - 0-0.2.20190706gitdb7b694 - Bump to commit db7b694dc208eead64d38030265f702db593fcf2 * Thu May 09 20:58:52 CEST 2019 Robert-André Mauchin - 0-0.1.20190509git411b248 - Initial package ## END: Generated by rpmautospec