Blame SPECS/rubygem-execjs.spec

a3ab9f
%{?scl:%scl_package rubygem-%{gem_name}}
a3ab9f
%{!?scl:%global pkg_name %{name}}
a3ab9f
a3ab9f
# Generated from execjs-1.4.0.gem by gem2rpm -*- rpm-spec -*-
a3ab9f
%global gem_name execjs
a3ab9f
a3ab9f
Summary: Run JavaScript code from Ruby
a3ab9f
Name: %{?scl_prefix}rubygem-%{gem_name}
a3ab9f
Version: 2.2.0
a3ab9f
Release: 1%{?dist}
a3ab9f
Group: Development/Languages
a3ab9f
# Public Domain: %%{gem_libdir}/execjs/support/json2.js
a3ab9f
License: MIT and Public Domain
a3ab9f
URL: https://github.com/sstephenson/execjs
a3ab9f
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
a3ab9f
# git clone https://github.com/sstephenson/execjs.git && cd execjs
a3ab9f
# git checkout v2.2.0 && tar czf execjs-2.2.0-tests.tgz test/
a3ab9f
Source1: %{gem_name}-%{version}-tests.tgz
a3ab9f
Requires: %{?scl_prefix_ruby}ruby(release)
a3ab9f
Requires: %{?scl_prefix_ruby}ruby(rubygems)
a3ab9f
Requires: %{?scl_prefix_ruby}ruby
a3ab9f
BuildRequires: %{?scl_prefix_ruby}ruby(release)
a3ab9f
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
a3ab9f
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
a3ab9f
BuildRequires: %{?scl_prefix}rubygem(therubyracer)
a3ab9f
BuildRequires: %{?scl_prefix_v8}v8
a3ab9f
BuildArch: noarch
a3ab9f
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
a3ab9f
a3ab9f
%description
a3ab9f
ExecJS lets you run JavaScript code from Ruby. It automatically picks the
a3ab9f
best runtime available to evaluate your JavaScript program, then returns
a3ab9f
the result to you as a Ruby object.
a3ab9f
a3ab9f
%package doc
a3ab9f
Summary: Documentation for %{pkg_name}
a3ab9f
Group: Documentation
a3ab9f
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
a3ab9f
BuildArch: noarch
a3ab9f
a3ab9f
%description doc
a3ab9f
Documentation for %{pkg_name}
a3ab9f
a3ab9f
%prep
a3ab9f
%setup -n %{pkg_name}-%{version} -q -c -T
a3ab9f
%{?scl:scl enable %scl %{scl_v8} - << \EOF}
a3ab9f
%gem_install -n %{SOURCE0}
a3ab9f
%{?scl:EOF}
a3ab9f
a3ab9f
%build
a3ab9f
a3ab9f
%install
a3ab9f
mkdir -p %{buildroot}%{gem_dir}
a3ab9f
cp -a .%{gem_dir}/* \
a3ab9f
        %{buildroot}%{gem_dir}/
a3ab9f
a3ab9f
%check
a3ab9f
pushd .%{gem_instdir}
a3ab9f
tar xzf %{SOURCE1}
a3ab9f
# disable test that needs internet connection
a3ab9f
sed -i '167,172d' test/test_execjs.rb
a3ab9f
export LANG=en_US.utf8
a3ab9f
%{?scl:scl enable %scl %{scl_v8} - << \EOF}
a3ab9f
ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
a3ab9f
%{?scl:EOF}
a3ab9f
popd
a3ab9f
a3ab9f
%files
a3ab9f
%dir %{gem_instdir}
a3ab9f
%doc %{gem_instdir}/LICENSE
a3ab9f
%{gem_libdir}
a3ab9f
%exclude %{gem_cache}
a3ab9f
%{gem_spec}
a3ab9f
a3ab9f
%files doc
a3ab9f
%doc %{gem_docdir}
a3ab9f
%doc %{gem_instdir}/README.md
a3ab9f
a3ab9f
%changelog
a3ab9f
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 2.2.0-1
a3ab9f
- Update to 2.2.0
a3ab9f
a3ab9f
* Mon Feb 17 2014 Josef Stribny <jstribny@redhat.com> - 1.4.0-7
a3ab9f
- Depend on scldevel(v8) virtual provide
a3ab9f
a3ab9f
* Tue Nov 26 2013 Josef Stribny <jstribny@redhat.com> - 1.4.0-6
a3ab9f
- Use v8 scl macro
a3ab9f
a3ab9f
* Wed Jun 12 2013 Josef Stribny <jstribny@redhat.com> - 1.4.0-5
a3ab9f
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
a3ab9f
a3ab9f
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.0-4
a3ab9f
- Reimported from Fedora.
a3ab9f
a3ab9f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
a3ab9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3ab9f
a3ab9f
* Thu Jul 12 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.0-2
a3ab9f
- Removed the duplicated "git checkout" in comment.
a3ab9f
- BR: rubygem(therubyracer) for tests, don't use deprecated js.
a3ab9f
a3ab9f
* Wed Jun 13 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.0-1
a3ab9f
- Initial package