Group: Tools/Docker
License: ASL 2.0
+ExclusiveArch: %{arm}
Source0: %{name}.tar.gz
Source1: %{name}.manifest
Source11: go1.8.3.linux-amd64.tar.gz
BuildRequires: git
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
-Requires: docker-containerd
-Requires: docker-runc
%description
%build
-cd .%docker_path/engine
+cd .%docker_path/
export GOROOT=%{_builddir}/%{name}-%{version}/go
export PATH=$PATH:%{_builddir}/%{name}-%{version}/go/bin
export GOPATH=%{_builddir}/%{name}-%{version}
export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper'
+export CGO_ENABLED=1
go env
-echo 'docker daemon'
-export CGO_ENABLED=1
-AUTO_GOPATH=1 ./hack/make.sh dynbinary
echo 'docker cli'
-cd ../cli
+cd ./cli
make binary
export BUILDTAGS=no_btrfs
cd ../../opencontainers/runc
make all BUILDTAGS=""
+echo 'docker daemon'
+cd ../../docker/engine
+AUTO_GOPATH=1 ./hack/make.sh dynbinary
+
%install
rm -rf %{buildroot}
# install binary