integ/kubernetes/docker-ce/centos/meta_patches/0001-Update-package-versioning-for-TIS-format.patch
Shoaib Nasir 37ef9a2f9e Adding Kubernetes packages
Change-Id: I13aeef0bbb019055d51e43c63fdf3ba0bb0d8775
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2018-06-25 13:15:22 -05:00

37 lines
1.1 KiB
Diff

commit b86683a477f4d40e09501b6953a89c634bd9de75
Author: Shoaib Nasir <shoaib.nasir@windriver.com>
Date: Mon May 14 15:32:06 2018 -0400
WRS: 0001-Update-package-versioning-for-TIS-format.patch
diff --git a/SPECS/docker-ce.spec b/SPECS/docker-ce.spec
index 82b5042..36d2980 100644
--- a/SPECS/docker-ce.spec
+++ b/SPECS/docker-ce.spec
@@ -1,6 +1,8 @@
+%global _version 18.03.1
+
Name: docker-ce
Version: %{_version}
-Release: %{_release}%{?dist}
+Release: 1%{?_tis_dist}.%{tis_patch_ver}
Summary: The open-source application container engine
Group: Tools/Docker
License: ASL 2.0
@@ -59,6 +61,7 @@ depending on a particular stack or provider.
%setup -q -c -n src -a 1
%build
+export PBR_VERSION=%{version}
export DOCKER_GITCOMMIT=%{_gitcommit}
mkdir -p /go/src/github.com/docker
rm -f /go/src/github.com/docker/cli
@@ -79,6 +82,7 @@ engine/bundles/dynbinary-daemon/dockerd -v
%install
# install binary
+export PBR_VERSION=%{version}
install -d $RPM_BUILD_ROOT/%{_bindir}
install -p -m 755 cli/build/docker $RPM_BUILD_ROOT/%{_bindir}/docker
install -p -m 755 $(readlink -f engine/bundles/dynbinary-daemon/dockerd) $RPM_BUILD_ROOT/%{_bindir}/dockerd