!8 修复编译失败

From: @caodongxia 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2022-11-05 08:13:59 +00:00 committed by Gitee
commit 9a939dc5f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global gem_name redis
Name: rubygem-%{gem_name}
Version: 4.7.0
Release: 1
Release: 2
Summary: A Ruby client library for Redis
License: MIT
URL: https://github.com/redis/redis-rb
@ -37,6 +37,14 @@ pushd .%{gem_instdir}
cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} .
sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \
makefile
# The TestInternals#test_large_payload fails with Hiredis.
# https://github.com/redis/redis-rb/issues/1117
sed -i \
-e '/def test_large_payload/i\ driver(:ruby) do' \
-e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \
test/internals_test.rb
mkdir bin
echo '#!/usr/bin/sh' > bin/build
chmod a+x bin/build
@ -66,6 +74,9 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Sat Nov 5 2022 caodongxia <caodongxia@h-partners.com> - 4.7.0-2
- The TestInternals#test_large_paylod fails with hiredis
* Tue Oct 25 2022 caodongxia <caodongxia@h-partners.com> - 4.7.0-1
- Update to 4.7.0