[rubygem-therubyracer] Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
Vít Ondruch
vondruch at fedoraproject.org
Tue Apr 15 14:56:26 UTC 2014
commit 0338c1754974df73e4ddd98e937776448da7083c
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Apr 15 16:55:47 2014 +0200
Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
...cer-0.11.0beta5-v8-3.14.5.8-compatibility.patch | 11 +++++++
...therubyracer-0.11.1-fix-bignum-conversion.patch | 7 +++++
rubygem-therubyracer.spec | 29 +++++++++++---------
3 files changed, 34 insertions(+), 13 deletions(-)
---
diff --git a/rubygem-therubyracer-0.11.0beta5-v8-3.14.5.8-compatibility.patch b/rubygem-therubyracer-0.11.0beta5-v8-3.14.5.8-compatibility.patch
new file mode 100644
index 0000000..24b688b
--- /dev/null
+++ b/rubygem-therubyracer-0.11.0beta5-v8-3.14.5.8-compatibility.patch
@@ -0,0 +1,11 @@
+--- a/ext/v8/context.cc
++++ b/ext/v8/context.cc
+@@ -78,7 +78,7 @@
+ }
+
+ VALUE Context::SetData(VALUE self, VALUE data) {
+- Void(Context(self)->SetData(String(data)));
++ Void(Context(self)->SetData(Value(data)));
+ }
+
+ VALUE Context::GetData(VALUE self) {
diff --git a/rubygem-therubyracer-0.11.1-fix-bignum-conversion.patch b/rubygem-therubyracer-0.11.1-fix-bignum-conversion.patch
index 0422b96..ba3adca 100644
--- a/rubygem-therubyracer-0.11.1-fix-bignum-conversion.patch
+++ b/rubygem-therubyracer-0.11.1-fix-bignum-conversion.patch
@@ -40,3 +40,10 @@ index 0000000..4b64125
+ end
+ end
+end
+diff --git a/therubyracer.gemspec b/therubyracer.gemspec
+index 89adcf6..1e54b70 100644
+--- a/therubyracer.gemspec
++++ b/therubyracer.gemspec
+@@ -10,1 +10,1 @@ Gem::Specification.new do |s|
+- s.files = [".gitignore", ".travis.yml", "Changelog.md", "Gemfile", "README.md", "Rakefile", "benchmarks.rb", "ext/v8/accessor.cc", "ext/v8/array.cc", "ext/v8/backref.cc", "ext/v8/build.rb", "ext/v8/constants.cc", "ext/v8/constraints.cc", "ext/v8/context.cc", "ext/v8/date.cc", "ext/v8/exception.cc", "ext/v8/extconf.rb", "ext/v8/external.cc", "ext/v8/function.cc", "ext/v8/gc.cc", "ext/v8/handles.cc", "ext/v8/heap.cc", "ext/v8/init.cc", "ext/v8/invocation.cc", "ext/v8/locker.cc", "ext/v8/message.cc", "ext/v8/object.cc", "ext/v8/primitive.cc", "ext/v8/rr.cc", "ext/v8/rr.h", "ext/v8/script.cc", "ext/v8/signature.cc", "ext/v8/stack.cc", "ext/v8/string.cc", "ext/v8/template.cc", "ext/v8/trycatch.cc", "ext/v8/v8.cc", "ext/v8/value.cc", "lib/v8.rb", "lib/v8/access.rb", "lib/v8/access/indices.rb", "lib/v8/access/invocation.rb", "lib/v8/access/names.rb", "lib/v8/array.rb", "lib/v8/context.rb", "lib/v8/conversion.rb", "lib/v8/conversion/array.rb", "lib/v8/conversion/class.rb", "lib/v
8/conversion/code.rb", "lib/v8/conversion/fixnum.rb", "lib/v8/conversion/fundamental.rb", "lib/v8/conversion/hash.rb", "lib/v8/conversion/indentity.rb", "lib/v8/conversion/method.rb", "lib/v8/conversion/object.rb", "lib/v8/conversion/primitive.rb", "lib/v8/conversion/proc.rb", "lib/v8/conversion/reference.rb", "lib/v8/conversion/string.rb", "lib/v8/conversion/symbol.rb", "lib/v8/conversion/time.rb", "lib/v8/error.rb", "lib/v8/function.rb", "lib/v8/object.rb", "lib/v8/stack.rb", "lib/v8/version.rb", "lib/v8/weak.rb", "spec/c/array_spec.rb", "spec/c/constants_spec.rb", "spec/c/exception_spec.rb", "spec/c/external_spec.rb", "spec/c/function_spec.rb", "spec/c/handles_spec.rb", "spec/c/locker_spec.rb", "spec/c/object_spec.rb", "spec/c/script_spec.rb", "spec/c/string_spec.rb", "spec/c/template_spec.rb", "spec/c/trycatch_spec.rb", "spec/mem/blunt_spec.rb", "spec/redjs_spec.rb", "spec/spec_helper.rb", "spec/threading_spec.rb", "spec/v8/context_spec.rb", "spec/v8/conversion_spec.rb",
"spec/v8/error_spec.rb", "spec/v8/function_spec.rb", "spec/v8/object_spec.rb", "thefrontside.png", "therubyracer.gemspec"]
++ s.files = [".gitignore", ".travis.yml", "Changelog.md", "Gemfile", "README.md", "Rakefile", "benchmarks.rb", "ext/v8/accessor.cc", "ext/v8/array.cc", "ext/v8/backref.cc", "ext/v8/build.rb", "ext/v8/constants.cc", "ext/v8/constraints.cc", "ext/v8/context.cc", "ext/v8/date.cc", "ext/v8/exception.cc", "ext/v8/extconf.rb", "ext/v8/external.cc", "ext/v8/function.cc", "ext/v8/gc.cc", "ext/v8/handles.cc", "ext/v8/heap.cc", "ext/v8/init.cc", "ext/v8/invocation.cc", "ext/v8/locker.cc", "ext/v8/message.cc", "ext/v8/object.cc", "ext/v8/primitive.cc", "ext/v8/rr.cc", "ext/v8/rr.h", "ext/v8/script.cc", "ext/v8/signature.cc", "ext/v8/stack.cc", "ext/v8/string.cc", "ext/v8/template.cc", "ext/v8/trycatch.cc", "ext/v8/v8.cc", "ext/v8/value.cc", "lib/v8.rb", "lib/v8/access.rb", "lib/v8/access/indices.rb", "lib/v8/access/invocation.rb", "lib/v8/access/names.rb", "lib/v8/array.rb", "lib/v8/context.rb", "lib/v8/conversion.rb", "lib/v8/conversion/array.rb", "lib/v8/conversion/class.rb", "lib/v
8/conversion/code.rb", "lib/v8/conversion/fixnum.rb", "lib/v8/conversion/bignum.rb", "lib/v8/conversion/fundamental.rb", "lib/v8/conversion/hash.rb", "lib/v8/conversion/indentity.rb", "lib/v8/conversion/method.rb", "lib/v8/conversion/object.rb", "lib/v8/conversion/primitive.rb", "lib/v8/conversion/proc.rb", "lib/v8/conversion/reference.rb", "lib/v8/conversion/string.rb", "lib/v8/conversion/symbol.rb", "lib/v8/conversion/time.rb", "lib/v8/error.rb", "lib/v8/function.rb", "lib/v8/object.rb", "lib/v8/stack.rb", "lib/v8/version.rb", "lib/v8/weak.rb", "spec/c/array_spec.rb", "spec/c/constants_spec.rb", "spec/c/exception_spec.rb", "spec/c/external_spec.rb", "spec/c/function_spec.rb", "spec/c/handles_spec.rb", "spec/c/locker_spec.rb", "spec/c/object_spec.rb", "spec/c/script_spec.rb", "spec/c/string_spec.rb", "spec/c/template_spec.rb", "spec/c/trycatch_spec.rb", "spec/mem/blunt_spec.rb", "spec/redjs_spec.rb", "spec/spec_helper.rb", "spec/threading_spec.rb", "spec/v8/context_spec.rb"
, "spec/v8/conversion_spec.rb", "spec/v8/error_spec.rb", "spec/v8/function_spec.rb", "spec/v8/object_spec.rb", "thefrontside.png", "therubyracer.gemspec"]
diff --git a/rubygem-therubyracer.spec b/rubygem-therubyracer.spec
index f58bfaf..5bb79a7 100644
--- a/rubygem-therubyracer.spec
+++ b/rubygem-therubyracer.spec
@@ -1,7 +1,7 @@
%global gem_name therubyracer
%global majorver 0.11.0
-%global release 4
+%global release 5
#%%global preminorver beta5
%global fullver %{majorver}%{?preminorver}
@@ -20,10 +20,7 @@ License: MIT
URL: http://github.com/cowboyd/therubyracer
Source0: http://rubygems.org/gems/%{gem_name}-%{version}%{?preminorver}.gem
Patch0: %{name}-0.11.1-fix-bignum-conversion.patch
-Requires: ruby(release)
-Requires: rubygem(ref)
-Requires: ruby(rubygems)
-Requires: ruby
+Patch1: rubygem-therubyracer-0.11.0beta5-v8-3.14.5.8-compatibility.patch
Requires: v8
BuildRequires: ruby(release)
BuildRequires: rubygem(ref)
@@ -33,7 +30,6 @@ BuildRequires: ruby-devel
BuildRequires: v8-devel
# some specs run "ps aux"
BuildRequires: /usr/bin/ps
-Provides: rubygem(%{gem_name}) = %{version}
# same as in v8
ExclusiveArch: %{ix86} x86_64 %{arm}
@@ -52,22 +48,26 @@ BuildArch: noarch
Documentation for %{name}
%prep
-%setup -q -c -T
-%gem_install -n %{SOURCE0}
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-pushd .%{gem_instdir}
%patch0 -p1
-popd
+%patch1 -p1
%build
+gem build %{gem_name}.gemspec
+%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
-mkdir -p %{buildroot}%{gem_extdir_mri}/lib/v8
-mv %{buildroot}%{gem_instdir}/lib/v8/init.so %{buildroot}%{gem_extdir_mri}/lib/v8
+mkdir -p %{buildroot}%{gem_extdir_mri}/v8
+cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
+cp -a .%{gem_extdir_mri}/v8/*.so %{buildroot}%{gem_extdir_mri}/v8/
# Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext
@@ -86,7 +86,7 @@ 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 spec --tag ~threads
+rspec -I$(dirs +1)%{gem_extdir_mri} spec --tag ~threads
popd
%files
@@ -109,6 +109,9 @@ popd
%{gem_instdir}/therubyracer.gemspec
%changelog
+* Tue Apr 15 2014 Josef Stribny <jstribny at redhat.com> - 0.11.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
+
* Fri Feb 14 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.11.0-4
- rebuild for icu-53 (via v8)
More information about the scm-commits
mailing list