fixed build fail

(cherry picked from commit a26dc783991704cfd8e35e94a56f0de6b6dc148b)
This commit is contained in:
jeff200902 2021-02-10 15:26:28 +08:00 committed by openeuler-sync-bot
parent cde99919d7
commit 9459ae61eb

View File

@ -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