%define COMPONENT etcd
%define RPM_NAME caas-%{COMPONENT}
-%define RPM_MAJOR_VERSION 3.3.13
-%define RPM_MINOR_VERSION 2
+%define RPM_MAJOR_VERSION 3.4.0
+%define RPM_MINOR_VERSION 0
+%define go_version 1.12.9
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define docker_build_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build
%define docker_save_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save
Summary: Containers as a Service %{COMPONENT} component
License: %{_platform_license} and MIT license and BSD and Apache License and Lesser General Public License
URL: https://github.com/etcd-io/etcd
-BuildArch: x86_64
+BuildArch: %{_arch}
Vendor: %{_platform_vendor} and etcd-io/etcd unmodified
Source0: %{name}-%{version}.tar.gz
--build-arg https_proxy="${https_proxy}" \
--build-arg no_proxy="${no_proxy}" \
--build-arg ETCD_VERSION="%{version}" \
+ --build-arg go_version="%{go_version}" \
--tag %{COMPONENT}:%{IMAGE_TAG} \
%{docker_build_dir}/%{COMPONENT}/
mkdir -p %{docker_save_dir}/