commit
3fd8647068
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user