799950
# If any of the following macros should be set otherwise,
799950
# you can wrap any of them with the following conditions:
799950
# - %%if 0%%{centos} == 7
799950
# - %%if 0%%{?rhel} == 7
799950
# - %%if 0%%{?fedora} == 23
799950
# Or just test for particular distribution:
799950
# - %%if 0%%{centos}
799950
# - %%if 0%%{?rhel}
799950
# - %%if 0%%{?fedora}
799950
#
799950
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
799950
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
799950
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
799950
799950
# Generate devel rpm
799950
%global with_devel 0
799950
# Build project from bundled dependencies
799950
%global with_bundled 1
799950
# Build with debug info rpm
799950
%global with_debug 1
799950
# Run tests in check section
799950
%global with_check 0
799950
# Generate unit-test rpm
799950
%global with_unit_test 0
799950
799950
%if 0%{?with_debug}
799950
%global _dwz_low_mem_die_limit 0
799950
%else
799950
%global debug_package   %{nil}
799950
%endif
799950
799950
# %if ! 0% {?gobuild:1}
799950
%define gobuild(o:) go build -tags="$BUILDTAGS selinux seccomp" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
799950
#% endif
799950
799950
%global provider github
799950
%global provider_tld com
799950
%global project projectatomic
799950
%global repo libpod
799950
# https://github.com/projectatomic/libpod
799950
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
799950
%global import_path %{provider_prefix}
799950
%global git_podman https://%{provider}.%{provider_tld}/%{project}/%{repo}
799950
%global commit b51d32703f80e40487a5f494d6209ffd7e596ada
799950
%global shortcommit %(c=%{commit}; echo ${c:0:7})
799950
799950
%global import_path_conmon github.com/kubernetes-incubator/cri-o
799950
%global git_conmon https://%{import_path_conmon}
799950
%global commit_conmon 712f3b8cf14cbbac298f3ccc020677ac2a65fa75
799950
%global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7})
799950
799950
# https://github.com/containernetworking/cni
799950
%global import_path_cni github.com/containernetworking/plugins 
799950
%global git_cni https://%{import_path_cni}
799950
%global commit_cni dd8ff8a5cf537dcfc705e14a1465f82817869bf9
799950
%global shortcommit_cni %(c=%{commit_cni}; echo ${c:0:7})
799950
799950
Name: podman
799950
Version: 0.4.1
799950
Release: 4.git%{shortcommit}%{?dist}
799950
Summary: Manage Pods, Containers and Container Images
799950
License: ASL 2.0
799950
URL: %{git_podman}
799950
Source0: %{git_podman}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
799950
Source1: %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz
799950
Source2: %{git_cni}/archive/%{commit_cni}/plugins-%{shortcommit_cni}.tar.gz
799950
Source3: build.sh
799950
799950
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
799950
#ExclusiveArch:  %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}}
799950
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64
799950
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
799950
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
799950
BuildRequires: btrfs-progs-devel
799950
BuildRequires: device-mapper-devel
799950
BuildRequires: glib2-devel
799950
BuildRequires: glibc-devel
799950
BuildRequires: glibc-static
799950
BuildRequires: git
799950
BuildRequires: go-md2man
799950
BuildRequires: gpgme-devel
799950
BuildRequires: libassuan-devel
799950
BuildRequires: libgpg-error-devel
799950
BuildRequires: libseccomp-devel
799950
BuildRequires: libselinux-devel
799950
BuildRequires: pkgconfig
799950
Requires: runc
799950
Requires: skopeo-containers >= 0.1.29-3
799950
# can't use default conmon right now, so we ship our own
799950
#Requires:       conmon
799950
Requires: buildah
799950
Requires: containernetworking-plugins >= 0.7.0-2
799950
Requires: iptables
799950
Requires: atomic-registries >= 1.22.1-3
799950
799950
# vendored libraries
799950
# awk '{print "Provides: bundled(golang("$1")) = "$2}' vendor.conf | sort
799950
# [thanks to Carl George <carl@george.computer> for containerd.spec]
799950
Provides: bundled(golang(github.com/asaskevich/govalidator)) = v6
799950
Provides: bundled(golang(github.com/Azure/go-ansiterm)) = 19f72df4d05d31cbe1c56bfc8045c96babff6c7e
799950
Provides: bundled(golang(github.com/beorn7/perks)) = 3ac7bf7a47d159a033b107610db8a1b6575507a4
799950
Provides: bundled(golang(github.com/blang/semver)) = v3.5.0
799950
Provides: bundled(golang(github.com/buger/goterm)) = 2f8dfbc7dbbff5dd1d391ed91482c24df243b2d3
799950
Provides: bundled(golang(github.com/BurntSushi/toml)) = v0.2.0
799950
Provides: bundled(golang(github.com/containerd/cgroups)) = 7a5fdd8330119dc70d850260db8f3594d89d6943
799950
Provides: bundled(golang(github.com/containerd/continuity)) = master
799950
Provides: bundled(golang(github.com/containernetworking/cni)) = v0.4.0
799950
Provides: bundled(golang(github.com/containers/image)) = b129a8413fd1e8c53379acbbacfc7b667070ae50
799950
Provides: bundled(golang(github.com/containers/storage)) = 1e5ce40cdb84ab66e26186435b1273e04b879fef
799950
Provides: bundled(golang(github.com/coreos/go-systemd)) = v14
799950
Provides: bundled(golang(github.com/cyphar/filepath-securejoin)) = v0.2.1
799950
Provides: bundled(golang(github.com/davecgh/go-spew)) = v1.1.0
799950
Provides: bundled(golang(github.com/dgrijalva/jwt-go)) = v3.0.0
799950
Provides: bundled(golang(github.com/docker/distribution)) = 7a8efe719e55bbfaff7bc5718cdf0ed51ca821df
799950
Provides: bundled(golang(github.com/docker/docker)) = ce452fb72ffcdb7605ce98bde9302238f47c63c5
799950
Provides: bundled(golang(github.com/docker/docker-credential-helpers)) = d68f9aeca33f5fd3f08eeae5e9d175edf4e731d1
799950
Provides: bundled(golang(github.com/docker/go-connections)) = 3ede32e2033de7505e6500d6c868c2b9ed9f169d
799950
Provides: bundled(golang(github.com/docker/go-units)) = v0.3.2
799950
Provides: bundled(golang(github.com/docker/libtrust)) = aabc10ec26b754e797f9028f4589c5b7bd90dc20
799950
Provides: bundled(golang(github.com/docker/spdystream)) = ed496381df8283605c435b86d4fdd6f4f20b8c6e
799950
Provides: bundled(golang(github.com/emicklei/go-restful)) = ff4f55a206334ef123e4f79bbf348980da81ca46
799950
Provides: bundled(golang(github.com/emicklei/go-restful-swagger12)) = 1.0.1
799950
Provides: bundled(golang(github.com/exponent-io/jsonpath)) = d6023ce2651d8eafb5c75bb0c7167536102ec9f5
799950
Provides: bundled(golang(github.com/fatih/camelcase)) = f6a740d52f961c60348ebb109adde9f4635d7540
799950
Provides: bundled(golang(github.com/ghodss/yaml)) = 04f313413ffd65ce25f2541bfd2b2ceec5c0908c
799950
Provides: bundled(golang(github.com/godbus/dbus)) = a389bdde4dd695d414e47b755e95e72b7826432c
799950
Provides: bundled(golang(github.com/gogo/protobuf)) = v0.3
799950
Provides: bundled(golang(github.com/golang/glog)) = 23def4e6c14b4da8ac2ed8007337bc5eb5007998
799950
Provides: bundled(golang(github.com/golang/groupcache)) = b710c8433bd175204919eb38776e944233235d03
799950
Provides: bundled(golang(github.com/golang/protobuf)) = 748d386b5c1ea99658fd69fe9f03991ce86a90c1
799950
Provides: bundled(golang(github.com/google/gofuzz)) = 44d81051d367757e1c7c6a5a86423ece9afcf63c
799950
Provides: bundled(golang(github.com/go-openapi/analysis)) = b44dc874b601d9e4e2f6e19140e794ba24bead3b
799950
Provides: bundled(golang(github.com/go-openapi/errors)) = d24ebc2075bad502fac3a8ae27aa6dd58e1952dc
799950
Provides: bundled(golang(github.com/go-openapi/jsonpointer)) = 779f45308c19820f1a69e9a4cd965f496e0da10f
799950
Provides: bundled(golang(github.com/go-openapi/jsonreference)) = 36d33bfe519efae5632669801b180bf1a245da3b
799950
Provides: bundled(golang(github.com/go-openapi/loads)) = 18441dfa706d924a39a030ee2c3b1d8d81917b38
799950
Provides: bundled(golang(github.com/go-openapi/spec)) = 6aced65f8501fe1217321abf0749d354824ba2ff
799950
Provides: bundled(golang(github.com/go-openapi/strfmt)) = 93a31ef21ac23f317792fff78f9539219dd74619
799950
Provides: bundled(golang(github.com/go-openapi/swag)) = 1d0bd113de87027671077d3c71eb3ac5d7dbba72
799950
Provides: bundled(golang(github.com/gorilla/context)) = v1.1
799950
Provides: bundled(golang(github.com/gorilla/mux)) = v1.3.0
799950
Provides: bundled(golang(github.com/hashicorp/errwrap)) = 7554cd9344cec97297fa6649b055a8c98c2a1e55
799950
Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0a025b7e63adc15a622f29b0b2c4c3848243bbf6
799950
Provides: bundled(golang(github.com/hashicorp/go-multierror)) = 83588e72410abfbe4df460eeb6f30841ae47d4c4
799950
Provides: bundled(golang(github.com/imdario/mergo)) = 0.2.2
799950
Provides: bundled(golang(github.com/juju/ratelimit)) = 5b9ff866471762aa2ab2dced63c9fb6f53921342
799950
Provides: bundled(golang(github.com/kr/pty)) = v1.0.0
799950
Provides: bundled(golang(github.com/mailru/easyjson)) = 99e922cf9de1bc0ab38310c277cff32c2147e747
799950
Provides: bundled(golang(github.com/mattn/go-runewidth)) = v0.0.1
799950
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
799950
Provides: bundled(golang(github.com/Microsoft/go-winio)) = 78439966b38d69bf38227fbf57ac8a6fee70f69a
799950
Provides: bundled(golang(github.com/Microsoft/hcsshim)) = 43f9725307998e09f2e3816c2c0c36dc98f0c982
799950
Provides: bundled(golang(github.com/mistifyio/go-zfs)) = v2.1.1
799950
Provides: bundled(golang(github.com/mitchellh/mapstructure)) = d0303fe809921458f417bcf828397a65db30a7e4
799950
Provides: bundled(golang(github.com/mtrmac/gpgme)) = b2432428689ca58c2b8e8dea9449d3295cf96fc9
799950
Provides: bundled(golang(github.com/opencontainers/go-digest)) = v1.0.0-rc0
799950
Provides: bundled(golang(github.com/opencontainers/image-spec)) = v1.0.0
799950
Provides: bundled(golang(github.com/opencontainers/runc)) = 6e15bc3f92fd4c58b3285e8f27eaeb6b22d62920
799950
Provides: bundled(golang(github.com/opencontainers/runtime-spec)) = v1.0.0
799950
Provides: bundled(golang(github.com/opencontainers/runtime-tools)) = 625e2322645b151a7cbb93a8b42920933e72167f
799950
Provides: bundled(golang(github.com/opencontainers/selinux)) = b29023b86e4a69d1b46b7e7b4e2b6fda03f0b9cd
799950
Provides: bundled(golang(github.com/ostreedev/ostree-go)) = master
799950
Provides: bundled(golang(github.com/pkg/errors)) = v0.8.0
799950
Provides: bundled(golang(github.com/pmezard/go-difflib)) = 792786c7400a136282c1664665ae0a8db921c6c2
799950
Provides: bundled(golang(github.com/pquerna/ffjson)) = d49c2bc1aa135aad0c6f4fc2056623ec78f5d5ac
799950
Provides: bundled(golang(github.com/prometheus/client_golang)) = e7e903064f5e9eb5da98208bae10b475d4db0f8c
799950
Provides: bundled(golang(github.com/prometheus/client_model)) = fa8ad6fec33561be4280a8f0514318c79d7f6cb6
799950
Provides: bundled(golang(github.com/prometheus/common)) = 13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207
799950
Provides: bundled(golang(github.com/prometheus/procfs)) = 65c1f6f8f0fc1e2185eb9863a3bc751496404259
799950
Provides: bundled(golang(github.com/PuerkitoBio/purell)) = v1.1.0
799950
Provides: bundled(golang(github.com/PuerkitoBio/urlesc)) = 5bd2802263f21d8788851d5305584c82a5c75d7e
799950
Provides: bundled(golang(github.com/renstrom/dedent)) = v1.0.0
799950
Provides: bundled(golang(github.com/seccomp/libseccomp-golang)) = v0.9.0
799950
Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.0.0
799950
Provides: bundled(golang(github.com/spf13/pflag)) = 9ff6c6923cfffbcd502984b8e0c80539a94968b7
799950
Provides: bundled(golang(github.com/stretchr/testify)) = 4d4bfba8f1d1027c4fdbe371823030df51419987
799950
Provides: bundled(golang(github.com/syndtr/gocapability)) = e7cb7fa329f456b3855136a2642b197bad7366ba
799950
Provides: bundled(golang(github.com/tchap/go-patricia)) = v2.2.6
799950
Provides: bundled(golang(github.com/ugorji/go)) = d23841a297e5489e787e72fceffabf9d2994b52a
799950
Provides: bundled(golang(github.com/urfave/cli)) = 39908eb08fee7c10d842622a114a5c133fb0a3c6
799950
Provides: bundled(golang(github.com/vbatts/tar-split)) = v0.10.2
799950
Provides: bundled(golang(github.com/vishvananda/netlink)) = master
799950
Provides: bundled(golang(github.com/vishvananda/netns)) = master
799950
Provides: bundled(golang(github.com/xeipuuv/gojsonpointer)) = master
799950
Provides: bundled(golang(github.com/xeipuuv/gojsonreference)) = master
799950
Provides: bundled(golang(github.com/xeipuuv/gojsonschema)) = master
799950
Provides: bundled(golang(golang.org/x/crypto)) = 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2
799950
Provides: bundled(golang(golang.org/x/net)) = c427ad74c6d7a814201695e9ffde0c5d400a7674
799950
Provides: bundled(golang(golang.org/x/sys)) = 9aade4d3a3b7e6d876cd3823ad20ec45fc035402
799950
Provides: bundled(golang(golang.org/x/text)) = f72d8390a633d5dfb0cc84043294db9f6c935756
799950
Provides: bundled(golang(google.golang.org/grpc)) = v1.0.4
799950
Provides: bundled(golang(gopkg.in/cheggaaa/pb.v1)) = v1.0.7
799950
Provides: bundled(golang(gopkg.in/inf.v0)) = v0.9.0
799950
Provides: bundled(golang(gopkg.in/mgo.v2)) = v2
799950
Provides: bundled(golang(gopkg.in/yaml.v2)) = v2
799950
799950
%description
799950
%{summary}
799950
libpod provides a library for applications looking to use
799950
the Container Pod concept popularized by Kubernetes.
799950
799950
%if 0%{?with_devel}
799950
%package -n libpod-devel
799950
Summary:       Library for applications looking to use Container Pods
799950
BuildArch:     noarch
799950
799950
%if 0%{?with_check} && ! 0%{?with_bundled}
799950
BuildRequires: golang(github.com/BurntSushi/toml)
799950
BuildRequires: golang(github.com/containerd/cgroups)
799950
BuildRequires: golang(github.com/containernetworking/plugins/pkg/ns)
799950
BuildRequires: golang(github.com/containers/image/copy)
799950
BuildRequires: golang(github.com/containers/image/directory)
799950
BuildRequires: golang(github.com/containers/image/docker)
799950
BuildRequires: golang(github.com/containers/image/docker/archive)
799950
BuildRequires: golang(github.com/containers/image/docker/reference)
799950
BuildRequires: golang(github.com/containers/image/docker/tarfile)
799950
BuildRequires: golang(github.com/containers/image/image)
799950
BuildRequires: golang(github.com/containers/image/oci/archive)
799950
BuildRequires: golang(github.com/containers/image/pkg/strslice)
799950
BuildRequires: golang(github.com/containers/image/pkg/sysregistries)
799950
BuildRequires: golang(github.com/containers/image/signature)
799950
BuildRequires: golang(github.com/containers/image/storage)
799950
BuildRequires: golang(github.com/containers/image/tarball)
799950
BuildRequires: golang(github.com/containers/image/transports/alltransports)
799950
BuildRequires: golang(github.com/containers/image/types)
799950
BuildRequires: golang(github.com/containers/storage)
799950
BuildRequires: golang(github.com/containers/storage/pkg/archive)
799950
BuildRequires: golang(github.com/containers/storage/pkg/idtools)
799950
BuildRequires: golang(github.com/containers/storage/pkg/reexec)
799950
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
799950
BuildRequires: golang(github.com/cri-o/ocicni/pkg/ocicni)
799950
BuildRequires: golang(github.com/docker/distribution/reference)
799950
BuildRequires: golang(github.com/docker/docker/daemon/caps)
799950
BuildRequires: golang(github.com/docker/docker/pkg/mount)
799950
BuildRequires: golang(github.com/docker/docker/pkg/namesgenerator)
799950
BuildRequires: golang(github.com/docker/docker/pkg/stringid)
799950
BuildRequires: golang(github.com/docker/docker/pkg/system)
799950
BuildRequires: golang(github.com/docker/docker/pkg/term)
799950
BuildRequires: golang(github.com/docker/docker/pkg/truncindex)
799950
BuildRequires: golang(github.com/ghodss/yaml)
799950
BuildRequires: golang(github.com/godbus/dbus)
799950
BuildRequires: golang(github.com/mattn/go-sqlite3)
799950
BuildRequires: golang(github.com/mrunalp/fileutils)
799950
BuildRequires: golang(github.com/opencontainers/go-digest)
799950
BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1)
799950
BuildRequires: golang(github.com/opencontainers/runc/libcontainer)
799950
BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go)
799950
BuildRequires: golang(github.com/opencontainers/runtime-tools/generate)
799950
BuildRequires: golang(github.com/opencontainers/selinux/go-selinux)
799950
BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label)
799950
BuildRequires: golang(github.com/pkg/errors)
799950
BuildRequires: golang(github.com/sirupsen/logrus)
799950
BuildRequires: golang(github.com/ulule/deepcopier)
799950
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
799950
BuildRequires: golang(golang.org/x/sys/unix)
799950
BuildRequires: golang(k8s.io/apimachinery/pkg/util/wait)
799950
BuildRequires: golang(k8s.io/client-go/tools/remotecommand)
799950
BuildRequires: golang(k8s.io/kubernetes/pkg/kubelet/container)
799950
%endif
799950
799950
Requires:      golang(github.com/BurntSushi/toml)
799950
Requires:      golang(github.com/containerd/cgroups)
799950
Requires:      golang(github.com/containernetworking/plugins/pkg/ns)
799950
Requires:      golang(github.com/containers/image/copy)
799950
Requires:      golang(github.com/containers/image/directory)
799950
Requires:      golang(github.com/containers/image/docker)
799950
Requires:      golang(github.com/containers/image/docker/archive)
799950
Requires:      golang(github.com/containers/image/docker/reference)
799950
Requires:      golang(github.com/containers/image/docker/tarfile)
799950
Requires:      golang(github.com/containers/image/image)
799950
Requires:      golang(github.com/containers/image/oci/archive)
799950
Requires:      golang(github.com/containers/image/pkg/strslice)
799950
Requires:      golang(github.com/containers/image/pkg/sysregistries)
799950
Requires:      golang(github.com/containers/image/signature)
799950
Requires:      golang(github.com/containers/image/storage)
799950
Requires:      golang(github.com/containers/image/tarball)
799950
Requires:      golang(github.com/containers/image/transports/alltransports)
799950
Requires:      golang(github.com/containers/image/types)
799950
Requires:      golang(github.com/containers/storage)
799950
Requires:      golang(github.com/containers/storage/pkg/archive)
799950
Requires:      golang(github.com/containers/storage/pkg/idtools)
799950
Requires:      golang(github.com/containers/storage/pkg/reexec)
799950
Requires:      golang(github.com/coreos/go-systemd/dbus)
799950
Requires:      golang(github.com/cri-o/ocicni/pkg/ocicni)
799950
Requires:      golang(github.com/docker/distribution/reference)
799950
Requires:      golang(github.com/docker/docker/daemon/caps)
799950
Requires:      golang(github.com/docker/docker/pkg/mount)
799950
Requires:      golang(github.com/docker/docker/pkg/namesgenerator)
799950
Requires:      golang(github.com/docker/docker/pkg/stringid)
799950
Requires:      golang(github.com/docker/docker/pkg/system)
799950
Requires:      golang(github.com/docker/docker/pkg/term)
799950
Requires:      golang(github.com/docker/docker/pkg/truncindex)
799950
Requires:      golang(github.com/ghodss/yaml)
799950
Requires:      golang(github.com/godbus/dbus)
799950
Requires:      golang(github.com/mattn/go-sqlite3)
799950
Requires:      golang(github.com/mrunalp/fileutils)
799950
Requires:      golang(github.com/opencontainers/go-digest)
799950
Requires:      golang(github.com/opencontainers/image-spec/specs-go/v1)
799950
Requires:      golang(github.com/opencontainers/runc/libcontainer)
799950
Requires:      golang(github.com/opencontainers/runtime-spec/specs-go)
799950
Requires:      golang(github.com/opencontainers/runtime-tools/generate)
799950
Requires:      golang(github.com/opencontainers/selinux/go-selinux)
799950
Requires:      golang(github.com/opencontainers/selinux/go-selinux/label)
799950
Requires:      golang(github.com/pkg/errors)
799950
Requires:      golang(github.com/sirupsen/logrus)
799950
Requires:      golang(github.com/ulule/deepcopier)
799950
Requires:      golang(golang.org/x/crypto/ssh/terminal)
799950
Requires:      golang(golang.org/x/sys/unix)
799950
Requires:      golang(k8s.io/apimachinery/pkg/util/wait)
799950
Requires:      golang(k8s.io/client-go/tools/remotecommand)
799950
Requires:      golang(k8s.io/kubernetes/pkg/kubelet/container)
799950
799950
Provides:      golang(%{import_path}/cmd/%{name}/docker) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/cmd/%{name}/formats) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/libkpod) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/libpod) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/libpod/common) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/libpod/driver) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/libpod/layers) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/pkg/annotations) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/pkg/chrootuser) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/pkg/registrar) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/pkg/storage) = %{version}-%{release}
799950
Provides:      golang(%{import_path}/utils) = %{version}-%{release}
799950
799950
%description -n  libpod-devel
799950
%{summary}
799950
799950
This package contains library source intended for
799950
building other packages which use import path with
799950
%{import_path} prefix.
799950
%endif
799950
799950
%if 0%{?with_unit_test} && 0%{?with_devel}
799950
%package unit-test-devel
799950
Summary:         Unit tests for %{name} package
799950
%if 0%{?with_check}
799950
#Here comes all BuildRequires: PACKAGE the unit tests
799950
#in %%check section need for running
799950
%endif
799950
799950
# test subpackage tests code from devel subpackage
799950
Requires:        %{name}-devel = %{version}-%{release}
799950
799950
%if 0%{?with_check} && ! 0%{?with_bundled}
799950
BuildRequires: golang(github.com/stretchr/testify/assert)
799950
BuildRequires: golang(github.com/urfave/cli)
799950
%endif
799950
799950
Requires:      golang(github.com/stretchr/testify/assert)
799950
Requires:      golang(github.com/urfave/cli)
799950
799950
%description unit-test-devel
799950
%{summary}
799950
libpod provides a library for applications looking to use the Container Pod concept popularized by Kubernetes.
799950
799950
This package contains unit tests for project
799950
providing packages with %{import_path} prefix.
799950
%endif
799950
799950
%package -n containernetworking-plugins
799950
Version: 0.7.0
799950
Summary: Libraries for writing CNI plugin
799950
License: ASL 2.0
799950
URL: %{git_cni}
799950
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
799950
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
799950
BuildRequires: go-md2man
799950
799950
%description -n containernetworking-plugins
799950
The CNI (Container Network Interface) project consists of a specification
799950
and libraries for writing plugins to configure network interfaces in Linux
799950
containers, along with a number of supported plugins. CNI concerns itself
799950
only with network connectivity of containers and removing allocated resources
799950
when the container is deleted.
799950
799950
%prep
799950
%autosetup -Sgit -n %{repo}-%{commit}
799950
sed -i '/\/bin\/bash/d' completions/bash/%{name}
799950
799950
# untar cri-o
799950
tar zxf %{SOURCE1}
799950
799950
# untar containernetworking-plugins
799950
tar zxf %{SOURCE2}
799950
799950
%build
799950
mkdir -p $(pwd)/_build
799950
pushd $(pwd)/_build
799950
mkdir -p src/%{provider}.%{provider_tld}/%{project}
799950
ln -s ../../../../ src/%{import_path}
799950
popd
799950
ln -s vendor src
799950
export GOPATH=%{gopath}:$(pwd)/_build
799950
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) containers_image_ostree_stub"
799950
799950
GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name}
799950
#GOPATH=%{_prefix} make docs
799950
make GOPATH=%{buildroot} docs
799950
799950
# build conmon
799950
pushd cri-o-%{commit_conmon}
799950
mkdir _output
799950
pushd _output
799950
mkdir -p src/%{provider}.%{provider_tld}/{kubernetes-incubator,opencontainers}
799950
ln -s $(dirs +1 -l) src/%{import_path_conmon}
799950
popd
799950
799950
ln -s vendor src
799950
export GOPATH=$(pwd)/_output:$(pwd):%{gopath}
799950
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub"
799950
BUILDTAGS=$BUILDTAGS make conmon
799950
popd
799950
799950
pushd plugins-%{commit_cni}
799950
cp %{SOURCE3} .
799950
ln -s vendor src
799950
mkdir _build
799950
pushd _build
799950
mkdir -p src/%{provider}.%{provider_tld}/containernetworking
799950
ln -s $(dirs +1 -l) src/%{import_path_cni}
799950
popd
799950
799950
export GOPATH=%{gopath}:$(pwd)/_build:$(pwd)
799950
GOPATH=$GOPATH %gobuild -o bin/bridge %{import_path_cni}/plugins/main/bridge
799950
GOPATH=$GOPATH %gobuild -o bin/host-device %{import_path_cni}/plugins/main/host-device
799950
GOPATH=$GOPATH %gobuild -o bin/ipvlan %{import_path_cni}/plugins/main/ipvlan
799950
GOPATH=$GOPATH %gobuild -o bin/loopback %{import_path_cni}/plugins/main/loopback
799950
GOPATH=$GOPATH %gobuild -o bin/macvlan %{import_path_cni}/plugins/main/macvlan
799950
GOPATH=$GOPATH %gobuild -o bin/ptp %{import_path_cni}/plugins/main/ptp
799950
GOPATH=$GOPATH %gobuild -o bin/vlan %{import_path_cni}/plugins/main/vlan
799950
GOPATH=$GOPATH %gobuild -o bin/flannel %{import_path_cni}/plugins/meta/flannel
799950
GOPATH=$GOPATH %gobuild -o bin/portmap %{import_path_cni}/plugins/meta/portmap
799950
GOPATH=$GOPATH %gobuild -o bin/tuning %{import_path_cni}/plugins/meta/tuning
799950
GOPATH=$GOPATH %gobuild -o bin/dhcp %{import_path_cni}/plugins/ipam/dhcp
799950
GOPATH=$GOPATH %gobuild -o bin/host-local %{import_path_cni}/plugins/ipam/host-local
799950
GOPATH=$GOPATH %gobuild -o bin/sample %{import_path_cni}/plugins/sample
799950
popd
799950
799950
%install
799950
%make_install PREFIX=%{buildroot}%{_prefix} install install.completions
799950
799950
# install libpod.conf
799950
install -dp %{buildroot}%{_datadir}/containers
799950
install -p -m 644 %{repo}.conf %{buildroot}%{_datadir}/containers
799950
799950
# install conmon
799950
install -dp %{buildroot}%{_libexecdir}/%{name}
799950
install -p -m 755 cri-o-%{commit_conmon}/bin/conmon %{buildroot}%{_libexecdir}/%{name}
799950
799950
# install containernetworking-plugins
799950
install -d -p %{buildroot}%{_libexecdir}/cni/
799950
install -p -m 0755 plugins-%{commit_cni}/bin/* %{buildroot}/%{_libexecdir}/cni
799950
799950
# source codes for building projects
799950
%if 0%{?with_devel}
799950
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
799950
799950
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
799950
# find all *.go but no *_test.go files and generate devel.file-list
799950
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do
799950
    dirprefix=$(dirname $file)
799950
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
799950
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
799950
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
799950
799950
    while [ "$dirprefix" != "." ]; do
799950
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
799950
        dirprefix=$(dirname $dirprefix)
799950
    done
799950
done
799950
%endif
799950
799950
# testing files for this project
799950
%if 0%{?with_unit_test} && 0%{?with_devel}
799950
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
799950
# find all *_test.go files and generate unit-test-devel.file-list
799950
for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
799950
    dirprefix=$(dirname $file)
799950
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
799950
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
799950
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
799950
799950
    while [ "$dirprefix" != "." ]; do
799950
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
799950
        dirprefix=$(dirname $dirprefix)
799950
    done
799950
done
799950
%endif
799950
799950
%if 0%{?with_devel}
799950
sort -u -o devel.file-list devel.file-list
799950
%endif
799950
799950
%check
799950
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
799950
%if ! 0%{?with_bundled}
799950
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
799950
%else
799950
# Since we aren't packaging up the vendor directory we need to link
799950
# back to it somehow. Hack it up so that we can add the vendor
799950
# directory from BUILD dir as a gopath to be searched when executing
799950
# tests from the BUILDROOT dir.
799950
ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
799950
799950
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
799950
%endif
799950
799950
%if ! 0%{?gotest:1}
799950
%global gotest go test
799950
%endif
799950
799950
%gotest %{import_path}/cmd/%{name}
799950
%gotest %{import_path}/libkpod
799950
%gotest %{import_path}/libpod
799950
%gotest %{import_path}/pkg/registrar
799950
%endif
799950
799950
#define license tag if not already defined
799950
%{!?_licensedir:%global license %doc}
799950
799950
%files
799950
%license LICENSE
799950
%doc README.md CONTRIBUTING.md hooks.md install.md code-of-conduct.md transfer.md
799950
%{_bindir}/%{name}
799950
%{_mandir}/man1/*.1*
799950
%{_datadir}/bash-completion/completions/*
799950
%{_libexecdir}/%{name}/conmon
799950
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
799950
%{_datadir}/containers/%{repo}.conf
799950
799950
%if 0%{?with_devel}
799950
%files -n libpod-devel -f devel.file-list
799950
%license LICENSE
799950
%doc README.md CONTRIBUTING.md hooks.md install.md code-of-conduct.md transfer.md
799950
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
799950
%endif
799950
799950
%if 0%{?with_unit_test} && 0%{?with_devel}
799950
%files unit-test-devel -f unit-test-devel.file-list
799950
%license LICENSE
799950
%doc README.md CONTRIBUTING.md hooks.md install.md code-of-conduct.md transfer.md
799950
%endif
799950
799950
%files -n containernetworking-plugins
799950
%license plugins-%{commit_cni}/LICENSE
799950
%doc plugins-%{commit_cni}/*.md
799950
%{_libexecdir}/cni/*
799950
799950
%changelog
799950
* Fri Apr 27 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.4.1-4.gitb51d327
799950
- Resolves: #1572538 - build host-device and portmap plugins
799950
799950
* Thu Apr 12 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.4.1-3.gitb51d327
799950
- correct dep on containernetworking-plugins
799950
799950
* Thu Apr 12 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.4.1-2.gitb51d327
799950
- add containernetworking-plugins v0.7.0 as a subpackage (podman dep)
799950
- release tag for the containernetworking-plugins is actually gotten from
799950
podman release tag.
799950
799950
* Wed Apr 11 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.4.1-1.gitb51d327
799950
- bump to v0.4.1
799950
- built commit b51d327
799950
799950
* Wed Mar 14 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.3-1.dev.gitbc358eb
799950
- built podman commit bc358eb
799950
- built conmon from cri-o commit 712f3b8
799950
799950
* Fri Mar 09 2018 baude <bbaude@redhat.com> - 0.3.2-1.gitf79a39a
799950
- Release 0.3.2-1
799950
799950
* Sun Mar 04 2018 baude <bbaude@redhat.com> - 0.3.1-2.git98b95ff
799950
- Correct RPM version
799950
799950
* Fri Mar 02 2018 baude <bbaude@redhat.com> - 0.3.1-1-gitc187538
799950
- Release 0.3.1-1
799950
799950
* Sun Feb 25 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.2.2-2.git525e3b1
799950
- Build on ARMv7 too (Fedora supports containers on that arch too)
799950
799950
* Fri Feb 23 2018 baude <bbaude@redhat.com> - 0.2.2-1.git525e3b1
799950
- Release 0.2.2
799950
799950
* Fri Feb 16 2018 baude <bbaude@redhat.com> - 0.2.1-1.git3d0100b
799950
- Release 0.2.1
799950
799950
* Wed Feb 14 2018 baude <bbaude@redhat.com> - 0.2-3.git3d0100b
799950
- Add dep for atomic-registries
799950
799950
* Tue Feb 13 2018 baude <bbaude@redhat.com> - 0.2-2.git3d0100b
799950
- Add more 64bit arches
799950
- Add containernetworking-cni dependancy
799950
- Add iptables dependancy
799950
799950
* Mon Feb 12 2018 baude <bbaude@redhat.com> - 0-2.1.git3d0100
799950
- Release 0.2
799950
799950
* Tue Feb 06 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.3.git367213a
799950
- Resolves: #1541554 - first official build
799950
- built commit 367213a
799950
799950
* Fri Feb 02 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.git0387f69
799950
- built commit 0387f69
799950
799950
* Wed Jan 10 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0-0.1.gitc1b2278
799950
- First package for Fedora
799950