varlink and python-podman only for fedora >= 28

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2018-05-21 19:15:40 +00:00
parent 8337229640
commit 16f08c4988

View File

@ -382,9 +382,11 @@ export GOPATH=$(pwd)/_build:$(pwd):$(pwd):%{gopath}
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) containers_image_ostree_stub" export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) containers_image_ostree_stub"
GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name} GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name}
BUILDTAGS=$BUILDTAGS make binaries docs BUILDTAGS=$BUILDTAGS make %{name} docs
%if %{with varlink} %if %{with varlink}
BUILDTAGS=$BUILDTAGS make varlink_generate python-%{name}
#untar contents for python-podman #untar contents for python-podman
pushd contrib/python/dist pushd contrib/python/dist
tar zxf %{name}*.tar.gz tar zxf %{name}*.tar.gz