[rubygem-therubyracer] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Jul 16 05:48:08 UTC 2012


commit a2bcae6fa1934f840adb1882905ba02325f874ea
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jul 16 07:47:50 2012 +0200

    Initial import

 .gitignore                |    1 +
 rubygem-therubyracer.spec |  112 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1ac85d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/therubyracer-0.11.0beta5.gem
diff --git a/rubygem-therubyracer.spec b/rubygem-therubyracer.spec
new file mode 100644
index 0000000..26100a1
--- /dev/null
+++ b/rubygem-therubyracer.spec
@@ -0,0 +1,112 @@
+%global gem_name therubyracer
+%global rubyabi 1.9.1
+
+%global majorver 0.11.0
+%global release 2
+%global preminorver beta5
+%global fullver %{majorver}%{?preminorver}
+
+%{?preminorver:%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{fullver}}
+%{?preminorver:%global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{fullver}}
+%{?preminorver:%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{fullver}}
+%{?preminorver:%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{fullver}.gemspec}
+%{?preminorver:%global gem_cache %{gem_dir}/cache/%{gem_name}-%{fullver}.gem}
+
+Summary: Embed the V8 Javascript interpreter into Ruby
+Name: rubygem-%{gem_name}
+Version: %{majorver}
+Release: %{?preminorver:0.}%{release}%{?preminorver:.%{preminorver}}%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/cowboyd/therubyracer
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}%{?preminorver}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygem(ref)
+Requires: ruby(rubygems)
+Requires: ruby
+Requires: v8
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygem(ref)
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygems-devel
+BuildRequires: ruby-devel
+BuildRequires: v8-devel
+# some specs run "ps aux"
+BuildRequires: /usr/bin/ps
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+Call javascript code and manipulate javascript objects from ruby. Call ruby
+code and manipulate ruby objects from javascript.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install --local --install-dir .%{gem_dir} \
+            -V \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{gem_extdir}/lib/v8
+mv %{buildroot}%{gem_instdir}/lib/v8/init.so %{buildroot}%{gem_extdir}/lib/v8
+
+# Remove the binary extension sources and build leftovers.
+rm -rf %{buildroot}%{gem_instdir}/ext
+
+# remove shebang in non-executable file
+sed -i '1d' %{buildroot}%{gem_instdir}/Rakefile
+
+%check
+pushd .%{gem_instdir}
+# this spec doesn't test anything, only requires redjs, which is not in fedora
+mv spec/redjs_spec.rb spec/redjs_spec.rb.notest
+
+# fix the v8 version we're testing against
+V8_VERSION=`d8 -e "print(version())"`
+sed -i "s|V8::C::V8::GetVersion().*|V8::C::V8::GetVersion().should match /^${V8_VERSION}/|" spec/c/constants_spec.rb
+
+rspec spec
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/README.md
+%{gem_libdir}
+%{gem_extdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/.*
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/Changelog.md
+%{gem_instdir}/benchmarks.rb
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Rakefile
+%{gem_instdir}/spec
+%{gem_instdir}/thefrontside.png
+%{gem_instdir}/therubyracer.gemspec
+
+%changelog
+* Mon Jul 16 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.11.0-0.2.beta5
+- Fixed minor issues according to review comments (RHBZ #838870).
+
+* Fri Jun 15 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.11.0-0.1.beta5
+- Initial package
diff --git a/sources b/sources
index e69de29..ebaa37d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3d38ac5aeaed222c976b8aaed24c7eac  therubyracer-0.11.0beta5.gem


More information about the scm-commits mailing list