# Generated from execjs-1.3.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.3.0 Release: 1%{?dist} Group: Development/Languages License: MIT URL: https://github.com/sstephenson/execjs Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{name}-%{version}-test.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: ruby BuildRequires: rubygem(minitest) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description ExecJS lets you run JavaScript code from Ruby. %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} # Got the tests using the following # git clone https://github.com/sstephenson/execjs.git && cd execjs # git checkout v1.3.0 # tar czf rubygem-execjs-1.3.0-test.tgz test/ %check pushd .%{gem_instdir} tar xzf %{SOURCE1} testrb -Ilib test popd %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %files %dir %{gem_instdir} %{gem_libdir} %{gem_instdir}/LICENSE %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Tue Feb 28 2012 Fotios Lindiakos - 1.3.0-1 - Initial package