Projects
Eulaceura:Mainline:GA
rubygem-execjs
_service:obs_scm:rubygem-execjs.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:rubygem-execjs.spec of Package rubygem-execjs
%global gem_name execjs Summary: Run JavaScript code from Ruby Name: rubygem-%{gem_name} Version: 2.8.1 Release: 1 License: MIT URL: https://github.com/rails/execjs Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: https://github.com/rails/%{gem_name}/archive/v%{version}.tar.gz # Revert f47c02c and 8b22842 fixing conflict to unbundle json2.js. Patch0: rubygem-execjs-2.7.0-delete-JScript-and-json2.js.patch BuildRequires: ruby(release) rubygems-devel rubygem(minitest) nodejs BuildArch: noarch %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} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %patch0 -p1 sed -i -e '/files/ s|"lib/execjs/support/jscript_runner.js".freeze, ||' \ -e '/files/ s|"lib/execjs/support/json2.js".freeze, ||' %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} tar xzf %{SOURCE1} ln -s %{gem_name}-%{version}/test test ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/MIT-LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Tue Jun 28 2022 baizhonggui <baizhonggui@h-partners.com> - 2.8.1-1 - update to 2.8.1 * Fri Aug 21 2020 fanjiachen <fanjiachen3@huawei.com> - 2.7.0-1 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2