fix build fail

This commit is contained in:
lyn1001 2020-09-07 11:28:42 +08:00
parent bd38cbabc4
commit 5c74848c1d

View File

@ -1,3 +1,4 @@
%bcond_with bootstrap
%global majorver 2.14.8
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
@ -7,7 +8,7 @@
Summary: Rspec 2 runner and formatters
Name: rubygem-%{rpmgem_name}
Version: %{majorver}
Release: 1
Release: 2
License: MIT
URL: http://github.com/rspec/rspec-core
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
@ -61,6 +62,7 @@ mv %{buildroot}%{_bindir}/rspec{,2}
install -cpm 0755 %{SOURCE1} \
%{buildroot}%{_bindir}/rspec2
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.treasure_map.rb,.rspec,.travis.yml,spec.txt,.yardopts}
%if %{with bootstrap}
%if 0%{?need_bootstrap_set} < 1
%check
@ -85,6 +87,7 @@ ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec || \
ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec --tag ~broken
popd
%endif
%endif
%files
%dir %{gem_instdir}
@ -103,5 +106,8 @@ popd
%exclude %{gem_instdir}/spec/
%changelog
* Mon Sep 7 2020 liyanan <liyanan32@huawei.com> - 2.14.8-2
- fix build fail
* Mon Aug 24 2020 huangyangke <huangyangke@huawei.com> - 2.14.8-1
- package init