!15 [sync] PR-11: Update to 1.4.3 for fix CVE-2022-24795

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-07-13 01:41:31 +00:00 committed by Gitee
commit 2570457d77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 8 additions and 5 deletions

View File

@ -1,12 +1,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
%global gem_name yajl-ruby %global gem_name yajl-ruby
Name: rubygem-yajl-ruby Name: rubygem-yajl-ruby
Version: 1.4.1 Version: 1.4.3
Release: 2 Release: 1
Summary: Ruby C bindings to the excellent Yajl JSON stream-based parser library. Summary: Ruby C bindings to the excellent Yajl JSON stream-based parser library.
License: MIT License: MIT
URL: http://github.com/brianmario/yajl-ruby URL: http://github.com/brianmario/yajl-ruby
Source0: https://rubygems.org/gems/yajl-ruby-1.4.1.gem Source0: https://rubygems.org/gems/yajl-ruby-%{version}.gem
BuildRequires: ruby rsync BuildRequires: ruby rsync
BuildRequires: ruby-devel BuildRequires: ruby-devel
@ -28,7 +28,7 @@ BuildArch: noarch
Ruby C bindings to the excellent Yajl JSON stream-based parser library. Ruby C bindings to the excellent Yajl JSON stream-based parser library.
%prep %prep
%autosetup -n yajl-ruby-1.4.1 %autosetup -n yajl-ruby-%{version}
gem spec %{SOURCE0} -l --ruby > yajl-ruby.gemspec gem spec %{SOURCE0} -l --ruby > yajl-ruby.gemspec
%build %build
@ -53,7 +53,7 @@ fi
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
rm -rf %{buildroot}%{gem_instdir}/ext/ rm -rf %{buildroot}%{gem_instdir}/ext/
fi fi
rm -rf %{buildroot}%{gem_instdir}/{.codeclimate.yml,.gitignore,.rspec,.travis.yml} rm -rf %{buildroot}%{gem_instdir}/{.codeclimate.yml,.gitignore,.rspec,.travis.yml,.github}
pushd %{buildroot} pushd %{buildroot}
touch filelist.lst touch filelist.lst
if [ -d %{buildroot}%{_bindir} ]; then if [ -d %{buildroot}%{_bindir} ]; then
@ -73,6 +73,9 @@ mv %{buildroot}/filelist.lst .
%{gem_docdir}/* %{gem_docdir}/*
%changelog %changelog
* Mon Jul 11 2022 wangkai <wangkai385@h-partners.com> - 1.4.3-1
- Update to 1.4.3 for fix CVE-2022-24795
* Wed Aug 25 2021 wutao <wutao61@huawei.com> - 1.4.1-2 * Wed Aug 25 2021 wutao <wutao61@huawei.com> - 1.4.1-2
- Move .so file from /usr/lib64/gems/ruby/yajl-ruby-1.4.1/yajl-ruby/ - Move .so file from /usr/lib64/gems/ruby/yajl-ruby-1.4.1/yajl-ruby/
to /usr/lib64/gems/ruby/yajl-ruby-1.4.1/yajl/ to solve fluentd loaderror problem to /usr/lib64/gems/ruby/yajl-ruby-1.4.1/yajl/ to solve fluentd loaderror problem

Binary file not shown.

BIN
yajl-ruby-1.4.3.gem Normal file

Binary file not shown.