!2 Fix build fail

Merge pull request !2 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 12:14:18 +08:00 committed by Gitee
commit 80f8ec36d3

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name webmock
Name: rubygem-%{gem_name}
Version: 3.5.1
Release: 1
Release: 2
Summary: Library for stubbing HTTP requests in Ruby
License: MIT
URL: http://github.com/bblimke/webmock
@ -38,6 +39,7 @@ mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%if %{with bootstrap}
%check
pushd .%{gem_instdir}
ruby -e 'Dir.glob "./minitest/**/*.rb", &method(:require)'
@ -46,6 +48,7 @@ sed -i '/patron/ s/^/#/' spec/spec_helper.rb
sed -i '/em-http/ s/^/#/' spec/spec_helper.rb
rspec spec --exclude-pattern 'spec/{quality_spec.rb,acceptance/{patron,http_rb,em_http_request}/*}'
popd
%endif
%files
%dir %{gem_instdir}
@ -67,5 +70,8 @@ popd
%{gem_instdir}/webmock.gemspec
%changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 3.5.1-2
- fix build fail
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 3.5.1-1
- package init