commit
4fffe24421
@ -1,3 +1,4 @@
|
|||||||
|
%bcond_with bootstrap
|
||||||
%global majorver 2.14.6
|
%global majorver 2.14.6
|
||||||
%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 doubles (mocks and stubs)
|
Summary: Rspec 2 doubles (mocks and stubs)
|
||||||
Name: rubygem-%{rpmgem_name}
|
Name: rubygem-%{rpmgem_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: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||||
@ -43,6 +44,7 @@ mkdir -p %{buildroot}%{gem_dir}
|
|||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
|
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
|
||||||
|
%if %{with bootstrap}
|
||||||
%if 0%{?need_bootstrap_set} < 1
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -53,6 +55,7 @@ sed -i.toplevel spec/rspec/mocks/mutate_const_spec.rb \
|
|||||||
-e '\@expect.TestClass::Hash.@d'
|
-e '\@expect.TestClass::Hash.@d'
|
||||||
ruby -rrubygems -Ilib/ -S rspec2 spec/
|
ruby -rrubygems -Ilib/ -S rspec2 spec/
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
@ -68,5 +71,8 @@ ruby -rrubygems -Ilib/ -S rspec2 spec/
|
|||||||
%exclude %{gem_instdir}/spec/
|
%exclude %{gem_instdir}/spec/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 7 2020 liyanan <liyanan32@huawei.com> - 2.14.6-2
|
||||||
|
- fix build fail
|
||||||
|
|
||||||
* Wed Aug 19 2020 huangyangke <huangyangke@huawei.com> - %{majorver}-1
|
* Wed Aug 19 2020 huangyangke <huangyangke@huawei.com> - %{majorver}-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user