commit
3fd8647068
@ -1,3 +1,4 @@
|
|||||||
|
%bcond_with bootstrap
|
||||||
%global majorver 2.14.8
|
%global majorver 2.14.8
|
||||||
%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-%{rpmgem_name}
|
Name: rubygem-%{rpmgem_name}
|
||||||
Version: %{majorver}
|
Version: %{majorver}
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rspec/rspec-core
|
URL: http://github.com/rspec/rspec-core
|
||||||
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||||
@ -61,6 +62,7 @@ mv %{buildroot}%{_bindir}/rspec{,2}
|
|||||||
install -cpm 0755 %{SOURCE1} \
|
install -cpm 0755 %{SOURCE1} \
|
||||||
%{buildroot}%{_bindir}/rspec2
|
%{buildroot}%{_bindir}/rspec2
|
||||||
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.treasure_map.rb,.rspec,.travis.yml,spec.txt,.yardopts}
|
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
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -85,6 +87,7 @@ ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec || \
|
|||||||
ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec --tag ~broken
|
ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec --tag ~broken
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
@ -103,5 +106,8 @@ popd
|
|||||||
%exclude %{gem_instdir}/spec/
|
%exclude %{gem_instdir}/spec/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 24 2020 huangyangke <huangyangke@huawei.com> - 2.14.8-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user