indentation

f38
Mamoru TASAKA 3 years ago
parent 46393b8cd7
commit 3a45f720e3

@ -5,6 +5,7 @@ Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba
Name: rubygem-%{gem_name}
Version: 0.14.14
Release: 7%{?dist}
# aruba itself is MIT
# icons in templates/images are CC-BY
# jquery.js itself is MIT or GPLv2
@ -12,9 +13,11 @@ Release: 7%{?dist}
License: MIT and CC-BY and (MIT or GPLv2) and (MIT or BSD or GPLv2)
URL: http://github.com/cucumber/aruba
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
# For %%check
BuildRequires: rubygem(cucumber) >= 1.3.19
BuildRequires: rubygem(childprocess) >= 0.5.6
BuildRequires: rubygem(ffi) >= 1.9.10
@ -25,7 +28,8 @@ BuildRequires: rubygem(contracts) >= 0.9
BuildRequires: rubygem(thor) >= 0.19
BuildRequires: rubygem(irb)
# features/steps/command/shell.feature:97 # Scenario: Running python commands
BuildRequires: /usr/bin/python3
BuildRequires: %{_bindir}/python3
BuildArch: noarch
%description
@ -43,14 +47,15 @@ Documentation for %{name}
%prep
%setup -q -n %{gem_name}-%{version}
mv ../%{gem_name}-%{version}.gemspec .
%gemspec_remove_dep -g childprocess '>= 0.6.3'
# Relax childprocess dependency
%gemspec_remove_dep -g childprocess '>= 0.6.3' -s %{gem_name}-%{version}.gemspec
%build
gem build ../%{gem_name}-%{version}.gemspec
gem build %{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
@ -66,10 +71,12 @@ rm -rf \
%{gem_name}.gemspec \
cucumber.yml \
config/ \
features/ \
fixtures/ \
spec/ \
script/ \
%{nil}
popd
%check
pushd .%{gem_instdir}
@ -83,7 +90,8 @@ sed -i spec/spec_helper.rb \
-e '\@[Bb]undler@d' \
%{nil}
RUBYOPT=-rtime rspec spec
env RUBYOPT=-rtime \
rspec spec
# We don't care about code coverage.
sed -i features/support/env.rb \
@ -124,7 +132,8 @@ sed -i features/02_configure_aruba/home_directory.feature \
-e "\@Set to aruba's working directory@,\@Scenario@s|/home/|$(echo $HOME)/|"
# Make the Aruba always awailable.
RUBYOPT=-I$(pwd)/lib cucumber
env RUBYOPT=-I$(pwd)/lib \
cucumber
# Go back the skipped test
mv features/04_aruba_api/filesystem/report_disk_usage.feature{.skip,}
@ -136,9 +145,9 @@ popd
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%doc %{gem_instdir}/README.md
%{gem_libdir}
%{gem_instdir}/bin/
%exclude %{gem_instdir}/config
%{gem_spec}
%files doc
@ -147,7 +156,6 @@ popd
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/TODO.md
%{gem_instdir}/doc/
%{gem_instdir}/features/
%{gem_instdir}/templates/
%changelog

Loading…
Cancel
Save