Force to use minitest 4.x, 5.x is too dangerous now

This commit is contained in:
Mamoru TASAKA 2014-06-26 12:17:27 +09:00
parent 5d12342de4
commit 4246ab562a

View File

@ -3,10 +3,18 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver} %global fullver %{majorver}%{?preminorver}
%global fedorarel 1 %global fedorarel 2
%global gem_name rspec-expectations %global gem_name rspec-expectations
# It is too dangerous to use minitest >= 5 on rspec-expections-2.14.x...
# e5102884716f8bc1b4e8f0fe0b2b7c4dd1d04734 ... too big
%if 0%{?fedora} >= 21
%global gem_minitest rubygem(minitest4)
%else
%global gem_minitest rubygem(minitest)
%endif
# %%check section needs rspec-core, however rspec-core depends on rspec-expectations # %%check section needs rspec-core, however rspec-core depends on rspec-expectations
# runtime part of rspec-expectaions does not depend on rspec-core # runtime part of rspec-expectaions does not depend on rspec-core
@ -17,7 +25,7 @@
Summary: Rspec-2 expectations (should and matchers) Summary: Rspec-2 expectations (should and matchers)
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{majorver} Version: %{majorver}
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1 Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
@ -28,7 +36,7 @@ BuildRequires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
%if 0%{?need_bootstrap} < 1 %if 0%{?need_bootstrap} < 1
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
BuildRequires: rubygem(minitest) BuildRequires: %gem_minitest
%endif %endif
Requires: ruby(release) Requires: ruby(release)
Requires: rubygem(diff-lcs) Requires: rubygem(diff-lcs)
@ -80,6 +88,7 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
%check %check
LANG=en_US.UTF-8 LANG=en_US.UTF-8
pushd .%{gem_instdir} pushd .%{gem_instdir}
export RUBYLIB=$(gem which minitest/parallel_each -a | grep minitest-4 | sed -e 's|/minitest/parallel.*$||')
ruby -rubygems -Ilib/ -S rspec spec/ ruby -rubygems -Ilib/ -S rspec spec/
popd popd
%endif %endif
@ -103,6 +112,9 @@ popd
%exclude %{gem_instdir}/spec/ %exclude %{gem_instdir}/spec/
%changelog %changelog
* Thu Jun 26 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-2
- Force to use minitest 4.x, 5.x is too dangerous now
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.5-1.1 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.5-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild