!2 Fix build fail

Merge pull request !2 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 12:20:48 +08:00 committed by Gitee
commit 379dbdef7d

View File

@ -1,3 +1,4 @@
%bcond_with bootstrap
%global majorver 3.8.2 %global majorver 3.8.2
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver} %global fullver %{majorver}%{?preminorver}
@ -7,7 +8,7 @@
Summary: Rspec-2 runner and formatters Summary: Rspec-2 runner and formatters
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{majorver} Version: %{majorver}
Release: 1 Release: 2
License: MIT License: MIT
URL: http://github.com/rspec/rspec-mocks URL: http://github.com/rspec/rspec-mocks
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
@ -42,6 +43,7 @@ gem build %{gem_name}.gemspec
mkdir -p %{buildroot}%{_prefix} mkdir -p %{buildroot}%{_prefix}
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/ cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
%if %{with bootstrap}
%if 0%{?need_bootstrap_set} < 1 %if 0%{?need_bootstrap_set} < 1
%check %check
@ -94,6 +96,7 @@ ruby -rrubygems -Ilib/ -S exe/rspec || \
ruby -rrubygems -Ilib/ -S exe/rspec --tag ~broken ruby -rrubygems -Ilib/ -S exe/rspec --tag ~broken
%endif %endif
mv lib/rspec/core/configuration_options.rb{.warn,} mv lib/rspec/core/configuration_options.rb{.warn,}
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -110,5 +113,8 @@ mv lib/rspec/core/configuration_options.rb{.warn,}
%{gem_docdir} %{gem_docdir}
%changelog %changelog
* Mon Sep 7 2020 liyanan <liyanan32@huawei.com> - 3.8.2-2
- fix build fail
* Wed Aug 19 2020 huangyangke <huangyangke@huawei.com> - 3.8.2-1 * Wed Aug 19 2020 huangyangke <huangyangke@huawei.com> - 3.8.2-1
- package init - package init