#
+# abandoned, since 17.x, use docker-ce.spec
+# https://blog.docker.com/2017/04/introducing-the-moby-project/
+#
# Conditional build:
%bcond_with tests # build without tests
%bcond_with vim # build vim syntax package (bundled in vim 7.4.979-2)
# NOTES
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
-# v1.0.0-rc2-123-gac031b5
-%define runc_commit ac031b5
-# v0.2.3-66-g8517738
-%define containerd_commit 8517738
+# v1.0.0-rc2-133-g9df8b30
+%define runc_commit 9df8b30
+# v0.2.3-85-gaa8187d
+%define containerd_commit aa8187d
# v0.8.0-dev.2-464-g0f53435
%define libnetwork_commit 0f53435
-%define subver -rc1
+#define subver -rc7
Summary: Docker: the open-source application container engine
Name: docker
-Version: 1.13.0
-Release: 0.2
+Version: 1.13.1
+Release: 2
License: Apache v2.0
Group: Applications/System
# https://github.com/docker/docker/releases
-Source0: https://github.com/docker/docker/archive/v%{version}%{subver}/%{name}-%{version}%{subver}.tar.gz
-# Source0-md5: 3e40a95c40182314a5c2ba41f5b7d7d2
+Source0: https://github.com/docker/docker/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 032c39b2390a0f387cdb49bab8c4c712
Source1: https://github.com/docker/runc/archive/%{runc_commit}/runc-%{runc_commit}.tar.gz
-# Source1-md5: 5c22c984bb610dbcd57d11c83125f376
+# Source1-md5: 43ee79eaf575db8a212058c30997e45d
Source2: https://github.com/docker/containerd/archive/%{containerd_commit}/containerd-%{containerd_commit}.tar.gz
-# Source2-md5: f5f0654554164fe3e3433e41955b64f9
+# Source2-md5: 01c58df940b94910996ecb8096fd8b71
Source3: https://github.com/docker/libnetwork/archive/%{libnetwork_commit}/libnetwork-%{libnetwork_commit}.tar.gz
# Source3-md5: 7cfbfe76355aae3577c77a6a4b2c92db
Source4: https://github.com/krallin/tini/archive/v0.13.0/tini-0.13.0.tar.gz
Patch0: systemd.patch
URL: http://www.docker.com/
BuildRequires: btrfs-progs-devel >= 3.16.1
+BuildRequires: cmake
BuildRequires: device-mapper-devel >= 2.02.89
BuildRequires: golang >= 1.6
BuildRequires: libseccomp-devel >= 2.2.1
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires: ca-certificates
-Requires: cmake
Requires: iproute2 >= 3.5
Requires: iptables
Requires: rc-scripts >= 0.4.0.10
Suggests: git-core >= 1.7
Suggests: libcgroup
Suggests: xz >= 1:4.9
+Provides: docker(engine) = %{version}
Provides: group(docker)
Obsoletes: lxc-docker < 1.1.1
# only runs on x64 hosts for now:
ln -s $(pwd)/libnetwork vendor/src/github.com/docker/libnetwork
%build
-v=$(awk -F= '/RUNC_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
+v=$(awk -F= '/^RUNC_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
echo "$v" | grep "^%{runc_commit}"
-v=$(awk -F= '/CONTAINERD_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
+v=$(awk -F= '/^CONTAINERD_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
echo "$v" | grep "^%{containerd_commit}"
-v=$(awk -F= '/LIBNETWORK_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
+v=$(awk -F= '/^LIBNETWORK_COMMIT/ {print $2}' hack/dockerfile/binaries-commits)
echo "$v" | grep "^%{libnetwork_commit}"
export GOPATH=$(pwd)/vendor:$(pwd)/containerd/vendor
%{__make} -C containerd
# build docker-proxy
-go build -ldflags="$PROXY_LDFLAGS" \
+go build -ldflags="-linkmode=external" \
-o docker-proxy \
github.com/docker/libnetwork/cmd/proxy
# build docker-init
cd tini
-cmake -DMINIMAL=ON .
+cmake .
%{__make}
cd ..