[rubygem-therubyracer] Use rspec 2 for now

Mamoru TASAKA mtasaka at fedoraproject.org
Mon Jan 19 03:48:11 UTC 2015


commit 6cb4a42b0e132ac8a96047a4dbd38602a18b5366
Author: John <mtasaka at fedoraproject.org>
Date:   Mon Jan 19 12:48:33 2015 +0900

    Use rspec 2 for now

 rubygem-therubyracer.spec |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/rubygem-therubyracer.spec b/rubygem-therubyracer.spec
index 35261ff..82bc563 100644
--- a/rubygem-therubyracer.spec
+++ b/rubygem-therubyracer.spec
@@ -1,7 +1,7 @@
 %global gem_name therubyracer
 
 %global majorver 0.11.0
-%global release 8
+%global release 9
 #%%global preminorver beta5
 %global fullver %{majorver}%{?preminorver}
 
@@ -24,7 +24,11 @@ Patch1: rubygem-therubyracer-0.11.0beta5-v8-3.14.5.8-compatibility.patch
 Requires: v8
 BuildRequires: ruby(release)
 BuildRequires: rubygem(ref)
+%if 0%{?fedora} >= 22
+BuildRequires: rubygem(rspec2)
+%else
 BuildRequires: rubygem(rspec)
+%endif
 BuildRequires: rubygems-devel
 BuildRequires: ruby-devel
 BuildRequires: v8-devel
@@ -86,7 +90,12 @@ sed -i "s|V8::C::V8::GetVersion().*|V8::C::V8::GetVersion().should match /^${V8_
 
 # skip the threading specs for now
 # https://github.com/cowboyd/therubyracer/pull/98#issuecomment-14442089
-rspec -I$(dirs +1)%{gem_extdir_mri} spec --tag ~threads
+%if 0%{?fedora} >= 22
+rspec2 \
+%else
+rspec \
+%endif
+	-I$(dirs +1)%{gem_extdir_mri} spec --tag ~threads
 popd
 
 %files
@@ -109,6 +118,9 @@ popd
 %{gem_instdir}/therubyracer.gemspec
 
 %changelog
+* Mon Jan 18 2015 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.11.0-9
+- Use rspec 2 for now
+
 * Sun Jan 18 2015 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.11.0-8
 - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
 


More information about the scm-commits mailing list