!1 rubygem-fluent-plugin-elasticsearch package init
From: @bzg1107 Reviewed-by: @disnight,@solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
5fb835560a
BIN
fluent-plugin-elasticsearch-5.0.5.gem
Normal file
BIN
fluent-plugin-elasticsearch-5.0.5.gem
Normal file
Binary file not shown.
77
rubygem-fluent-plugin-elasticsearch.spec
Normal file
77
rubygem-fluent-plugin-elasticsearch.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
%global gem_name fluent-plugin-elasticsearch
|
||||||
|
|
||||||
|
Name: rubygem-fluent-plugin-elasticsearch
|
||||||
|
Version: 5.0.5
|
||||||
|
Release: 1
|
||||||
|
Summary: Elasticsearch output plugin for Fluent event collector
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/uken/fluent-plugin-elasticsearch
|
||||||
|
Source0: https://rubygems.org/gems/fluent-plugin-elasticsearch-5.0.5.gem
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Requires: rubygem-elasticsearch
|
||||||
|
Requires: rubygem-excon
|
||||||
|
Requires: rubygem-fluentd
|
||||||
|
BuildRequires: ruby
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
BuildRequires: rubygems
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: rsync
|
||||||
|
Provides: rubygem-fluent-plugin-elasticsearch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Elasticsearch output plugin for Fluent event collector
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for fluent-plugin-elasticsearch
|
||||||
|
Provides: rubygem-fluent-plugin-elasticsearch-doc
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Elasticsearch output plugin for Fluent event collector
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n fluent-plugin-elasticsearch-5.0.5
|
||||||
|
gem spec %{SOURCE0} -l --ruby > fluent-plugin-elasticsearch.gemspec
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build fluent-plugin-elasticsearch.gemspec
|
||||||
|
|
||||||
|
%install
|
||||||
|
%gem_install
|
||||||
|
install -d -m 0755 .%{gem_dir}/{build_info,cache,doc,gems,extensions,specifications} %{buildroot}%{gem_dir}
|
||||||
|
install -d -m 0755 .%{gem_instdir} %{buildroot}%{gem_instdir}
|
||||||
|
cp -rf .%{gem_dir}/* %{buildroot}%{gem_dir}
|
||||||
|
if [ -d .%{_bindir} ]; then
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
|
||||||
|
fi
|
||||||
|
if [ -d ext ]; then
|
||||||
|
mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
||||||
|
if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then
|
||||||
|
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
||||||
|
else
|
||||||
|
cp -a .%{gem_extdir_mri}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
||||||
|
fi
|
||||||
|
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
|
||||||
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||||
|
fi
|
||||||
|
rm -rf %{buildroot}%{gem_instdir}/{.github,.gitignore,.travis.yml,.coveralls.yml,.editorconfig}
|
||||||
|
touch filelist.lst
|
||||||
|
if [ -d %{buildroot}%{_bindir} ]; then
|
||||||
|
find .%{_bindir} -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files -n rubygem-fluent-plugin-elasticsearch -f filelist.lst
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_instdir}/*
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{gem_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 2 2021 baizhonggui <baizhonggui@huawei.com> - 5.0.5-1
|
||||||
|
- Package init
|
||||||
4
rubygem-fluent-plugin-elasticsearch.yaml
Normal file
4
rubygem-fluent-plugin-elasticsearch.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: uken/fluent-plugin-elasticsearch
|
||||||
|
tag_prefix: "^"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user