generated from demus/golang-rpm-template
Use last compatible commit
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
## (rpmautospec version 0.6.5)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 31;
|
||||
release_number = 32;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
@@ -17,7 +17,7 @@
|
||||
# https://github.com/kubernetes/kube-openapi
|
||||
%global goipath k8s.io/kube-openapi
|
||||
%global forgeurl https://github.com/kubernetes/kube-openapi
|
||||
%global commit 32ad38e42d3faf1ce94eb29f4ea6d763339b258e
|
||||
%global commit 2546d827e515dca59571ec245eef2302e11018e1
|
||||
|
||||
%gometa
|
||||
|
||||
@@ -43,7 +43,7 @@ BuildRequires: golang(github.com/emicklei/go-restful)
|
||||
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/googleapis/gnostic/openapiv2)
|
||||
BuildRequires: golang(github.com/google/gnostic/openapiv2)
|
||||
BuildRequires: golang(github.com/json-iterator/go)
|
||||
BuildRequires: golang(github.com/mitchellh/mapstructure)
|
||||
BuildRequires: golang(github.com/NYTimes/gziphandler)
|
||||
@@ -82,7 +82,6 @@ BuildRequires: golang(sigs.k8s.io/json)
|
||||
%prep
|
||||
%goprep
|
||||
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
|
||||
@@ -96,7 +95,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck -d pkg/aggregator -d pkg/handler
|
||||
%gocheck -d pkg/aggregator -d pkg/handler -d pkg/internal/third_party/go-json-experiment/json
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
||||
Reference in New Issue
Block a user