%define go_version 1.8.3 %define orig_version 17.06.0-dev %define git_commit 5937f93014e04816aa39a7ebf714fb1b39fddeca Name: docker-engine Version: 0.7.0 Release: 0 Summary: The open-source application container engine Group: Tools/Docker License: ASL 2.0 ExclusiveArch: armv7l Source0: %{name}.tar.gz Source1: %{name}.manifest Source2: %{name}.service Source3: %{name}.socket Source11: go1.8.3.linux-armv7.tar.gz ## BuildRequires: git Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description Docker is an open source project to build, ship and run any application as a lightweight container. Docker containers are both hardware-agnostic and platform-agnostic. This means they can run anywhere, from your laptop to the largest EC2 compute instance and everything in between - and they don't require you to use a particular language, framework or packaging system. That makes them great building blocks for deploying and scaling web apps, databases, and backend services without depending on a particular stack or provider. %prep %setup -q %ifarch armv7l cp %{SOURCE11} . tar -zxf %{SOURCE11} #rm -f %{_builddir}/%{name}-%{version}/go%{go_version}.linux-armv7.tar.gz %endif chmod g-w %_sourcedir/* cp %{SOURCE1} ./%{name}.manifest ## service cp %{SOURCE2} ./%{name}.services cp %{SOURCE3} ./%{name}.socket %build 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 DOCKER_GITCOMMIT=%{git_commit} go env export CGO_ENABLED=1 AUTO_GOPATH=1 ./hack/make.sh dynbinary-docker %install # install binary install -d $RPM_BUILD_ROOT/%{_bindir} install -p -m 755 %{_builddir}/%{name}-%{version}/bundles/%{orig_version}/dynbinary-docker/docker $RPM_BUILD_ROOT/%{_bindir}/docker %post ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/docker-containerd ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/docker-containerd-ctr ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/docker-containerd-shim ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/docker-proxy ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/docker-runc ln -sf docker $RPM_BUILD_ROOT/%{_bindir}/dockerd %postun rm -rf %{buildroot} %files %manifest %{name}.manifest %defattr(-,root,root,-) /%{_bindir}/docker* %license ./LICENSE