Blame ocid.spec

81a56d3
%if 0%{?fedora} || 0%{?rhel} == 6
81a56d3
%global with_devel 1
81a56d3
%global with_bundled 1
81a56d3
%global with_debug 0
81a56d3
%global with_check 1
81a56d3
%global with_unit_test 0
81a56d3
%else
81a56d3
%global with_devel 0
81a56d3
%global with_bundled 0
81a56d3
%global with_debug 0
81a56d3
%global with_check 0
81a56d3
%global with_unit_test 0
81a56d3
%endif
81a56d3
81a56d3
%if 0%{?with_debug}
81a56d3
%global _dwz_low_mem_die_limit 0
81a56d3
%else
81a56d3
%global debug_package   %{nil}
81a56d3
%endif
81a56d3
81a56d3
%global provider        github
81a56d3
%global provider_tld    com
81a56d3
%global project         kubernetes-incubator
81a56d3
%global repo            cri-o
81a56d3
# https://github.com/kubernetes-incubator/cri-o
81a56d3
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
81a56d3
%global import_path     %{provider_prefix}
a3814f0
%global commit0         7cc84922b3ef896e32bf56dd16ceb9fddcb18cb2
5db44f5
%global shortcommit0    %(c=%{commit0}; echo ${c:0:7})
612c8c3
612c8c3
%global git1            https://github.com/containernetworking/cni
612c8c3
%global commit1         98ff61aac32dcf2eb3044a0d5e5f1814837b3c75
612c8c3
%global shortcommit1    %(c=%{commit1}; echo ${c:0:7})
612c8c3
81a56d3
81a56d3
Name:           ocid
81a56d3
Version:        0
5d8ea72
Release:        0.13.git%{shortcommit0}%{?dist}
81a56d3
Summary:        OCI-based implementation of Kubernetes Container Runtime Interface
81a56d3
License:        ASL 2.0
81a56d3
URL:            https://%{provider_prefix}
612c8c3
Source0:        https://github.com/runcom/ocid-1/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
81a56d3
Source1:        Godeps.json
612c8c3
Source2:        %{git1}/archive/%{commit1}/cni-%{shortcommit1}.tar.gz
612c8c3
Source3:        %{name}.service
612c8c3
Source4:        %{name}-network.sysconfig
612c8c3
Source5:        %{name}-storage.sysconfig
81a56d3
81a56d3
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
81a56d3
#ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
5d8ea72
ExclusiveArch:  x86_64 aarch64 ppc64le
81a56d3
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
81a56d3
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
612c8c3
BuildRequires:  btrfs-progs-devel
81a56d3
BuildRequires:  glib2-devel
81a56d3
BuildRequires:  glibc-static
81a56d3
BuildRequires:  go-md2man
612c8c3
BuildRequires:  gpgme-devel
612c8c3
BuildRequires:  libassuan-devel
612c8c3
BuildRequires:  libseccomp-static
81a56d3
BuildRequires:  pkgconfig(systemd)
612c8c3
BuildRequires:  device-mapper-devel
612c8c3
Requires(pre):  container-selinux
7d71946
Requires:       runc >= 1.0.0-1.rc2
9bab8dd
Requires:       skopeo-containers
612c8c3
Provides:       %{repo} = %{version}-%{release}
1d00e50
Provides:       cri-o
81a56d3
81a56d3
%description
81a56d3
%{summary}
81a56d3
81a56d3
%if 0%{?with_devel}
81a56d3
%package devel
81a56d3
Summary:       %{summary}
81a56d3
BuildArch:     noarch
81a56d3
81a56d3
%if 0%{?with_check} && ! 0%{?with_bundled}
81a56d3
BuildRequires: golang(github.com/BurntSushi/toml)
81a56d3
BuildRequires: golang(github.com/Microsoft/go-winio)
81a56d3
BuildRequires: golang(github.com/Sirupsen/logrus)
81a56d3
BuildRequires: golang(github.com/containernetworking/cni/libcni)
81a56d3
BuildRequires: golang(github.com/containernetworking/cni/pkg/invoke)
81a56d3
BuildRequires: golang(github.com/containernetworking/cni/pkg/types)
81a56d3
BuildRequires: golang(github.com/containernetworking/cni/pkg/version)
81a56d3
BuildRequires: golang(github.com/containers/image/directory)
81a56d3
BuildRequires: golang(github.com/containers/image/directory/explicitfilepath)
81a56d3
BuildRequires: golang(github.com/containers/image/docker)
81a56d3
BuildRequires: golang(github.com/containers/image/docker/policyconfiguration)
81a56d3
BuildRequires: golang(github.com/containers/image/image)
81a56d3
BuildRequires: golang(github.com/containers/image/manifest)
81a56d3
BuildRequires: golang(github.com/containers/image/oci/layout)
81a56d3
BuildRequires: golang(github.com/containers/image/openshift)
81a56d3
BuildRequires: golang(github.com/containers/image/transports)
81a56d3
BuildRequires: golang(github.com/containers/image/types)
81a56d3
BuildRequires: golang(github.com/containers/image/version)
81a56d3
BuildRequires: golang(github.com/docker/distribution)
81a56d3
BuildRequires: golang(github.com/docker/distribution/context)
81a56d3
BuildRequires: golang(github.com/docker/distribution/digest)
81a56d3
BuildRequires: golang(github.com/docker/distribution/reference)
81a56d3
BuildRequires: golang(github.com/docker/distribution/uuid)
81a56d3
BuildRequires: golang(github.com/docker/docker/api/types/blkiodev)
81a56d3
BuildRequires: golang(github.com/docker/docker/api/types/container)
81a56d3
BuildRequires: golang(github.com/docker/docker/api/types/mount)
81a56d3
BuildRequires: golang(github.com/docker/docker/api/types/strslice)
81a56d3
BuildRequires: golang(github.com/docker/docker/api/types/versions)
81a56d3
BuildRequires: golang(github.com/docker/docker/daemon/graphdriver)
81a56d3
BuildRequires: golang(github.com/docker/docker/image)
81a56d3
BuildRequires: golang(github.com/docker/docker/image/v1)
81a56d3
BuildRequires: golang(github.com/docker/docker/layer)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/archive)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/chrootarchive)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/fileutils)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/homedir)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/idtools)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/ioutils)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/longpath)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/mount)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/plugins)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/plugins/transport)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/pools)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/promise)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/random)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/reexec)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/registrar)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/stringid)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/system)
81a56d3
BuildRequires: golang(github.com/docker/docker/pkg/truncindex)
81a56d3
BuildRequires: golang(github.com/docker/docker/plugin/getter)
81a56d3
BuildRequires: golang(github.com/docker/docker/reference)
81a56d3
BuildRequires: golang(github.com/docker/go-connections/nat)
81a56d3
BuildRequires: golang(github.com/docker/go-connections/sockets)
81a56d3
BuildRequires: golang(github.com/docker/go-connections/tlsconfig)
81a56d3
BuildRequires: golang(github.com/docker/go-units)
81a56d3
BuildRequires: golang(github.com/docker/libtrust)
81a56d3
BuildRequires: golang(github.com/ghodss/yaml)
81a56d3
BuildRequires: golang(github.com/gogo/protobuf/proto)
81a56d3
BuildRequires: golang(github.com/golang/glog)
81a56d3
BuildRequires: golang(github.com/golang/protobuf/proto)
81a56d3
BuildRequires: golang(github.com/gorilla/context)
81a56d3
BuildRequires: golang(github.com/gorilla/mux)
81a56d3
BuildRequires: golang(github.com/imdario/mergo)
81a56d3
BuildRequires: golang(github.com/opencontainers/image-spec/specs-go)
81a56d3
BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1)
81a56d3
BuildRequires: golang(github.com/opencontainers/runc/libcontainer/label)
81a56d3
BuildRequires: golang(github.com/opencontainers/runc/libcontainer/selinux)
81a56d3
BuildRequires: golang(github.com/opencontainers/runc/libcontainer/system)
81a56d3
BuildRequires: golang(github.com/opencontainers/runc/libcontainer/user)
81a56d3
BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go)
81a56d3
BuildRequires: golang(github.com/opencontainers/runtime-tools/generate)
81a56d3
BuildRequires: golang(github.com/rajatchopra/ocicni)
81a56d3
BuildRequires: golang(github.com/syndtr/gocapability/capability)
81a56d3
BuildRequires: golang(github.com/tchap/go-patricia/patricia)
81a56d3
BuildRequires: golang(github.com/vbatts/tar-split/archive/tar)
81a56d3
BuildRequires: golang(github.com/vbatts/tar-split/tar/asm)
81a56d3
BuildRequires: golang(github.com/vbatts/tar-split/tar/storage)
81a56d3
BuildRequires: golang(golang.org/x/net/context)
81a56d3
BuildRequires: golang(golang.org/x/net/http2)
81a56d3
BuildRequires: golang(golang.org/x/net/http2/hpack)
81a56d3
BuildRequires: golang(golang.org/x/net/internal/timeseries)
81a56d3
BuildRequires: golang(golang.org/x/net/proxy)
81a56d3
BuildRequires: golang(golang.org/x/net/trace)
81a56d3
BuildRequires: golang(golang.org/x/sys/unix)
81a56d3
BuildRequires: golang(google.golang.org/grpc)
81a56d3
BuildRequires: golang(google.golang.org/grpc/codes)
81a56d3
BuildRequires: golang(google.golang.org/grpc/credentials)
81a56d3
BuildRequires: golang(google.golang.org/grpc/grpclog)
81a56d3
BuildRequires: golang(google.golang.org/grpc/internal)
81a56d3
BuildRequires: golang(google.golang.org/grpc/metadata)
81a56d3
BuildRequires: golang(google.golang.org/grpc/naming)
81a56d3
BuildRequires: golang(google.golang.org/grpc/peer)
81a56d3
BuildRequires: golang(google.golang.org/grpc/transport)
81a56d3
BuildRequires: golang(gopkg.in/yaml.v2)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/fields)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/selection)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/util/errors)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/util/homedir)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/util/net)
81a56d3
BuildRequires: golang(k8s.io/kubernetes/pkg/util/sets)
81a56d3
%endif
81a56d3
81a56d3
Requires:      golang(github.com/BurntSushi/toml)
81a56d3
Requires:      golang(github.com/Microsoft/go-winio)
81a56d3
Requires:      golang(github.com/Sirupsen/logrus)
81a56d3
Requires:      golang(github.com/containernetworking/cni/libcni)
81a56d3
Requires:      golang(github.com/containernetworking/cni/pkg/invoke)
81a56d3
Requires:      golang(github.com/containernetworking/cni/pkg/types)
81a56d3
Requires:      golang(github.com/containernetworking/cni/pkg/version)
81a56d3
Requires:      golang(github.com/containers/image/directory)
81a56d3
Requires:      golang(github.com/containers/image/directory/explicitfilepath)
81a56d3
Requires:      golang(github.com/containers/image/docker)
81a56d3
Requires:      golang(github.com/containers/image/docker/policyconfiguration)
81a56d3
Requires:      golang(github.com/containers/image/image)
81a56d3
Requires:      golang(github.com/containers/image/manifest)
81a56d3
Requires:      golang(github.com/containers/image/oci/layout)
81a56d3
Requires:      golang(github.com/containers/image/openshift)
81a56d3
Requires:      golang(github.com/containers/image/transports)
81a56d3
Requires:      golang(github.com/containers/image/types)
81a56d3
Requires:      golang(github.com/containers/image/version)
81a56d3
Requires:      golang(github.com/docker/distribution)
81a56d3
Requires:      golang(github.com/docker/distribution/context)
81a56d3
Requires:      golang(github.com/docker/distribution/digest)
81a56d3
Requires:      golang(github.com/docker/distribution/reference)
81a56d3
Requires:      golang(github.com/docker/distribution/uuid)
81a56d3
Requires:      golang(github.com/docker/docker/api/types/blkiodev)
81a56d3
Requires:      golang(github.com/docker/docker/api/types/container)
81a56d3
Requires:      golang(github.com/docker/docker/api/types/mount)
81a56d3
Requires:      golang(github.com/docker/docker/api/types/strslice)
81a56d3
Requires:      golang(github.com/docker/docker/api/types/versions)
81a56d3
Requires:      golang(github.com/docker/docker/daemon/graphdriver)
81a56d3
Requires:      golang(github.com/docker/docker/image)
81a56d3
Requires:      golang(github.com/docker/docker/image/v1)
81a56d3
Requires:      golang(github.com/docker/docker/layer)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/archive)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/chrootarchive)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/fileutils)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/homedir)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/idtools)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/ioutils)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/longpath)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/mount)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/plugins)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/plugins/transport)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/pools)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/promise)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/random)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/reexec)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/registrar)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/stringid)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/system)
81a56d3
Requires:      golang(github.com/docker/docker/pkg/truncindex)
81a56d3
Requires:      golang(github.com/docker/docker/plugin/getter)
81a56d3
Requires:      golang(github.com/docker/docker/reference)
81a56d3
Requires:      golang(github.com/docker/go-connections/nat)
81a56d3
Requires:      golang(github.com/docker/go-connections/sockets)
81a56d3
Requires:      golang(github.com/docker/go-connections/tlsconfig)
81a56d3
Requires:      golang(github.com/docker/go-units)
81a56d3
Requires:      golang(github.com/docker/libtrust)
81a56d3
Requires:      golang(github.com/ghodss/yaml)
81a56d3
Requires:      golang(github.com/gogo/protobuf/proto)
81a56d3
Requires:      golang(github.com/golang/glog)
81a56d3
Requires:      golang(github.com/golang/protobuf/proto)
81a56d3
Requires:      golang(github.com/gorilla/context)
81a56d3
Requires:      golang(github.com/gorilla/mux)
81a56d3
Requires:      golang(github.com/imdario/mergo)
81a56d3
Requires:      golang(github.com/opencontainers/image-spec/specs-go)
81a56d3
Requires:      golang(github.com/opencontainers/image-spec/specs-go/v1)
81a56d3
Requires:      golang(github.com/opencontainers/runc/libcontainer/label)
81a56d3
Requires:      golang(github.com/opencontainers/runc/libcontainer/selinux)
81a56d3
Requires:      golang(github.com/opencontainers/runc/libcontainer/system)
81a56d3
Requires:      golang(github.com/opencontainers/runc/libcontainer/user)
81a56d3
Requires:      golang(github.com/opencontainers/runtime-spec/specs-go)
81a56d3
Requires:      golang(github.com/opencontainers/runtime-tools/generate)
81a56d3
Requires:      golang(github.com/rajatchopra/ocicni)
81a56d3
Requires:      golang(github.com/syndtr/gocapability/capability)
81a56d3
Requires:      golang(github.com/tchap/go-patricia/patricia)
81a56d3
Requires:      golang(github.com/vbatts/tar-split/archive/tar)
81a56d3
Requires:      golang(github.com/vbatts/tar-split/tar/asm)
81a56d3
Requires:      golang(github.com/vbatts/tar-split/tar/storage)
81a56d3
Requires:      golang(golang.org/x/net/context)
81a56d3
Requires:      golang(golang.org/x/net/http2)
81a56d3
Requires:      golang(golang.org/x/net/http2/hpack)
81a56d3
Requires:      golang(golang.org/x/net/internal/timeseries)
81a56d3
Requires:      golang(golang.org/x/net/proxy)
81a56d3
Requires:      golang(golang.org/x/net/trace)
81a56d3
Requires:      golang(golang.org/x/sys/unix)
81a56d3
Requires:      golang(google.golang.org/grpc)
81a56d3
Requires:      golang(google.golang.org/grpc/codes)
81a56d3
Requires:      golang(google.golang.org/grpc/credentials)
81a56d3
Requires:      golang(google.golang.org/grpc/grpclog)
81a56d3
Requires:      golang(google.golang.org/grpc/internal)
81a56d3
Requires:      golang(google.golang.org/grpc/metadata)
81a56d3
Requires:      golang(google.golang.org/grpc/naming)
81a56d3
Requires:      golang(google.golang.org/grpc/peer)
81a56d3
Requires:      golang(google.golang.org/grpc/transport)
81a56d3
Requires:      golang(gopkg.in/yaml.v2)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/fields)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/selection)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/util/errors)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/util/homedir)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/util/net)
81a56d3
Requires:      golang(k8s.io/kubernetes/pkg/util/sets)
81a56d3
81a56d3
Provides:      golang(%{import_path}/oci) = %{version}-%{release}
81a56d3
Provides:      golang(%{import_path}/server) = %{version}-%{release}
81a56d3
Provides:      golang(%{import_path}/utils) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/BurntSushi/toml)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/Sirupsen/logrus)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containernetworking/cni/libcni)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containernetworking/cni/pkg/invoke)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containernetworking/cni/pkg/types)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containernetworking/cni/pkg/version)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/directory)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/directory/explicitfilepath)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/docker)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/docker/policyconfiguration)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/image)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/manifest)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/oci/layout)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/openshift)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/transports)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/types)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/containers/image/version)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/coreos/go-systemd/daemon)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/distribution)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/distribution/context)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/distribution/digest)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/distribution/reference)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/distribution/uuid)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/api/types/blkiodev)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/api/types/container)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/api/types/mount)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/api/types/strslice)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/api/types/versions)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/daemon/graphdriver)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/image)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/image/v1)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/layer)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/archive)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/chrootarchive)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/fileutils)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/homedir)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/idtools)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/ioutils)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/mount)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/plugins)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/plugins/transport)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/pools)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/promise)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/random)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/reexec)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/registrar)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/stringid)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/system)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/pkg/truncindex)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/plugin/getter)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/docker/reference)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/go-connections/nat)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/go-connections/sockets)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/go-connections/tlsconfig)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/go-units)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/docker/libtrust)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/ghodss/yaml)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/gogo/protobuf/proto)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/golang/glog)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/golang/protobuf/proto)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/gorilla/context)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/gorilla/mux)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/imdario/mergo)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/image-spec/specs-go)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/image-spec/specs-go/v1)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runc/libcontainer/label)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runc/libcontainer/selinux)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runc/libcontainer/system)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runc/libcontainer/user)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runtime-spec/specs-go)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/opencontainers/runtime-tools/generate)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/rajatchopra/ocicni)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/syndtr/gocapability/capability)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/tchap/go-patricia/patricia)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/urfave/cli)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/vbatts/tar-split/archive/tar)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/vbatts/tar-split/tar/asm)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/github.com/vbatts/tar-split/tar/storage)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/net/context)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/net/http2)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/net/http2/hpack)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/net/proxy)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/net/trace)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/golang.org/x/sys/unix)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/codes)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/credentials)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/grpclog)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/metadata)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/naming)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/peer)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/google.golang.org/grpc/transport)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/gopkg.in/yaml.v2)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/fields)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/selection)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/util/errors)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/util/homedir)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/util/net)) = %{version}-%{release}
81a56d3
Provides:      bundled(golang(%{import_path}/vendor/src/k8s.io/kubernetes/pkg/util/sets)) = %{version}-%{release}
81a56d3
81a56d3
%description devel
81a56d3
%{summary}
81a56d3
81a56d3
This package contains library source intended for
81a56d3
building other packages which use import path with
81a56d3
%{import_path} prefix.
81a56d3
%endif
81a56d3
81a56d3
%if 0%{?with_unit_test} && 0%{?with_devel}
81a56d3
%package unit-test-devel
81a56d3
Summary:         Unit tests for %{name} package
81a56d3
%if 0%{?with_check}
81a56d3
#Here comes all BuildRequires: PACKAGE the unit tests
81a56d3
#in %%check section need for running
81a56d3
%endif
81a56d3
81a56d3
# test subpackage tests code from devel subpackage
81a56d3
Requires:        %{name}-devel = %{version}-%{release}
81a56d3
81a56d3
%description unit-test-devel
81a56d3
%{summary}
81a56d3
81a56d3
This package contains unit tests for project
81a56d3
providing packages with %{import_path} prefix.
81a56d3
%endif
81a56d3
81a56d3
%prep
612c8c3
%setup -q -n %{name}-1-%{commit0}
81a56d3
cp %{SOURCE1} .
612c8c3
cp %{SOURCE3} contrib/systemd/.
612c8c3
612c8c3
tar zxf %{SOURCE2}
81a56d3
81a56d3
%build
a3814f0
mkdir _build
a3814f0
pushd _build
a3814f0
mkdir -p src/%{provider}.%{provider_tld}/%{project}
a3814f0
ln -s $(dirs +1 -l) src/%{import_path}
a3814f0
popd
a3814f0
a3814f0
ln -s vendor src
a3814f0
a3814f0
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
81a56d3
make all
e49bbc4
_build/bin/ocid --selinux=true config > ocid.conf
81a56d3
612c8c3
pushd cni-%{commit1}
612c8c3
./build
612c8c3
81a56d3
%install
a3814f0
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
a3814f0
e49bbc4
%make_install DESTDIR=%{buildroot} PREFIX=%{buildroot}/usr install.config install.systemd install.completions
81a56d3
7d71946
install -dp %{buildroot}%{_libexecdir}/%{name}/cni
7d71946
install -p -m 755 cni-%{commit1}/bin/* %{buildroot}%{_libexecdir}/%{name}/cni
612c8c3
612c8c3
install -dp %{buildroot}%{_sysconfdir}/sysconfig
612c8c3
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-network
612c8c3
install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-storage
612c8c3
ed9c94f
%{buildroot}%{_bindir}/%{name} --root %{_sharedstatedir}/containers \
ed9c94f
--storage-driver=devmapper config > \
ed9c94f
%{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
ed9c94f
mkdir -p %{buildroot}%{_sharedstatedir}/containers
ed9c94f
81a56d3
# source codes for building projects
81a56d3
%if 0%{?with_devel}
81a56d3
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
81a56d3
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
81a56d3
# find all *.go but no *_test.go files and generate devel.file-list
81a56d3
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
81a56d3
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
81a56d3
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
81a56d3
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
81a56d3
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
81a56d3
done
81a56d3
%endif
81a56d3
81a56d3
# testing files for this project
81a56d3
%if 0%{?with_unit_test} && 0%{?with_devel}
81a56d3
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
81a56d3
# find all *_test.go files and generate unit-test.file-list
81a56d3
for file in $(find . -iname "*_test.go"); do
81a56d3
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
81a56d3
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
81a56d3
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
81a56d3
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
81a56d3
done
81a56d3
%endif
81a56d3
81a56d3
%if 0%{?with_devel}
81a56d3
sort -u -o devel.file-list devel.file-list
81a56d3
%endif
81a56d3
81a56d3
%check
81a56d3
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
81a56d3
%if ! 0%{?with_bundled}
81a56d3
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
81a56d3
%else
81a56d3
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
81a56d3
%endif
81a56d3
81a56d3
%endif
81a56d3
81a56d3
%preun
81a56d3
%systemd_preun %{name}
81a56d3
81a56d3
%postun
81a56d3
%systemd_postun_with_restart %{name}
81a56d3
81a56d3
#define license tag if not already defined
81a56d3
%{!?_licensedir:%global license %doc}
81a56d3
81a56d3
%if 0%{?with_devel}
81a56d3
%files devel -f devel.file-list
81a56d3
%license LICENSE
81a56d3
%doc README.md code-of-conduct.md Godeps.json
81a56d3
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
81a56d3
%endif
81a56d3
81a56d3
%if 0%{?with_unit_test} && 0%{?with_devel}
81a56d3
%files unit-test-devel -f unit-test-devel.file-list
81a56d3
%license LICENSE
81a56d3
%doc README.md code-of-conduct.md Godeps.json
81a56d3
%endif
81a56d3
81a56d3
%files
81a56d3
%license LICENSE
81a56d3
%doc README.md Godeps.json
81a56d3
%{_bindir}/%{name}
612c8c3
%{_bindir}/kpod
81a56d3
%{_bindir}/ocic
612c8c3
%{_mandir}/man1/kpod*
81a56d3
%{_mandir}/man5/%{name}.conf.5*
81a56d3
%{_mandir}/man8/%{name}.8*
ed9c94f
%dir %{_sysconfdir}/%{name}
612c8c3
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
612c8c3
%config(noreplace) %{_sysconfdir}/%{name}/seccomp.json
612c8c3
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-storage
612c8c3
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-network
7d71946
%dir %{_libexecdir}/%{name}
7d71946
%{_libexecdir}/%{name}/conmon
7d71946
%{_libexecdir}/%{name}/pause
7d71946
%dir %{_libexecdir}/%{name}/cni
7d71946
%{_libexecdir}/%{name}/cni/*
81a56d3
%{_unitdir}/%{name}.service
1d00e50
%dir %{_sharedstatedir}/containers
e49bbc4
%{_datadir}/bash-completion/completions/*
81a56d3
81a56d3
%changelog
5d8ea72
* Mon Jan 23 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0-0.13.git7cc8492
5d8ea72
- Build on all kubernetes arches
5d8ea72
107e8b4
* Fri Jan 20 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.12.git7cc8492
107e8b4
- add bash completion
107e8b4
- From: Daniel J Walsh <dwalsh@redhat.com>
107e8b4
368a9d6
* Thu Jan 19 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.11.git7cc8492
368a9d6
- remove trailing whitespace from unitfile
368a9d6
a3814f0
* Thu Jan 19 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.10.git7cc8492
a3814f0
- built commit 7cc8492
a3814f0
- packaging fixes from Nalin Dahyabhai <nalin@redhat.com>
a3814f0
9bab8dd
* Thu Jan 19 2017 Dan Walsh <dwalsh@redhat.com> - 0-0.9.gitb9dc097
9bab8dd
- Change to require skopeo-containers
9bab8dd
- Merge Nalind/storage patch
9bab8dd
-    Now uses Storage for Image Management
9bab8dd
ed9c94f
* Mon Jan 16 2017 Lokesh Manvekar <lsm5@fedoraproject.org> - 0-0.8.git2e6070f
ed9c94f
- packaging changes from Nalin Dahyabhai <nalin@redhat.com>
ed9c94f
- Don't make the ExecReload setting part of the ExecStart setting.
ed9c94f
- Create ocid.conf in install, not in check.
ed9c94f
- Own /etc/ocid.
ed9c94f
- Install an "anything goes" pulling policy for a default.
ed9c94f
1d00e50
* Thu Dec 22 2016 Dan Walsh <dwalsh@redhat.com> - 0-0.7.git2e6070f
1d00e50
- Switch locate to /var/lib/containers for images
1d00e50
5db44f5
* Thu Dec 22 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.6.git2e6070f
5db44f5
- built commit 2e6070f
5db44f5
7d71946
* Wed Dec 21 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.5.git36dfef5
7d71946
- install plugins into /usr/libexec/ocid/cni/
7d71946
- require runc >= 1.0.0 rc2
7d71946
612c8c3
* Wed Dec 21 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.4.git36dfef5
612c8c3
- built runcom/alpha commit 36dfef5
612c8c3
- cni bundled for now
612c8c3
81a56d3
* Thu Dec 15 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.3.gitc57530e
81a56d3
- Resolves: #1392977 - first upload to Fedora
81a56d3
- add build deps, enable only for x86_64 (doesn't build on i686)
81a56d3
81a56d3
* Thu Dec 15 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.gitc57530e
81a56d3
- add Godeps.json
81a56d3
81a56d3
* Tue Nov 08 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.1.gitc57530e
81a56d3
- First package for Fedora
81a56d3
81a56d3