2ff135a
# If any of the following macros should be set otherwise,
2ff135a
# you can wrap any of them with the following conditions:
2ff135a
# - %%if 0%%{centos} == 7
2ff135a
# - %%if 0%%{?rhel} == 7
2ff135a
# - %%if 0%%{?fedora} == 23
2ff135a
# Or just test for particular distribution:
2ff135a
# - %%if 0%%{centos}
2ff135a
# - %%if 0%%{?rhel}
2ff135a
# - %%if 0%%{?fedora}
2ff135a
#
2ff135a
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
2ff135a
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
2ff135a
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
2ff135a
2ff135a
# Generate devel rpm
2ff135a
%global with_devel 0
2ff135a
# Build project from bundled dependencies
2ff135a
%global with_bundled 1
2ff135a
# Build with debug info rpm
2ff135a
%global with_debug 1
2ff135a
# Run tests in check section
2ff135a
%global with_check 0
2ff135a
# Generate unit-test rpm
2ff135a
%global with_unit_test 0
2ff135a
f142f8d
%if 0%{?fedora} >= 28
f142f8d
%bcond_without varlink
f142f8d
%else
f142f8d
%bcond_with varlink
f142f8d
%endif
f142f8d
2ff135a
%if 0%{?with_debug}
f142f8d
%global _find_debuginfo_dwz_opts %{nil}
2ff135a
%global _dwz_low_mem_die_limit 0
2ff135a
%else
2ff135a
%global debug_package   %{nil}
2ff135a
%endif
2ff135a
2ff135a
# %if ! 0% {?gobuild:1}
2ff135a
%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 %{?**};
2ff135a
#% endif
2ff135a
c40129f
%global provider        github
c40129f
%global provider_tld    com
c40129f
%global project         projectatomic
c40129f
%global repo            libpod
2ff135a
# https://github.com/projectatomic/libpod
2ff135a
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
c40129f
%global import_path     %{provider_prefix}
c40129f
%global git_podman      https://%{provider}.%{provider_tld}/%{project}/%{repo}
c40129f
%global commit          72c0b4f1e2a4a4ceb629e65837f2efe6496c387d
c40129f
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
c40129f
c40129f
%global import_path_conmon      github.com/kubernetes-incubator/cri-o
c40129f
%global git_conmon      https://%{import_path_conmon}
c40129f
%global commit_conmon   54478a2bafbc7d30691712bb8c1c32fbeb918a0c
c40129f
%global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7})
c40129f
c40129f
Name:           podman
c40129f
Version:        0.6.2
c40129f
Release:        10.git%{shortcommit}%{?dist}
c40129f
Summary:        Manage Pods, Containers and Container Images
c40129f
License:        ASL 2.0
c40129f
URL:            %{git_podman}
c40129f
Source0:        %{git_podman}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
c40129f
Source1:        %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz
c40129f
2ff135a
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
2ff135a
#ExclusiveArch:  %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}}
37c2c1e
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64
2ff135a
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
c40129f
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
c40129f
BuildRequires:  btrfs-progs-devel
c40129f
BuildRequires:  device-mapper-devel
c40129f
BuildRequires:  glib2-devel
c40129f
BuildRequires:  glibc-devel
c40129f
BuildRequires:  glibc-static
c40129f
BuildRequires:  git
c40129f
BuildRequires:  go-md2man
c40129f
BuildRequires:  gpgme-devel
c40129f
BuildRequires:  libassuan-devel
c40129f
BuildRequires:  libgpg-error-devel
c40129f
BuildRequires:  libseccomp-devel
c40129f
BuildRequires:  libselinux-devel
c40129f
BuildRequires:  pkgconfig
c40129f
Requires:       runc
c40129f
Requires:       skopeo-containers
c40129f
# can't use default conmon right now, so we ship our own
c40129f
#Requires:       conmon
c40129f
Requires:       containernetworking-cni > 0.6
c40129f
Requires:       iptables
c40129f
Requires:       atomic-registries
c40129f
Requires:       oci-systemd-hook
2ff135a
2ff135a
# vendored libraries
62d028e
# awk '{print "Provides: bundled(golang("$1")) = "$2}' vendor.conf | sort
2ff135a
# [thanks to Carl George <carl@george.computer> for containerd.spec]
2ff135a
Provides: bundled(golang(github.com/asaskevich/govalidator)) = v6
2ff135a
Provides: bundled(golang(github.com/Azure/go-ansiterm)) = 19f72df4d05d31cbe1c56bfc8045c96babff6c7e
2ff135a
Provides: bundled(golang(github.com/beorn7/perks)) = 3ac7bf7a47d159a033b107610db8a1b6575507a4
2ff135a
Provides: bundled(golang(github.com/blang/semver)) = v3.5.0
2ff135a
Provides: bundled(golang(github.com/buger/goterm)) = 2f8dfbc7dbbff5dd1d391ed91482c24df243b2d3
2ff135a
Provides: bundled(golang(github.com/BurntSushi/toml)) = v0.2.0
2ff135a
Provides: bundled(golang(github.com/containerd/cgroups)) = 7a5fdd8330119dc70d850260db8f3594d89d6943
2ff135a
Provides: bundled(golang(github.com/containerd/continuity)) = master
2ff135a
Provides: bundled(golang(github.com/containernetworking/cni)) = v0.4.0
62d028e
Provides: bundled(golang(github.com/containers/image)) = b129a8413fd1e8c53379acbbacfc7b667070ae50
62d028e
Provides: bundled(golang(github.com/containers/storage)) = 1e5ce40cdb84ab66e26186435b1273e04b879fef
2ff135a
Provides: bundled(golang(github.com/coreos/go-systemd)) = v14
62d028e
Provides: bundled(golang(github.com/cyphar/filepath-securejoin)) = v0.2.1
2ff135a
Provides: bundled(golang(github.com/davecgh/go-spew)) = v1.1.0
2ff135a
Provides: bundled(golang(github.com/dgrijalva/jwt-go)) = v3.0.0
2ff135a
Provides: bundled(golang(github.com/docker/distribution)) = 7a8efe719e55bbfaff7bc5718cdf0ed51ca821df
2ff135a
Provides: bundled(golang(github.com/docker/docker)) = ce452fb72ffcdb7605ce98bde9302238f47c63c5
2ff135a
Provides: bundled(golang(github.com/docker/docker-credential-helpers)) = d68f9aeca33f5fd3f08eeae5e9d175edf4e731d1
2ff135a
Provides: bundled(golang(github.com/docker/go-connections)) = 3ede32e2033de7505e6500d6c868c2b9ed9f169d
2ff135a
Provides: bundled(golang(github.com/docker/go-units)) = v0.3.2
2ff135a
Provides: bundled(golang(github.com/docker/libtrust)) = aabc10ec26b754e797f9028f4589c5b7bd90dc20
2ff135a
Provides: bundled(golang(github.com/docker/spdystream)) = ed496381df8283605c435b86d4fdd6f4f20b8c6e
2ff135a
Provides: bundled(golang(github.com/emicklei/go-restful)) = ff4f55a206334ef123e4f79bbf348980da81ca46
2ff135a
Provides: bundled(golang(github.com/emicklei/go-restful-swagger12)) = 1.0.1
2ff135a
Provides: bundled(golang(github.com/exponent-io/jsonpath)) = d6023ce2651d8eafb5c75bb0c7167536102ec9f5
2ff135a
Provides: bundled(golang(github.com/fatih/camelcase)) = f6a740d52f961c60348ebb109adde9f4635d7540
2ff135a
Provides: bundled(golang(github.com/ghodss/yaml)) = 04f313413ffd65ce25f2541bfd2b2ceec5c0908c
2ff135a
Provides: bundled(golang(github.com/godbus/dbus)) = a389bdde4dd695d414e47b755e95e72b7826432c
2ff135a
Provides: bundled(golang(github.com/gogo/protobuf)) = v0.3
2ff135a
Provides: bundled(golang(github.com/golang/glog)) = 23def4e6c14b4da8ac2ed8007337bc5eb5007998
2ff135a
Provides: bundled(golang(github.com/golang/groupcache)) = b710c8433bd175204919eb38776e944233235d03
2ff135a
Provides: bundled(golang(github.com/golang/protobuf)) = 748d386b5c1ea99658fd69fe9f03991ce86a90c1
2ff135a
Provides: bundled(golang(github.com/google/gofuzz)) = 44d81051d367757e1c7c6a5a86423ece9afcf63c
2ff135a
Provides: bundled(golang(github.com/go-openapi/analysis)) = b44dc874b601d9e4e2f6e19140e794ba24bead3b
2ff135a
Provides: bundled(golang(github.com/go-openapi/errors)) = d24ebc2075bad502fac3a8ae27aa6dd58e1952dc
2ff135a
Provides: bundled(golang(github.com/go-openapi/jsonpointer)) = 779f45308c19820f1a69e9a4cd965f496e0da10f
2ff135a
Provides: bundled(golang(github.com/go-openapi/jsonreference)) = 36d33bfe519efae5632669801b180bf1a245da3b
2ff135a
Provides: bundled(golang(github.com/go-openapi/loads)) = 18441dfa706d924a39a030ee2c3b1d8d81917b38
2ff135a
Provides: bundled(golang(github.com/go-openapi/spec)) = 6aced65f8501fe1217321abf0749d354824ba2ff
2ff135a
Provides: bundled(golang(github.com/go-openapi/strfmt)) = 93a31ef21ac23f317792fff78f9539219dd74619
2ff135a
Provides: bundled(golang(github.com/go-openapi/swag)) = 1d0bd113de87027671077d3c71eb3ac5d7dbba72
2ff135a
Provides: bundled(golang(github.com/gorilla/context)) = v1.1
2ff135a
Provides: bundled(golang(github.com/gorilla/mux)) = v1.3.0
2ff135a
Provides: bundled(golang(github.com/hashicorp/errwrap)) = 7554cd9344cec97297fa6649b055a8c98c2a1e55
2ff135a
Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0a025b7e63adc15a622f29b0b2c4c3848243bbf6
2ff135a
Provides: bundled(golang(github.com/hashicorp/go-multierror)) = 83588e72410abfbe4df460eeb6f30841ae47d4c4
2ff135a
Provides: bundled(golang(github.com/imdario/mergo)) = 0.2.2
2ff135a
Provides: bundled(golang(github.com/juju/ratelimit)) = 5b9ff866471762aa2ab2dced63c9fb6f53921342
2ff135a
Provides: bundled(golang(github.com/kr/pty)) = v1.0.0
2ff135a
Provides: bundled(golang(github.com/mailru/easyjson)) = 99e922cf9de1bc0ab38310c277cff32c2147e747
2ff135a
Provides: bundled(golang(github.com/mattn/go-runewidth)) = v0.0.1
2ff135a
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
2ff135a
Provides: bundled(golang(github.com/Microsoft/go-winio)) = 78439966b38d69bf38227fbf57ac8a6fee70f69a
2ff135a
Provides: bundled(golang(github.com/Microsoft/hcsshim)) = 43f9725307998e09f2e3816c2c0c36dc98f0c982
2ff135a
Provides: bundled(golang(github.com/mistifyio/go-zfs)) = v2.1.1
2ff135a
Provides: bundled(golang(github.com/mitchellh/mapstructure)) = d0303fe809921458f417bcf828397a65db30a7e4
2ff135a
Provides: bundled(golang(github.com/mtrmac/gpgme)) = b2432428689ca58c2b8e8dea9449d3295cf96fc9
2ff135a
Provides: bundled(golang(github.com/opencontainers/go-digest)) = v1.0.0-rc0
2ff135a
Provides: bundled(golang(github.com/opencontainers/image-spec)) = v1.0.0
62d028e
Provides: bundled(golang(github.com/opencontainers/runc)) = 6e15bc3f92fd4c58b3285e8f27eaeb6b22d62920
2ff135a
Provides: bundled(golang(github.com/opencontainers/runtime-spec)) = v1.0.0
2ff135a
Provides: bundled(golang(github.com/opencontainers/runtime-tools)) = 625e2322645b151a7cbb93a8b42920933e72167f
2ff135a
Provides: bundled(golang(github.com/opencontainers/selinux)) = b29023b86e4a69d1b46b7e7b4e2b6fda03f0b9cd
2ff135a
Provides: bundled(golang(github.com/ostreedev/ostree-go)) = master
2ff135a
Provides: bundled(golang(github.com/pkg/errors)) = v0.8.0
2ff135a
Provides: bundled(golang(github.com/pmezard/go-difflib)) = 792786c7400a136282c1664665ae0a8db921c6c2
2ff135a
Provides: bundled(golang(github.com/pquerna/ffjson)) = d49c2bc1aa135aad0c6f4fc2056623ec78f5d5ac
2ff135a
Provides: bundled(golang(github.com/prometheus/client_golang)) = e7e903064f5e9eb5da98208bae10b475d4db0f8c
2ff135a
Provides: bundled(golang(github.com/prometheus/client_model)) = fa8ad6fec33561be4280a8f0514318c79d7f6cb6
2ff135a
Provides: bundled(golang(github.com/prometheus/common)) = 13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207
2ff135a
Provides: bundled(golang(github.com/prometheus/procfs)) = 65c1f6f8f0fc1e2185eb9863a3bc751496404259
2ff135a
Provides: bundled(golang(github.com/PuerkitoBio/purell)) = v1.1.0
2ff135a
Provides: bundled(golang(github.com/PuerkitoBio/urlesc)) = 5bd2802263f21d8788851d5305584c82a5c75d7e
2ff135a
Provides: bundled(golang(github.com/renstrom/dedent)) = v1.0.0
2ff135a
Provides: bundled(golang(github.com/seccomp/libseccomp-golang)) = v0.9.0
2ff135a
Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.0.0
2ff135a
Provides: bundled(golang(github.com/spf13/pflag)) = 9ff6c6923cfffbcd502984b8e0c80539a94968b7
2ff135a
Provides: bundled(golang(github.com/stretchr/testify)) = 4d4bfba8f1d1027c4fdbe371823030df51419987
2ff135a
Provides: bundled(golang(github.com/syndtr/gocapability)) = e7cb7fa329f456b3855136a2642b197bad7366ba
2ff135a
Provides: bundled(golang(github.com/tchap/go-patricia)) = v2.2.6
2ff135a
Provides: bundled(golang(github.com/ugorji/go)) = d23841a297e5489e787e72fceffabf9d2994b52a
2ff135a
Provides: bundled(golang(github.com/urfave/cli)) = 39908eb08fee7c10d842622a114a5c133fb0a3c6
2ff135a
Provides: bundled(golang(github.com/vbatts/tar-split)) = v0.10.2
2ff135a
Provides: bundled(golang(github.com/vishvananda/netlink)) = master
2ff135a
Provides: bundled(golang(github.com/vishvananda/netns)) = master
2ff135a
Provides: bundled(golang(github.com/xeipuuv/gojsonpointer)) = master
2ff135a
Provides: bundled(golang(github.com/xeipuuv/gojsonreference)) = master
2ff135a
Provides: bundled(golang(github.com/xeipuuv/gojsonschema)) = master
2ff135a
Provides: bundled(golang(golang.org/x/crypto)) = 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2
2ff135a
Provides: bundled(golang(golang.org/x/net)) = c427ad74c6d7a814201695e9ffde0c5d400a7674
2ff135a
Provides: bundled(golang(golang.org/x/sys)) = 9aade4d3a3b7e6d876cd3823ad20ec45fc035402
2ff135a
Provides: bundled(golang(golang.org/x/text)) = f72d8390a633d5dfb0cc84043294db9f6c935756
2ff135a
Provides: bundled(golang(google.golang.org/grpc)) = v1.0.4
2ff135a
Provides: bundled(golang(gopkg.in/cheggaaa/pb.v1)) = v1.0.7
2ff135a
Provides: bundled(golang(gopkg.in/inf.v0)) = v0.9.0
2ff135a
Provides: bundled(golang(gopkg.in/mgo.v2)) = v2
2ff135a
Provides: bundled(golang(gopkg.in/yaml.v2)) = v2
2ff135a
2ff135a
%description
2ff135a
%{summary}
c40129f
libpod provides a library for applications looking to use
2ff135a
the Container Pod concept popularized by Kubernetes.
2ff135a
f142f8d
%if %{with varlink}
f142f8d
%package -n python3-%{name}
f142f8d
BuildArch: noarch
f142f8d
BuildRequires: python3-devel
f142f8d
BuildRequires: python3-setuptools
f142f8d
BuildRequires: python3-varlink
f142f8d
Requires: python3-varlink
f142f8d
Provides: python3-%{name} = %{version}-%{release}
f142f8d
Summary: Python 3 bindings for %{name}
f142f8d
f142f8d
%description -n python3-%{name}
f142f8d
This package contains Python 3 bindings for %{name}.
f142f8d
%endif # varlink
f142f8d
2ff135a
%if 0%{?with_devel}
c40129f
%package -n libpod-devel
2ff135a
Summary:       Library for applications looking to use Container Pods
2ff135a
BuildArch:     noarch
2ff135a
2ff135a
%if 0%{?with_check} && ! 0%{?with_bundled}
2ff135a
BuildRequires: golang(github.com/BurntSushi/toml)
2ff135a
BuildRequires: golang(github.com/containerd/cgroups)
2ff135a
BuildRequires: golang(github.com/containernetworking/plugins/pkg/ns)
2ff135a
BuildRequires: golang(github.com/containers/image/copy)
2ff135a
BuildRequires: golang(github.com/containers/image/directory)
2ff135a
BuildRequires: golang(github.com/containers/image/docker)
2ff135a
BuildRequires: golang(github.com/containers/image/docker/archive)
2ff135a
BuildRequires: golang(github.com/containers/image/docker/reference)
2ff135a
BuildRequires: golang(github.com/containers/image/docker/tarfile)
2ff135a
BuildRequires: golang(github.com/containers/image/image)
2ff135a
BuildRequires: golang(github.com/containers/image/oci/archive)
2ff135a
BuildRequires: golang(github.com/containers/image/pkg/strslice)
2ff135a
BuildRequires: golang(github.com/containers/image/pkg/sysregistries)
2ff135a
BuildRequires: golang(github.com/containers/image/signature)
2ff135a
BuildRequires: golang(github.com/containers/image/storage)
2ff135a
BuildRequires: golang(github.com/containers/image/tarball)
2ff135a
BuildRequires: golang(github.com/containers/image/transports/alltransports)
2ff135a
BuildRequires: golang(github.com/containers/image/types)
2ff135a
BuildRequires: golang(github.com/containers/storage)
2ff135a
BuildRequires: golang(github.com/containers/storage/pkg/archive)
2ff135a
BuildRequires: golang(github.com/containers/storage/pkg/idtools)
2ff135a
BuildRequires: golang(github.com/containers/storage/pkg/reexec)
2ff135a
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
2ff135a
BuildRequires: golang(github.com/cri-o/ocicni/pkg/ocicni)
2ff135a
BuildRequires: golang(github.com/docker/distribution/reference)
2ff135a
BuildRequires: golang(github.com/docker/docker/daemon/caps)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/mount)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/namesgenerator)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/stringid)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/system)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/term)
2ff135a
BuildRequires: golang(github.com/docker/docker/pkg/truncindex)
2ff135a
BuildRequires: golang(github.com/ghodss/yaml)
2ff135a
BuildRequires: golang(github.com/godbus/dbus)
2ff135a
BuildRequires: golang(github.com/mattn/go-sqlite3)
2ff135a
BuildRequires: golang(github.com/mrunalp/fileutils)
2ff135a
BuildRequires: golang(github.com/opencontainers/go-digest)
2ff135a
BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1)
2ff135a
BuildRequires: golang(github.com/opencontainers/runc/libcontainer)
2ff135a
BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go)
2ff135a
BuildRequires: golang(github.com/opencontainers/runtime-tools/generate)
2ff135a
BuildRequires: golang(github.com/opencontainers/selinux/go-selinux)
2ff135a
BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label)
2ff135a
BuildRequires: golang(github.com/pkg/errors)
2ff135a
BuildRequires: golang(github.com/sirupsen/logrus)
2ff135a
BuildRequires: golang(github.com/ulule/deepcopier)
2ff135a
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
2ff135a
BuildRequires: golang(golang.org/x/sys/unix)
2ff135a
BuildRequires: golang(k8s.io/apimachinery/pkg/util/wait)
2ff135a
BuildRequires: golang(k8s.io/client-go/tools/remotecommand)
2ff135a
BuildRequires: golang(k8s.io/kubernetes/pkg/kubelet/container)
2ff135a
%endif
2ff135a
2ff135a
Requires:      golang(github.com/BurntSushi/toml)
2ff135a
Requires:      golang(github.com/containerd/cgroups)
2ff135a
Requires:      golang(github.com/containernetworking/plugins/pkg/ns)
2ff135a
Requires:      golang(github.com/containers/image/copy)
2ff135a
Requires:      golang(github.com/containers/image/directory)
2ff135a
Requires:      golang(github.com/containers/image/docker)
2ff135a
Requires:      golang(github.com/containers/image/docker/archive)
2ff135a
Requires:      golang(github.com/containers/image/docker/reference)
2ff135a
Requires:      golang(github.com/containers/image/docker/tarfile)
2ff135a
Requires:      golang(github.com/containers/image/image)
2ff135a
Requires:      golang(github.com/containers/image/oci/archive)
2ff135a
Requires:      golang(github.com/containers/image/pkg/strslice)
2ff135a
Requires:      golang(github.com/containers/image/pkg/sysregistries)
2ff135a
Requires:      golang(github.com/containers/image/signature)
2ff135a
Requires:      golang(github.com/containers/image/storage)
2ff135a
Requires:      golang(github.com/containers/image/tarball)
2ff135a
Requires:      golang(github.com/containers/image/transports/alltransports)
2ff135a
Requires:      golang(github.com/containers/image/types)
2ff135a
Requires:      golang(github.com/containers/storage)
2ff135a
Requires:      golang(github.com/containers/storage/pkg/archive)
2ff135a
Requires:      golang(github.com/containers/storage/pkg/idtools)
2ff135a
Requires:      golang(github.com/containers/storage/pkg/reexec)
2ff135a
Requires:      golang(github.com/coreos/go-systemd/dbus)
2ff135a
Requires:      golang(github.com/cri-o/ocicni/pkg/ocicni)
2ff135a
Requires:      golang(github.com/docker/distribution/reference)
2ff135a
Requires:      golang(github.com/docker/docker/daemon/caps)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/mount)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/namesgenerator)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/stringid)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/system)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/term)
2ff135a
Requires:      golang(github.com/docker/docker/pkg/truncindex)
2ff135a
Requires:      golang(github.com/ghodss/yaml)
2ff135a
Requires:      golang(github.com/godbus/dbus)
2ff135a
Requires:      golang(github.com/mattn/go-sqlite3)
2ff135a
Requires:      golang(github.com/mrunalp/fileutils)
2ff135a
Requires:      golang(github.com/opencontainers/go-digest)
2ff135a
Requires:      golang(github.com/opencontainers/image-spec/specs-go/v1)
2ff135a
Requires:      golang(github.com/opencontainers/runc/libcontainer)
2ff135a
Requires:      golang(github.com/opencontainers/runtime-spec/specs-go)
2ff135a
Requires:      golang(github.com/opencontainers/runtime-tools/generate)
2ff135a
Requires:      golang(github.com/opencontainers/selinux/go-selinux)
2ff135a
Requires:      golang(github.com/opencontainers/selinux/go-selinux/label)
2ff135a
Requires:      golang(github.com/pkg/errors)
2ff135a
Requires:      golang(github.com/sirupsen/logrus)
2ff135a
Requires:      golang(github.com/ulule/deepcopier)
2ff135a
Requires:      golang(golang.org/x/crypto/ssh/terminal)
2ff135a
Requires:      golang(golang.org/x/sys/unix)
2ff135a
Requires:      golang(k8s.io/apimachinery/pkg/util/wait)
2ff135a
Requires:      golang(k8s.io/client-go/tools/remotecommand)
2ff135a
Requires:      golang(k8s.io/kubernetes/pkg/kubelet/container)
2ff135a
2ff135a
Provides:      golang(%{import_path}/cmd/%{name}/docker) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/cmd/%{name}/formats) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/libkpod) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/libpod) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/libpod/common) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/libpod/driver) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/libpod/layers) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/pkg/annotations) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/pkg/chrootuser) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/pkg/registrar) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/pkg/storage) = %{version}-%{release}
2ff135a
Provides:      golang(%{import_path}/utils) = %{version}-%{release}
2ff135a
2ff135a
%description -n  libpod-devel
2ff135a
%{summary}
2ff135a
2ff135a
This package contains library source intended for
2ff135a
building other packages which use import path with
2ff135a
%{import_path} prefix.
2ff135a
%endif
2ff135a
2ff135a
%if 0%{?with_unit_test} && 0%{?with_devel}
2ff135a
%package unit-test-devel
2ff135a
Summary:         Unit tests for %{name} package
2ff135a
%if 0%{?with_check}
2ff135a
#Here comes all BuildRequires: PACKAGE the unit tests
2ff135a
#in %%check section need for running
2ff135a
%endif
2ff135a
2ff135a
# test subpackage tests code from devel subpackage
2ff135a
Requires:        %{name}-devel = %{version}-%{release}
2ff135a
2ff135a
%if 0%{?with_check} && ! 0%{?with_bundled}
2ff135a
BuildRequires: golang(github.com/stretchr/testify/assert)
2ff135a
BuildRequires: golang(github.com/urfave/cli)
2ff135a
%endif
2ff135a
2ff135a
Requires:      golang(github.com/stretchr/testify/assert)
2ff135a
Requires:      golang(github.com/urfave/cli)
2ff135a
2ff135a
%description unit-test-devel
2ff135a
%{summary}
2ff135a
libpod provides a library for applications looking to use the Container Pod concept popularized by Kubernetes.
2ff135a
2ff135a
This package contains unit tests for project
2ff135a
providing packages with %{import_path} prefix.
2ff135a
%endif
2ff135a
2ff135a
%prep
c40129f
%autosetup -Sgit -n %{repo}-%{commit}
f142f8d
sed -i '/\/bin\/env/d' completions/bash/%{name}
c40129f
c40129f
# untar cri-o
c40129f
tar zxf %{SOURCE1}
62d028e
2ff135a
%build
2ff135a
mkdir _build
2ff135a
pushd _build
2ff135a
mkdir -p src/%{provider}.%{provider_tld}/%{project}
2ff135a
ln -s ../../../../ src/%{import_path}
2ff135a
popd
2ff135a
ln -s vendor src
2ff135a
export GOPATH=$(pwd)/_build:$(pwd):$(pwd):%{gopath}
2ff135a
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) containers_image_ostree_stub"
2ff135a
cdddfb5
GOPATH=$GOPATH go generate ./cmd/podman/varlink/...
2ff135a
GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name}
c40129f
BUILDTAGS=$BUILDTAGS make binaries docs
f142f8d
f142f8d
%if %{with varlink}
f142f8d
#untar contents for python-podman
f142f8d
pushd contrib/python/dist
f142f8d
tar zxf %{name}*.tar.gz
f142f8d
popd
f142f8d
%endif # varlink
2ff135a
c40129f
# build conmon
c40129f
pushd cri-o-%{commit_conmon}
c40129f
c40129f
mkdir _output
c40129f
pushd _output
c40129f
mkdir -p src/%{provider}.%{provider_tld}/{kubernetes-incubator,opencontainers}
c40129f
ln -s $(dirs +1 -l) src/%{import_path_conmon}
c40129f
popd
c40129f
c40129f
ln -s vendor src
c40129f
export GOPATH=$(pwd)/_output:$(pwd):%{gopath}
c40129f
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub"
c40129f
BUILDTAGS=$BUILDTAGS make -C conmon
c40129f
popd
c40129f
2ff135a
%install
ea40d9e
install -dp %{buildroot}%{_unitdir}
2ff135a
%make_install PREFIX=%{buildroot}%{_prefix} install install.completions
2ff135a
f142f8d
%if %{with varlink}
f142f8d
#install python-podman
f142f8d
pushd contrib/python
f142f8d
%{__python3} setup.py install --root %{buildroot}
f142f8d
popd
f142f8d
%endif # varlink
f142f8d
62d028e
# install libpod.conf
62d028e
install -dp %{buildroot}%{_datadir}/containers
62d028e
install -p -m 644 %{repo}.conf %{buildroot}%{_datadir}/containers
62d028e
c40129f
# install conmon
c40129f
install -dp %{buildroot}%{_libexecdir}/%{name}
c40129f
install -p -m 755 cri-o-%{commit_conmon}/bin/conmon %{buildroot}%{_libexecdir}/%{name}
c40129f
2ff135a
# source codes for building projects
2ff135a
%if 0%{?with_devel}
2ff135a
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
2ff135a
2ff135a
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
2ff135a
# find all *.go but no *_test.go files and generate devel.file-list
2ff135a
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do
2ff135a
    dirprefix=$(dirname $file)
