# Generated from poltergeist-1.18.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name poltergeist Name: rubygem-%{gem_name} Version: 1.18.1 Release: 1%{?dist} Summary: PhantomJS driver for Capybara License: MIT URL: https://github.com/teampoltergeist/poltergeist Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(launchy) >= 2.0 # BuildRequires: rubygem(launchy) < 3 # BuildRequires: rubygem(rspec) >= 3.7 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(sinatra) <= 3.0 # BuildRequires: rubygem(image_size) >= 1.0 # BuildRequires: rubygem(image_size) < 2 # BuildRequires: rubygem(pdf-reader) < 3.0 # BuildRequires: rubygem(pdf-reader) >= 1.3.3 # BuildRequires: rubygem(coffee-script) >= 2.2 # BuildRequires: rubygem(coffee-script) < 3 # BuildRequires: rubygem(guard-coffeescript) >= 2.0.0 # BuildRequires: rubygem(guard-coffeescript) < 2.1 # BuildRequires: rubygem(coffee-script-source) >= 1.12.2 # BuildRequires: rubygem(coffee-script-source) < 1.13 # BuildRequires: rubygem(listen) >= 3.0.6 # BuildRequires: rubygem(listen) < 3.1 # BuildRequires: rubygem(erubi) BuildArch: noarch %description Poltergeist is a driver for Capybara that allows you to run your tests on a headless WebKit browser, provided by PhantomJS. %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}/ %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Tue Sep 14 2021 mockbuilder - 1.18.1-1 - Initial package