%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} # Generated from cucumber-wire-0.0.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name cucumber-wire %{?_with_bootstrap: %global bootstrap 1} Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.0.1 Release: 3%{?dist} Summary: Wire protocol for Cucumber Group: Development/Languages License: MIT URL: http://cucumber.io Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) BuildRequires: %{?scl_prefix_ruby}ruby BuildRequires: %{?scl_prefix_ruby}rubygems-devel %if ! 0%{?bootstrap} # Dependencies for %%check BuildRequires: %{?scl_prefix}rubygem(aruba) BuildRequires: %{?scl_prefix}rubygem(cucumber) BuildRequires: %{?scl_prefix}rubygem(rspec) %endif BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} # Explicitly require runtime subpackage, as long as older scl-utils do not generate it %{?scl:Requires: %{?scl_prefix}runtime} %description Wire protocol for Cucumber. %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{pkg_name}. %prep %{?scl:scl enable %{scl} - << \EOF} set -e gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} set -e gem build %{gem_name}.gemspec %gem_install %{?scl:EOF} %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %if ! 0%{?bootstrap} %check pushd .%{gem_instdir} %{?scl:scl enable %{scl} - << \EOF} set -e LANG=C.UTF-8 rspec spec # Not exactly sure why this is failing :/ sed -i '/^ And it should fail with exactly:/,$ s/^/#/' \ features/timeouts.feature cucumber %{?scl:EOF} popd %endif %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/cucumber-wire.gemspec %{gem_instdir}/features %{gem_instdir}/spec %changelog * Thu Jan 19 2017 Vít Ondruch - 0.0.1-3 - Enable tests disabled due to old version of diff-lcs. * Wed Jan 11 2017 Jun Aruga - 0.0.1-2 - Initial package