# Generated from opal-1.3.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name opal Name: rubygem-%{gem_name} Version: 1.3.1 Release: 1%{?dist} Summary: Ruby runtime and core library for JavaScript License: MIT URL: https://opalrb.com Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.3 # BuildRequires: rubygem(sourcemap) >= 0.1.0 # BuildRequires: rubygem(sourcemap) < 0.2 # BuildRequires: rubygem(rspec) >= 3.9 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(octokit) >= 4.9 # BuildRequires: rubygem(octokit) < 5 # BuildRequires: rubygem(rack-test) # BuildRequires: rubygem(selenium-webdriver) # BuildRequires: rubygem(benchmark-ips) < 2.8 # BuildRequires: rubygem(sinatra) # BuildRequires: rubygem(rubocop) >= 0.67.0 # BuildRequires: rubygem(rubocop) < 0.68 # BuildRequires: rubygem(rubocop-performance) >= 1.1.0 # BuildRequires: rubygem(rubocop-performance) < 1.2 # BuildRequires: rubygem(rack) # BuildRequires: rubygem(webrick) BuildArch: noarch %description Opal is a Ruby to JavaScript compiler. It is source-to-source, making it fast as a runtime. Opal includes a compiler (which can be run in any browser), a corelib and runtime implementation. The corelib/runtime is also very small. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/opal %{_bindir}/opal-build %{_bindir}/opal-repl %{gem_instdir}/.codeclimate.yml %{gem_instdir}/.eslintrc.await.js %{gem_instdir}/.eslintrc.js %{gem_instdir}/.gitattributes %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.gitmodules %{gem_instdir}/.inch.yml %{gem_instdir}/.overcommit.yml %exclude %{gem_instdir}/.rubocop.yml %{gem_instdir}/.rubocop %exclude %{gem_instdir}/.yardopts %{gem_instdir}/CONDUCT.md %{gem_instdir}/Guardfile %{gem_instdir}/HACKING.md %license %{gem_instdir}/LICENSE %{gem_instdir}/benchmark-ips %{gem_instdir}/benchmark %{gem_instdir}/bin %{gem_instdir}/config.ru %{gem_instdir}/exe %{gem_libdir} %{gem_instdir}/opal %{gem_instdir}/package.json %{gem_instdir}/stdlib %{gem_instdir}/tasks %{gem_instdir}/vendored-minitest %{gem_instdir}/yarn.lock %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %doc %{gem_instdir}/UNRELEASED.md %doc %{gem_instdir}/docs %{gem_instdir}/examples %{gem_instdir}/opal.gemspec %{gem_instdir}/spec %{gem_instdir}/test %changelog * Wed Nov 03 2021 mockbuilder - 1.3.1-1 - Initial package