# Generated by go2rpm %bcond_without check %bcond_with bootstrap %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/docker/docker %global goipath github.com/docker/docker Version: 17.03.2 %global commit 619df5a8f60f41f70f67dd1c59e390f67fe78a89 %global forgesetupargs -n moby-%{commit} %global topdir moby-%{commit} %global extractdir moby-%{commit} %gometa %global goaltipaths github.com/moby/moby %global common_description %{expand: Moby is an open-source project created by Docker to enable and accelerate software containerization. It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.} %global golicenses LICENSE NOTICE \\\ pkg/symlink/LICENSE.APACHE pkg/symlink/LICENSE.BSD %global godocs docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md\\\ ROADMAP.md TESTING.md VENDORING.md %if %{with bootstrap} %global gosupfiles "${vendor[@]}" %endif Name: %{goname} Release: 1.ce%{?dist} Summary: Collaborative project for the container ecosystem # Upstream license specification: BSD-2-Clause and Apache-2.0 and BSD-3-Clause # main package: ASL 2.0 # pkg/symlink: BSD and ASL 2.0 License: BSD and ASL 2.0 URL: %{gourl} Source0: %{gosource} # Remove Windows-only code to eliminate github.com/Microsoft/hcsshim dep Patch0: 0001-Remove-Windows-only-code.patch %if %{without bootstrap} BuildRequires: golang(cloud.google.com/go/compute/metadata) BuildRequires: golang(cloud.google.com/go/logging) BuildRequires: golang(github.com/aws/aws-sdk-go/aws) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials/endpointcreds) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/request) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session) BuildRequires: golang(github.com/aws/aws-sdk-go/service/cloudwatchlogs) BuildRequires: golang(github.com/Azure/go-ansiterm) BuildRequires: golang(github.com/bfirsh/funker-go) BuildRequires: golang(github.com/bsphere/le_go) BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/containerd/cgroups) BuildRequires: golang(github.com/containerd/containerd) BuildRequires: golang(github.com/containerd/containerd/api/events) BuildRequires: golang(github.com/containerd/containerd/api/types) BuildRequires: golang(github.com/containerd/containerd/archive) BuildRequires: golang(github.com/containerd/containerd/cio) BuildRequires: golang(github.com/containerd/containerd/containers) BuildRequires: golang(github.com/containerd/containerd/content) BuildRequires: golang(github.com/containerd/containerd/content/local) BuildRequires: golang(github.com/containerd/containerd/contrib/nvidia) BuildRequires: golang(github.com/containerd/containerd/defaults) BuildRequires: golang(github.com/containerd/containerd/errdefs) BuildRequires: golang(github.com/containerd/containerd/events) BuildRequires: golang(github.com/containerd/containerd/images) BuildRequires: golang(github.com/containerd/containerd/mount) BuildRequires: golang(github.com/containerd/containerd/oci) BuildRequires: golang(github.com/containerd/containerd/pkg/dialer) BuildRequires: golang(github.com/containerd/containerd/platforms) BuildRequires: golang(github.com/containerd/containerd/reference) BuildRequires: golang(github.com/containerd/containerd/remotes) BuildRequires: golang(github.com/containerd/containerd/remotes/docker) BuildRequires: golang(github.com/containerd/containerd/remotes/docker/schema1) BuildRequires: golang(github.com/containerd/containerd/rootfs) BuildRequires: golang(github.com/containerd/containerd/runtime/linux/runctypes) BuildRequires: golang(github.com/containerd/containerd/runtime/v1/linux) BuildRequires: golang(github.com/containerd/containerd/services/server/config) BuildRequires: golang(github.com/containerd/containerd/snapshots) BuildRequires: golang(github.com/containerd/continuity/driver) BuildRequires: golang(github.com/containerd/continuity/fs) BuildRequires: golang(github.com/containerd/continuity/pathdriver) BuildRequires: golang(github.com/containerd/fifo) BuildRequires: golang(github.com/containerd/typeurl) BuildRequires: golang(github.com/coreos/go-systemd/activation) BuildRequires: golang(github.com/coreos/go-systemd/daemon) BuildRequires: golang(github.com/coreos/go-systemd/journal) BuildRequires: golang(github.com/docker/distribution) BuildRequires: golang(github.com/docker/distribution/digestset) BuildRequires: golang(github.com/docker/distribution/manifest/manifestlist) BuildRequires: golang(github.com/docker/distribution/manifest/schema1) BuildRequires: golang(github.com/docker/distribution/manifest/schema2) BuildRequires: golang(github.com/docker/distribution/reference) BuildRequires: golang(github.com/docker/distribution/registry/api/errcode) BuildRequires: golang(github.com/docker/distribution/registry/api/v2) BuildRequires: golang(github.com/docker/distribution/registry/client) BuildRequires: golang(github.com/docker/distribution/registry/client/auth) BuildRequires: golang(github.com/docker/distribution/registry/client/auth/challenge) BuildRequires: golang(github.com/docker/distribution/registry/client/transport) BuildRequires: golang(github.com/docker/distribution/uuid) BuildRequires: golang(github.com/docker/go-connections/nat) BuildRequires: golang(github.com/docker/go-connections/sockets) BuildRequires: golang(github.com/docker/go-connections/tlsconfig) BuildRequires: golang(github.com/docker/go-metrics) BuildRequires: golang(github.com/docker/go-units) BuildRequires: golang(github.com/docker/libkv) BuildRequires: golang(github.com/docker/libkv/store) BuildRequires: golang(github.com/docker/libkv/store/consul) BuildRequires: golang(github.com/docker/libkv/store/etcd) BuildRequires: golang(github.com/docker/libkv/store/zookeeper) BuildRequires: golang(github.com/docker/libnetwork) BuildRequires: golang(github.com/docker/libnetwork/cluster) BuildRequires: golang(github.com/docker/libnetwork/config) BuildRequires: golang(github.com/docker/libnetwork/datastore) BuildRequires: golang(github.com/docker/libnetwork/driverapi) BuildRequires: golang(github.com/docker/libnetwork/drivers/bridge) BuildRequires: golang(github.com/docker/libnetwork/ipamapi) BuildRequires: golang(github.com/docker/libnetwork/ipamutils) BuildRequires: golang(github.com/docker/libnetwork/netlabel) BuildRequires: golang(github.com/docker/libnetwork/netutils) BuildRequires: golang(github.com/docker/libnetwork/networkdb) BuildRequires: golang(github.com/docker/libnetwork/options) BuildRequires: golang(github.com/docker/libnetwork/portallocator) BuildRequires: golang(github.com/docker/libnetwork/types) BuildRequires: golang(github.com/docker/swarmkit/agent) BuildRequires: golang(github.com/docker/swarmkit/agent/exec) BuildRequires: golang(github.com/docker/swarmkit/api) BuildRequires: golang(github.com/docker/swarmkit/api/genericresource) BuildRequires: golang(github.com/docker/swarmkit/api/naming) BuildRequires: golang(github.com/docker/swarmkit/ca) BuildRequires: golang(github.com/docker/swarmkit/log) BuildRequires: golang(github.com/docker/swarmkit/manager/allocator/cnmallocator) BuildRequires: golang(github.com/docker/swarmkit/manager/encryption) BuildRequires: golang(github.com/docker/swarmkit/node) BuildRequires: golang(github.com/docker/swarmkit/template) BuildRequires: golang(github.com/fluent/fluent-logger-golang/fluent) BuildRequires: golang(github.com/fsnotify/fsnotify) BuildRequires: golang(github.com/go-check/check) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/gogo/protobuf/sortkeys) BuildRequires: golang(github.com/gogo/protobuf/types) BuildRequires: golang(github.com/golang/gddo/httputil) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/gorilla/mux) BuildRequires: golang(github.com/Graylog2/go-gelf/gelf) BuildRequires: golang(github.com/hashicorp/go-immutable-radix) BuildRequires: golang(github.com/hashicorp/go-memdb) BuildRequires: golang(github.com/imdario/mergo) BuildRequires: golang(github.com/mattn/go-shellwords) # BuildRequires: golang(github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options) BuildRequires: golang(github.com/mistifyio/go-zfs) BuildRequires: golang(github.com/moby/buildkit/api/services/control) BuildRequires: golang(github.com/moby/buildkit/cache) BuildRequires: golang(github.com/moby/buildkit/cache/metadata) BuildRequires: golang(github.com/moby/buildkit/cache/remotecache) BuildRequires: golang(github.com/moby/buildkit/cache/remotecache/inline) BuildRequires: golang(github.com/moby/buildkit/cache/remotecache/local) BuildRequires: golang(github.com/moby/buildkit/cache/remotecache/registry) BuildRequires: golang(github.com/moby/buildkit/cache/remotecache/v1) BuildRequires: golang(github.com/moby/buildkit/client) BuildRequires: golang(github.com/moby/buildkit/control) BuildRequires: golang(github.com/moby/buildkit/executor) BuildRequires: golang(github.com/moby/buildkit/executor/runcexecutor) BuildRequires: golang(github.com/moby/buildkit/exporter) BuildRequires: golang(github.com/moby/buildkit/exporter/containerimage/exptypes) BuildRequires: golang(github.com/moby/buildkit/exporter/local) BuildRequires: golang(github.com/moby/buildkit/exporter/tar) BuildRequires: golang(github.com/moby/buildkit/frontend) BuildRequires: golang(github.com/moby/buildkit/frontend/dockerfile/builder) BuildRequires: golang(github.com/moby/buildkit/frontend/dockerfile/instructions) BuildRequires: golang(github.com/moby/buildkit/frontend/dockerfile/parser) BuildRequires: golang(github.com/moby/buildkit/frontend/dockerfile/shell) BuildRequires: golang(github.com/moby/buildkit/frontend/gateway) BuildRequires: golang(github.com/moby/buildkit/frontend/gateway/client) BuildRequires: golang(github.com/moby/buildkit/frontend/gateway/forwarder) BuildRequires: golang(github.com/moby/buildkit/identity) BuildRequires: golang(github.com/moby/buildkit/session) BuildRequires: golang(github.com/moby/buildkit/session/auth) BuildRequires: golang(github.com/moby/buildkit/session/filesync) BuildRequires: golang(github.com/moby/buildkit/snapshot) BuildRequires: golang(github.com/moby/buildkit/snapshot/blobmapping) BuildRequires: golang(github.com/moby/buildkit/solver) BuildRequires: golang(github.com/moby/buildkit/solver/bboltcachestorage) BuildRequires: golang(github.com/moby/buildkit/solver/llbsolver/ops) BuildRequires: golang(github.com/moby/buildkit/solver/pb) BuildRequires: golang(github.com/moby/buildkit/source) BuildRequires: golang(github.com/moby/buildkit/source/git) BuildRequires: golang(github.com/moby/buildkit/source/http) BuildRequires: golang(github.com/moby/buildkit/source/local) BuildRequires: golang(github.com/moby/buildkit/util/apicaps) BuildRequires: golang(github.com/moby/buildkit/util/binfmt_misc) BuildRequires: golang(github.com/moby/buildkit/util/contentutil) BuildRequires: golang(github.com/moby/buildkit/util/entitlements) BuildRequires: golang(github.com/moby/buildkit/util/flightcontrol) BuildRequires: golang(github.com/moby/buildkit/util/imageutil) BuildRequires: golang(github.com/moby/buildkit/util/network) BuildRequires: golang(github.com/moby/buildkit/util/progress) BuildRequires: golang(github.com/moby/buildkit/util/resolver) BuildRequires: golang(github.com/moby/buildkit/util/system) BuildRequires: golang(github.com/moby/buildkit/util/tracing) BuildRequires: golang(github.com/moby/buildkit/worker) BuildRequires: golang(github.com/morikuni/aec) BuildRequires: golang(github.com/opencontainers/go-digest) BuildRequires: golang(github.com/opencontainers/image-spec/identity) BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/apparmor) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/cgroups) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/configs) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/devices) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/system) BuildRequires: golang(github.com/opencontainers/runc/libcontainer/user) BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) BuildRequires: golang(github.com/opencontainers/selinux/go-selinux) BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/RackSec/srslog) BuildRequires: golang(github.com/seccomp/libseccomp-golang) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(github.com/spf13/pflag) BuildRequires: golang(github.com/syndtr/gocapability/capability) BuildRequires: golang(github.com/tchap/go-patricia/patricia) BuildRequires: golang(github.com/tonistiigi/fsutil) BuildRequires: golang(github.com/tonistiigi/fsutil/types) BuildRequires: golang(github.com/vbatts/tar-split/tar/asm) BuildRequires: golang(github.com/vbatts/tar-split/tar/storage) BuildRequires: golang(github.com/vdemeester/shakers) BuildRequires: golang(github.com/vishvananda/netlink) BuildRequires: golang(go.etcd.io/bbolt) BuildRequires: golang(golang.org/x/net/http2) BuildRequires: golang(golang.org/x/net/websocket) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(golang.org/x/sync/semaphore) BuildRequires: golang(golang.org/x/sync/singleflight) BuildRequires: golang(golang.org/x/sync/syncmap) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/time/rate) BuildRequires: golang(google.golang.org/genproto/googleapis/api/monitoredres) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/grpc/codes) BuildRequires: golang(google.golang.org/grpc/metadata) BuildRequires: golang(google.golang.org/grpc/status) BuildRequires: golang(gotest.tools/assert) BuildRequires: golang(gotest.tools/assert/cmp) BuildRequires: golang(gotest.tools/icmd) BuildRequires: golang(gotest.tools/poll) BuildRequires: golang(gotest.tools/skip) %if %{with check} # Tests BuildRequires: golang(github.com/gogo/protobuf/io) BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) BuildRequires: golang(gotest.tools/env) BuildRequires: golang(gotest.tools/fs) %endif %endif BuildRequires: git-core BuildRequires: pkgconfig(libseccomp) %description %{common_description} %gopkg %prep %if %{with bootstrap} %goprep -k %else %goprep %endif %patch0 -p1 # %%build # for cmd in cmd/* ; do # %%gobuild -o %%{gobuilddir}/bin/$(basename $cmd) %%{goipath}/$cmd # done %install %if %{with bootstrap} mapfile -t vendor <<< $(find vendor -type f) %endif %gopkginstall # install -m 0755 -vd %%{buildroot}%%{_bindir} # install -m 0755 -vp %{gobuilddir}/bin/* %%{buildroot}%%{_bindir}/ %if %{with check} %check %gocheck -t daemon \ -t cmd/dockerd \ -d integration/network \ -d pkg/authorization \ -d plugin %endif # %%files # %%license LICENSE NOTICE pkg/symlink/LICENSE.APACHE # %%license pkg/symlink/LICENSE.BSD # %%doc docs AUTHORS CHANGELOG.md CONTRIBUTING.md README.md ROADMAP.md TESTING.md # %%doc VENDORING.md # %%{_bindir}/* %gopkgfiles %changelog * Sat May 04 20:50:08 CEST 2019 Robert-André Mauchin - 17.03.2-1.ce.20190504git619df5a - Initial package