Blame golang-github-docker-cli.spec

8b3c63d
# Generated by go2rpm
8b3c63d
%bcond_without check
9fecdcb
%bcond_with bootstrap
8b3c63d
8b3c63d
# https://github.com/docker/cli
8b3c63d
%global goipath         github.com/docker/cli
6d14108
Version:                19.03.0
6d14108
%global tag             v19.03.0-rc3
6d14108
%global distprefix      %{nil}
8b3c63d
8b3c63d
%gometa
8b3c63d
8b3c63d
%global goipaths0       github.com/docker/cli
8b3c63d
%global goipathsex0     github.com/docker/cli/cli/command/image
8b3c63d
8b3c63d
%if %{without bootstrap}
8b3c63d
%global goipaths1       github.com/docker/cli/cli/command/image
8b3c63d
%endif
8b3c63d
8b3c63d
%global common_description %{expand:
8b3c63d
This repository is the home of the cli used in the Docker CE and Docker EE
8b3c63d
products.}
8b3c63d
8b3c63d
%global golicenses      LICENSE NOTICE
8b3c63d
%global godocs          docs CONTRIBUTING.md README.md TESTING.md AUTHORS\\\
8b3c63d
                        examples docs
8b3c63d
8b3c63d
Name:           %{goname}
ffa90c5
Release:        1.rc3%{?dist}.1
8b3c63d
Summary:        The docker CLI
8b3c63d
8b3c63d
# Upstream license specification: Apache-2.0
8b3c63d
License:        ASL 2.0
8b3c63d
URL:            %{gourl}
8b3c63d
Source0:        %{gosource}
8b3c63d
# SummarizeLicense now takes one argument instead of two
8b3c63d
Patch1:         0001-Fix-call-to-SummarizeLicense.patch
8b3c63d
# IsFormat(string) changed to IsFormat(interface {}) in github.com/xeipuuv/gojsonschema
8b3c63d
Patch3:         0001-Fix-for-new-gojsonschema.patch
8b3c63d
8b3c63d
BuildRequires:  golang(github.com/containerd/console)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/containers)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/content)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/diff/apply)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/errdefs)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/images)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/mount)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/namespaces)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/oci)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/remotes)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/remotes/docker)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/rootfs)
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/snapshots)
8b3c63d
BuildRequires:  golang(github.com/docker/compose-on-kubernetes/api)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/manifest/manifestlist)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/manifest/schema2)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/reference)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/api/errcode)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/api/v2)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/client)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/client/auth)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/client/auth/challenge)
8b3c63d
BuildRequires:  golang(github.com/docker/distribution/registry/client/transport)
8b3c63d
BuildRequires:  golang(github.com/docker/docker-credential-helpers/client)
8b3c63d
BuildRequires:  golang(github.com/docker/docker-credential-helpers/credentials)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/blkiodev)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/container)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/events)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/filters)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/image)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/mount)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/network)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/registry)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/strslice)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/swarm)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/versions)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/api/types/volume)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/builder/dockerignore)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/builder/remotecontext/git)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/client)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/archive)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/fileutils)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/homedir)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/idtools)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/ioutils)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/jsonmessage)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/pools)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/progress)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/signal)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/stdcopy)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/streamformatter)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/stringid)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/system)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/term)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/pkg/urlutil)
8b3c63d
BuildRequires:  golang(github.com/docker/docker/registry)
8b3c63d
BuildRequires:  golang(github.com/docker/go-connections/nat)
8b3c63d
BuildRequires:  golang(github.com/docker/go-connections/tlsconfig)
8b3c63d
BuildRequires:  golang(github.com/docker/go-units)
8b3c63d
BuildRequires:  golang(github.com/docker/licensing)
8b3c63d
BuildRequires:  golang(github.com/docker/licensing/model)
8b3c63d
BuildRequires:  golang(github.com/docker/swarmkit/api)
8b3c63d
BuildRequires:  golang(github.com/docker/swarmkit/api/defaults)
8b3c63d
BuildRequires:  golang(github.com/docker/swarmkit/api/genericresource)
6d14108
BuildRequires:  golang(github.com/flynn/go-shlex)
8b3c63d
BuildRequires:  golang(github.com/gogo/protobuf/types)
6d14108
BuildRequires:  golang(github.com/golang/glog)
8b3c63d
BuildRequires:  golang(github.com/hashicorp/go-version)
8b3c63d
BuildRequires:  golang(github.com/imdario/mergo)
8b3c63d
BuildRequires:  golang(github.com/mattn/go-shellwords)
8b3c63d
BuildRequires:  golang(github.com/mitchellh/mapstructure)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/api/services/control)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/client)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/session)
8b3c63d
%if %{without bootstrap}
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/session/auth/authprovider)
8b3c63d
%endif
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/session/filesync)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/session/secrets/secretsprovider)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/session/sshforward/sshprovider)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/util/appcontext)
8b3c63d
BuildRequires:  golang(github.com/moby/buildkit/util/progress/progressui)
8b3c63d
BuildRequires:  golang(github.com/morikuni/aec)
8b3c63d
BuildRequires:  golang(github.com/opencontainers/go-digest)
8b3c63d
BuildRequires:  golang(github.com/opencontainers/image-spec/identity)
8b3c63d
BuildRequires:  golang(github.com/opencontainers/image-spec/specs-go/v1)
8b3c63d
BuildRequires:  golang(github.com/opencontainers/runtime-spec/specs-go)
8b3c63d
BuildRequires:  golang(github.com/pkg/errors)
8b3c63d
BuildRequires:  golang(github.com/sirupsen/logrus)
8b3c63d
BuildRequires:  golang(github.com/spf13/cobra)
8b3c63d
BuildRequires:  golang(github.com/spf13/cobra/doc)
8b3c63d
BuildRequires:  golang(github.com/spf13/pflag)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/client)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/client/changelist)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/cryptoservice)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/passphrase)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/storage)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/trustmanager)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/trustpinning)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/tuf/data)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/tuf/signed)
8b3c63d
BuildRequires:  golang(github.com/theupdateframework/notary/tuf/utils)
8b3c63d
BuildRequires:  golang(github.com/tonistiigi/fsutil/types)
8b3c63d
BuildRequires:  golang(github.com/xeipuuv/gojsonschema)
8b3c63d
BuildRequires:  golang(golang.org/x/crypto/ssh/terminal)
8b3c63d
BuildRequires:  golang(golang.org/x/sync/errgroup)
8b3c63d
BuildRequires:  golang(golang.org/x/sys/unix)
8b3c63d
BuildRequires:  golang(golang.org/x/text/width)
8b3c63d
BuildRequires:  golang(golang.org/x/time/rate)
8b3c63d
BuildRequires:  golang(gopkg.in/yaml.v2)
8b3c63d
BuildRequires:  golang(gotest.tools/fs)
8b3c63d
BuildRequires:  golang(gotest.tools/icmd)
8b3c63d
BuildRequires:  golang(gotest.tools/poll)
8b3c63d
BuildRequires:  golang(gotest.tools/skip)
8b3c63d
BuildRequires:  golang(k8s.io/api/apps/v1beta2)
8b3c63d
BuildRequires:  golang(k8s.io/api/core/v1)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/api/errors)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/apis/meta/v1)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/fields)
6d14108
BuildRequires:  golang(k8s.io/apimachinery/pkg/labels)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime/schema)
6d14108
BuildRequires:  golang(k8s.io/apimachinery/pkg/runtime/serializer)
6d14108
BuildRequires:  golang(k8s.io/apimachinery/pkg/types)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/runtime)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/watch)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/discovery)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/kubernetes)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/apps/v1beta2)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/kubernetes/typed/core/v1)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/rest)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/tools/cache)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/tools/clientcmd)
6d14108
BuildRequires:  golang(k8s.io/client-go/util/flowcontrol)
8b3c63d
BuildRequires:  golang(k8s.io/kubernetes/pkg/api/v1/pod)
8b3c63d
BuildRequires:  golang(vbom.ml/util/sortorder)
8b3c63d
8b3c63d
%if %{with check}
8b3c63d
# Tests
8b3c63d
BuildRequires:  golang(github.com/containerd/containerd/cio)
8b3c63d
BuildRequires:  golang(github.com/google/go-cmp/cmp)
8b3c63d
BuildRequires:  golang(github.com/google/go-cmp/cmp/cmpopts)
6d14108
BuildRequires:  golang(gotest.tools/assert)
6d14108
BuildRequires:  golang(gotest.tools/assert/cmp)
8b3c63d
BuildRequires:  golang(gotest.tools/env)
8b3c63d
BuildRequires:  golang(gotest.tools/golden)
8b3c63d
BuildRequires:  golang(k8s.io/apimachinery/pkg/util/intstr)
8b3c63d
BuildRequires:  golang(k8s.io/client-go/testing)
8b3c63d
%endif
8b3c63d
8b3c63d
%description
8b3c63d
%{common_description}
8b3c63d
8b3c63d
%gopkg
8b3c63d
8b3c63d
%prep
8b3c63d
%goprep
8b3c63d
%autopatch -p1
8b3c63d
find . -name "*.go" -exec sed -i "s|github.com/flynn-archive/go-shlex|github.com/google/shlex|" "{}" +;
8b3c63d
8b3c63d
# %%build
8b3c63d
# for cmd in cmd/* ; do
8b3c63d
#   %%gobuild -o %%{gobuilddir}/bin/$(basename $cmd) %%{goipath}/$cmd
8b3c63d
# done
8b3c63d
8b3c63d
%install
8b3c63d
%gopkginstall
8b3c63d
# install -m 0755 -vd                     %%{buildroot}%%{_bindir}
8b3c63d
# install -m 0755 -vp %%{gobuilddir}/bin/* %%{buildroot}%%{_bindir}/
8b3c63d
8b3c63d
%%if %{with check}
8b3c63d
%check
8b3c63d
%gocheck -t cmd \
8b3c63d
         -d cli/command/image \
8b3c63d
         -d cli/command/container \
8b3c63d
         -d cli/command/engine \
8b3c63d
         -d cli/command/formatter \
8b3c63d
         -d cli/command/node \
8b3c63d
         -d cli/command/plugin \
8b3c63d
         -d cli/command/registry \
8b3c63d
         -d cli/command/stack \
8b3c63d
         -d cli/command/system \
8b3c63d
         -d cli/command/trust
8b3c63d
%endif
8b3c63d
8b3c63d
# %%files
8b3c63d
# %%license LICENSE NOTICE
8b3c63d
# %%doc docs CONTRIBUTING.md README.md TESTING.md AUTHORS examples docs
8b3c63d
# %%{_bindir}/*
8b3c63d
8b3c63d
%gopkgfiles
8b3c63d
8b3c63d
%changelog
ffa90c5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.03.0-1.rc3.1
ffa90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ffa90c5
6d14108
* Wed Jul 03 20:37:45 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 19.03.0-1.rc3
6d14108
- Release 19.03.0-rc3
6d14108
8b3c63d
* Wed May 01 15:26:24 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 18.09.6-1
8b3c63d
- Initial package