!4 [sync] PR-3: resolve build error due to rubygem-rack update to 2.2.0+

From: @openeuler-sync-bot
Reviewed-by: @hht8
Signed-off-by: @hht8
This commit is contained in:
openeuler-ci-bot 2021-02-25 11:35:49 +08:00 committed by Gitee
commit d7d1c8d890

View File

@ -3,7 +3,7 @@
Summary: Ruby gem that protects against typical web attacks Summary: Ruby gem that protects against typical web attacks
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.0.3 Version: 2.0.3
Release: 1 Release: 2
License: MIT License: MIT
URL: http://github.com/sinatra/sinatra/tree/master/rack-protection URL: http://github.com/sinatra/sinatra/tree/master/rack-protection
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
@ -33,6 +33,7 @@ This package contains documentation for %{name}.
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xzvf %{SOURCE1} tar xzvf %{SOURCE1}
sed -i 's/-0000/GMT/g' sinatra-2.0.3/rack-protection/spec/lib/rack/protection/cookie_tossing_spec.rb
ln -s sinatra-%{version}/%{gem_name}/spec spec ln -s sinatra-%{version}/%{gem_name}/spec spec
rspec -r 'spec_helper' spec rspec -r 'spec_helper' spec
popd popd
@ -57,5 +58,8 @@ cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%changelog %changelog
* Wed Feb 10 2021 jeff200902 <gaojianxing@huawei.com> - 2.0.3-2
- fix check failed
* Fri Aug 21 2020 luoshengwei <luoshengwei@huawei.com> - 2.0.3-1 * Fri Aug 21 2020 luoshengwei <luoshengwei@huawei.com> - 2.0.3-1
- package init - package init