!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:
commit
d7d1c8d890
@ -3,7 +3,7 @@
|
||||
Summary: Ruby gem that protects against typical web attacks
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.0.3
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: MIT
|
||||
URL: http://github.com/sinatra/sinatra/tree/master/rack-protection
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
@ -33,6 +33,7 @@ This package contains documentation for %{name}.
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
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
|
||||
rspec -r 'spec_helper' spec
|
||||
popd
|
||||
@ -57,5 +58,8 @@ cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
|
||||
%{gem_instdir}/Rakefile
|
||||
|
||||
%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
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user