Skip to content

Commit

Permalink
Merge pull request #77 from tnozicka/cleanup-spec
Browse files Browse the repository at this point in the history
Cleanup spec
  • Loading branch information
openshift-merge-robot committed Aug 29, 2019
2 parents 911ae06 + 04e8209 commit 3564dc5
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions oc.spec
Expand Up @@ -80,27 +80,27 @@ export GOPATH=$(pwd)/__gopath:%{gopath}
cd "__gopath/src/%{import_path}"
%endif

%ifarch %{ix86}
GOOS=linux
GOARCH=386
%endif
%ifarch ppc64le
GOOS=linux
GOARCH=ppc64le
%endif
%ifarch %{arm} aarch64
GOOS=linux
GOARCH=arm64
%endif
%ifarch s390x
GOOS=linux
GOARCH=s390x
%endif
%{make} build GO_BUILD_PACKAGES:='./cmd/oc ./tools/genman'

%ifarch x86_64
# Create Binaries for all supported arches
%{make} build cross-build
%else
%ifarch %{ix86}
GOOS=linux
GOARCH=386
%endif
%ifarch ppc64le
GOOS=linux
GOARCH=ppc64le
%endif
%ifarch %{arm} aarch64
GOOS=linux
GOARCH=arm64
%endif
%ifarch s390x
GOOS=linux
GOARCH=s390x
%endif
%{make} build
%{make} cross-build GO_BUILD_PACKAGES:='./cmd/oc'
%endif

%install
Expand Down Expand Up @@ -144,6 +144,7 @@ done
%{_bindir}/kubectl
%{_sysconfdir}/bash_completion.d/oc
%{_sysconfdir}/bash_completion.d/kubectl
%dir %{_mandir}/man1/
%{_mandir}/man1/oc*

%ifarch x86_64
Expand Down

0 comments on commit 3564dc5

Please sign in to comment.