!2 Fix build fail

Merge pull request !2 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 09:05:23 +08:00 committed by Gitee
commit dec1808b1e

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name curb
Name: rubygem-%{gem_name}
Version: 0.9.7
Release: 1
Release: 2
Summary: Ruby libcurl bindings
License: Ruby
URL: https://github.com/taf2/curb
@ -39,10 +40,12 @@ mkdir -p %{buildroot}%{gem_extdir_mri}
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
rm -rf %{buildroot}%{gem_instdir}/ext/
%if %{with bootstrap}
%check
pushd .%{gem_instdir}
ruby -e 'Dir.glob "./tests/tc_*.rb", &method(:require)'
popd
%endif
%files
%dir %{gem_instdir}
@ -60,5 +63,8 @@ popd
%{gem_instdir}/tests
%changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.9.7-2
- fix build fail
* Fri Jul 24 2020 wutao <wutao61@huawei.com> - 0.9.7-1
- package init