!3 Fix build fail

Merge pull request !3 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 12:06:40 +08:00 committed by Gitee
commit a193415c62

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name excon
Name: rubygem-%{gem_name}
Version: 0.62.0
Release: 1
Release: 2
Summary: Speed, persistence, http(s)
License: MIT
URL: https://github.com/excon/excon
@ -38,6 +39,7 @@ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
rm -rf %{buildroot}%{gem_instdir}/data
%if %{with bootstrap}
%check
pushd .%{gem_instdir}
sed -i '/if plugin == :unicorn/ i\ before { skip("until #{plugin} is in Fedora") } if plugin == :unicorn' spec/support/shared_contexts/test_server_context.rb
@ -49,6 +51,7 @@ openssl req -subj '/CN=excon/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -n
openssl req -subj '/CN=127.0.0.1/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout tests/data/127.0.0.1.cert.key -out tests/data/127.0.0.1.cert.crt
shindo
popd
%endif
%files
%dir %{gem_instdir}
@ -71,5 +74,8 @@ popd
%{gem_instdir}/tests
%changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.62.0-2
- fix build fail
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 0.62.0-1
- package init