X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-logging.git;a=blobdiff_plain;f=SPECS%2Ffluentd.spec;h=348b4d4244ab9033fb717f23511e470294bd6dd1;hp=e4d9c3bc1c2b6ba279262df462b74f47ae5ddf00;hb=063bf9443600a9ac58859e0252e0ef02c856e100;hpb=229e54ec0c45ee7389247cf6cda79d31b303de85 diff --git a/SPECS/fluentd.spec b/SPECS/fluentd.spec index e4d9c3b..348b4d4 100644 --- a/SPECS/fluentd.spec +++ b/SPECS/fluentd.spec @@ -14,8 +14,8 @@ %define COMPONENT fluentd %define RPM_NAME caas-%{COMPONENT} -%define RPM_MAJOR_VERSION 1.4.1 -%define RPM_MINOR_VERSION 1 +%define RPM_MAJOR_VERSION 1.7.3 +%define RPM_MINOR_VERSION 0 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} Name: %{RPM_NAME} @@ -24,12 +24,12 @@ Release: %{RPM_MINOR_VERSION}%{?dist} Summary: Containers as a Service Fluentd component License: %{_platform_license} and MIT license and Apache License and BSD 3-clause New or Revised License and Ruby License and BSD and Mozilla Public License and BSD 3-clause New or Revised License URL: https://github.com/fluent/fluentd -BuildArch: x86_64 +BuildArch: %{_arch} Vendor: %{_platform_vendor} and fluent/fluentd unmodified Source0: %{name}-%{version}.tar.gz -Requires: docker-ce >= 18.09.2 -BuildRequires: docker-ce >= 18.09.2 +Requires: docker-ce >= 18.09.2, rsync +BuildRequires: docker-ce >= 18.09.2, xz %description This RPM contains the Fluentd container image, and related deployment artifacts for the CaaS subsystem. @@ -54,7 +54,7 @@ docker build \ mkdir -p %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/ -docker save %{COMPONENT}:%{IMAGE_TAG} | gzip -c > %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/%{COMPONENT}:%{IMAGE_TAG}.tar +docker save %{COMPONENT}:%{IMAGE_TAG} | xz -z -T2 > %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/%{COMPONENT}:%{IMAGE_TAG}.tar docker rmi -f %{COMPONENT}:%{IMAGE_TAG} @@ -62,27 +62,10 @@ docker rmi -f %{COMPONENT}:%{IMAGE_TAG} mkdir -p %{buildroot}/%{_caas_container_tar_path}/ rsync -av %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-save/%{COMPONENT}:%{IMAGE_TAG}.tar %{buildroot}/%{_caas_container_tar_path}/ -mkdir -p %{buildroot}/%{_playbooks_path}/ -rsync -av ansible/playbooks/fluentd.yaml %{buildroot}/%{_playbooks_path}/ - -mkdir -p %{buildroot}/%{_roles_path}/ -rsync -av ansible/roles/fluentd %{buildroot}/%{_roles_path}/ - %files %{_caas_container_tar_path}/%{COMPONENT}:%{IMAGE_TAG}.tar -%{_playbooks_path}/fluentd.yaml -%{_roles_path}/fluentd %preun - %post -mkdir -p %{_postconfig_path}/ -ln -sf %{_playbooks_path}/fluentd.yaml %{_postconfig_path}/ - -%postun -if [ $1 -eq 0 ]; then - rm -f %{_postconfig_path}/fluentd.yaml -fi - %clean rm -rf ${buildroot}