2ff135a
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
2ff135a
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
2ff135a
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
2ff135a
2ff135a
    while [ "$dirprefix" != "." ]; do
2ff135a
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
2ff135a
        dirprefix=$(dirname $dirprefix)
2ff135a
    done
2ff135a
done
2ff135a
%endif
2ff135a
2ff135a
# testing files for this project
2ff135a
%if 0%{?with_unit_test} && 0%{?with_devel}
2ff135a
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
2ff135a
# find all *_test.go files and generate unit-test-devel.file-list
2ff135a
for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
2ff135a
    dirprefix=$(dirname $file)
2ff135a
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
2ff135a
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
2ff135a
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
2ff135a
2ff135a
    while [ "$dirprefix" != "." ]; do
2ff135a
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
2ff135a
        dirprefix=$(dirname $dirprefix)
2ff135a
    done
2ff135a
done
2ff135a
%endif
2ff135a
2ff135a
%if 0%{?with_devel}
2ff135a
sort -u -o devel.file-list devel.file-list
2ff135a
%endif
2ff135a
2ff135a
%check
2ff135a
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
2ff135a
%if ! 0%{?with_bundled}
2ff135a
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
2ff135a
%else
2ff135a
# Since we aren't packaging up the vendor directory we need to link
2ff135a
# back to it somehow. Hack it up so that we can add the vendor
2ff135a
# directory from BUILD dir as a gopath to be searched when executing
2ff135a
# tests from the BUILDROOT dir.
2ff135a
ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
2ff135a
2ff135a
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
2ff135a
%endif
2ff135a
2ff135a
%if ! 0%{?gotest:1}
2ff135a
%global gotest go test
2ff135a
%endif
c40129f
2ff135a
%gotest %{import_path}/cmd/%{name}
2ff135a
%gotest %{import_path}/libkpod
2ff135a
%gotest %{import_path}/libpod
2ff135a
%gotest %{import_path}/pkg/registrar
2ff135a
%endif
2ff135a
2ff135a
#define license tag if not already defined
2ff135a
%{!?_licensedir:%global license %doc}
2ff135a
2ff135a
%files
2ff135a
%license LICENSE
c40129f
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
2ff135a
%{_bindir}/%{name}
2ff135a
%{_mandir}/man1/*.1*
ea40d9e
%{_mandir}/man5/*.5*
2ff135a
%{_datadir}/bash-completion/completions/*
c40129f
%{_libexecdir}/%{name}/conmon
2ff135a
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
62d028e
%{_datadir}/containers/%{repo}.conf
ea40d9e
%{_unitdir}/io.%{project}.%{name}.service
ea40d9e
%{_unitdir}/io.%{project}.%{name}.socket
c40129f
/usr/lib/tmpfiles.d/podman.conf
2ff135a
f142f8d
%if %{with varlink}
f142f8d
%files -n python3-%{name}
f142f8d
%license LICENSE
c40129f
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
f142f8d
%dir %{python3_sitelib}
f142f8d
%{python3_sitelib}/*
f142f8d
%endif # varlink
f142f8d
2ff135a
%if 0%{?with_devel}
2ff135a
%files -n libpod-devel -f devel.file-list
2ff135a
%license LICENSE
c40129f
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
2ff135a
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
2ff135a
%endif
2ff135a
2ff135a
%if 0%{?with_unit_test} && 0%{?with_devel}
2ff135a
%files unit-test-devel -f unit-test-devel.file-list
2ff135a
%license LICENSE
c40129f
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
2ff135a
%endif
2ff135a
2ff135a
%changelog
c40129f
* Mon Jun 11 2018 Dan Walsh <dwalsh@fedoraproject.org> - 0.6.2-10.git72c0b4f
c40129f
Bump to v0.6.2
55a1235
55a1235
* Fri Jun 08 2018 Dan Walsh <dwalsh@fedoraproject.org> - 0.6.2-8.git72c0b4f
37c2c1e
Bump to v0.6.2
37c2c1e
c40129f
* Fri Jun 01 2018 baude <bbaude@redhat.com> - 0.6.1-1.git3e0ff12
c40129f
- Upstream release 0.6.1
e126b21
c40129f
* Fri May 25 2018 baude <bbaude@redhat.com> - 0.5.4-1.git1f2e2a2
c40129f
- Upstream release 0.5.4
00af058
c40129f
* Sat May 19 2018 baude <bbaude@redhat.com> - 0.5.3-2.gitdc3f9df
c40129f
- Correcting varlink socket paths and tighten security of sockets
4f555ea
c40129f
* Fri May 18 2018 baude <bbaude@redhat.com> - 0.5.3-1.gitdc3f9df
c40129f
- Upstream release 0.5.3
f142f8d
c40129f
* Fri May 11 2018 baude <bbaude@redhat.com> - 0.5.2-1.git4631586
c40129f
- Upstream release 0.5.2
103a163
c40129f
* Fri May 04 2018 baude <bbaude@redhat.com> - 0.5.1-1.gitd0fbfdc
c40129f
- Upstream release 0.5.1
57e6b7c
c40129f
* Tue May 01 2018 baude <bbaude@redhat.com> - 0.4.4-2.git9924956
c40129f
- Do not mount default volumes
c40129f
- Fix varlink systemd service file
a793251
c40129f
* Fri Apr 27 2018 baude <bbaude@redhat.com> - 0.4.3-2.git4c0d8b0
c40129f
- Upstream release 0.4.4
ea40d9e
c40129f
* Fri Apr 20 2018 baude <bbaude@redhat.com> - 0.4.3-1.git4c0d8b0d
c40129f
- Upstream release 0.4.3
44528bb
c40129f
* Fri Apr 13 2018 baude <bbaude@redhat.com> - 0.4.2-1.gitf740ee0b
c40129f
- Upstream release 0.4.2
c40129f
- Update conmon for new console-related features
cb8cb42
c40129f
* Thu Apr 05 2018 baude <bbaude@redhat.com> - 0.4.1-1.gitb51d3270
c40129f
- Upstream release 0.4.1
d5897a3
c40129f
* Tue Apr 3 2018 Dan Walsh <dwalsh@redhat.com> - 0.3.5-2.git712f3b8cf14
c40129f
- Add proper version of conmon
cea7490
c40129f
* Thu Mar 29 2018 baude <bbaude@redhat.com> - 0.3.5-1.git712f3b8cf14
af2c842
- Upstream release 0.3.5
af2c842
c40129f
* Fri Mar 23 2018 baude <bbaude@redhat.com> - 0.3.4-1.git57b403eda155d321d8aa29cfa0085aac8ce28a57
4a4cdc7
- Upstream release 0.3.4
4a4cdc7
2240385
* Fri Mar 16 2018 baude <bbaude@redhat.com> - 0.3.3-2.dev.gitbc358eb
2240385
- Upstream release 0.3.3
2240385
62d028e
* Wed Mar 14 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.3-1.dev.gitbc358eb
62d028e
- built podman commit bc358eb
62d028e
- built conmon from cri-o commit 712f3b8
62d028e
62d028e
* Fri Mar 09 2018 baude <bbaude@redhat.com> - 0.3.2-1.gitf79a39a
e63712a
- Release 0.3.2-1
e63712a
c499127
* Sun Mar 04 2018 baude <bbaude@redhat.com> - 0.3.1-2.git98b95ff
c40129f
- version correction
c499127
c40129f
* Fri Mar 02 2018 baude <bbaude@redhat.com> - 0.3.1-1.gitc187538
622079f
- Release 0.3.1-1
622079f
37c2c1e
* Sun Feb 25 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.2.2-2.git525e3b1
37c2c1e
- Build on ARMv7 too (Fedora supports containers on that arch too)
37c2c1e
e0df418
* Fri Feb 23 2018 baude <bbaude@redhat.com> - 0.2.2-1.git525e3b1
e0df418
- Release 0.2.2
e0df418
b40d779
* Fri Feb 16 2018 baude <bbaude@redhat.com> - 0.2.1-1.git3d0100b
b40d779
- Release 0.2.1
b40d779
6a48eb6
* Wed Feb 14 2018 baude <bbaude@redhat.com> - 0.2-3.git3d0100b
6a48eb6
- Add dep for atomic-registries
6a48eb6
5b3bc51
* Tue Feb 13 2018 baude <bbaude@redhat.com> - 0.2-2.git3d0100b
5b3bc51
- Add more 64bit arches
5b3bc51
- Add containernetworking-cni dependancy
5b3bc51
- Add iptables dependancy
5b3bc51
8b72355
* Mon Feb 12 2018 baude <bbaude@redhat.com> - 0-2.1.git3d0100
8b72355
- Release 0.2
8b72355
2ff135a
* Tue Feb 06 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.3.git367213a
2ff135a
- Resolves: #1541554 - first official build
2ff135a
- built commit 367213a
2ff135a
2ff135a
* Fri Feb 02 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.git0387f69
2ff135a
- built commit 0387f69
2ff135a
2ff135a
* Wed Jan 10 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0-0.1.gitc1b2278
2ff135a
- First package for Fedora
2ff135a