[rubygem-execjs] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Tue Jul 17 05:30:12 UTC 2012


commit ebed82299fddbd476beb9e84dc8f0c37b35e451f
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Tue Jul 17 07:29:54 2012 +0200

    Initial import

 .gitignore          |    2 +
 rubygem-execjs.spec |   84 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    2 +
 3 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ec587ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/execjs-1.4.0-tests.tgz
+/execjs-1.4.0.gem
diff --git a/rubygem-execjs.spec b/rubygem-execjs.spec
new file mode 100644
index 0000000..3dd53c3
--- /dev/null
+++ b/rubygem-execjs.spec
@@ -0,0 +1,84 @@
+# Generated from execjs-1.4.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name execjs
+%global rubyabi 1.9.1
+
+Summary: Run JavaScript code from Ruby
+Name: rubygem-%{gem_name}
+Version: 1.4.0
+Release: 2%{?dist}
+Group: Development/Languages
+# Public Domain: %%{gem_libdir}/execjs/support/json2.js
+License: MIT and Public Domain
+URL: https://github.com/sstephenson/execjs
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# git clone https://github.com/sstephenson/execjs.git && cd execjs
+# git checkout v1.4.0 && tar czf execjs-1.4.0-tests.tgz test/
+Source1: %{gem_name}-%{version}-tests.tgz
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) 
+Requires: ruby 
+Requires: rubygem(multi_json) => 1.0
+Requires: rubygem(multi_json) < 2
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(multi_json) => 1.0
+BuildRequires: rubygem(multi_json) < 2
+BuildRequires: rubygem(therubyracer)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+ExecJS lets you run JavaScript code from Ruby. It automatically picks the
+best runtime available to evaluate your JavaScript program, then returns
+the result to you as a Ruby object.
+
+%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}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+tar xzf %{SOURCE1}
+# disable test that needs internet connection
+sed -i '163,168d' test/test_execjs.rb
+export LANG=en_US.utf8
+testrb -Ilib test
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+
+%changelog
+* Thu Jul 12 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.0-2
+- Removed the duplicated "git checkout" in comment.
+- BR: rubygem(therubyracer) for tests, don't use deprecated js.
+
+* Wed Jun 13 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..d176a66 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+09268122b5ee0f686fb9493ca386744e  execjs-1.4.0-tests.tgz
+65cba14d74742b05a8538df2d272ec6f  execjs-1.4.0.gem


More information about the scm-commits mailing list