|
|
|
@ -3,8 +3,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.14.14
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 2.0.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
|
|
|
|
|
# aruba itself is MIT
|
|
|
|
|
# icons in templates/images are CC-BY
|
|
|
|
@ -13,20 +13,26 @@ 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
|
|
|
|
|
Source1: %{name}-%{version}-testsuite.tar.gz
|
|
|
|
|
# Source1 is created by $ bash %%SOURCE2 %%VERSION
|
|
|
|
|
Source2: %{gem_name}-create-test-suite-tarball.sh
|
|
|
|
|
# Make bundler runtime dependency optional
|
|
|
|
|
Patch1: rubygem-aruba-2.0.0-make-bundler-optional.patch
|
|
|
|
|
# Workaround to make rspec-core rspec test suite pass
|
|
|
|
|
Patch2: rubygem-aruba-2.0.0-make-rubygems-dependency-explicit.patch
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
BuildRequires: rubygem(childprocess)
|
|
|
|
|
BuildRequires: rubygem(contracts)
|
|
|
|
|
BuildRequires: rubygem(cucumber)
|
|
|
|
|
BuildRequires: rubygem(irb)
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
BuildRequires: rubygem(pry)
|
|
|
|
|
BuildRequires: rubygem(rspec) >= 3
|
|
|
|
|
BuildRequires: rubygem(contracts) >= 0.9
|
|
|
|
|
BuildRequires: rubygem(thor) >= 0.19
|
|
|
|
|
BuildRequires: rubygem(irb)
|
|
|
|
|
BuildRequires: rubygem(thor)
|
|
|
|
|
# features/steps/command/shell.feature:97 # Scenario: Running python commands
|
|
|
|
|
BuildRequires: %{_bindir}/python3
|
|
|
|
|
|
|
|
|
@ -46,11 +52,13 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
%autosetup -n %{gem_name}-%{version} -p1 -a 1
|
|
|
|
|
mv ../%{gem_name}-%{version}.gemspec .
|
|
|
|
|
|
|
|
|
|
# Relax childprocess dependency
|
|
|
|
|
%gemspec_remove_dep -g childprocess '>= 0.6.3' -s %{gem_name}-%{version}.gemspec
|
|
|
|
|
%gemspec_remove_dep -g childprocess '>= 2.0' -s %{gem_name}-%{version}.gemspec
|
|
|
|
|
# Remove bundler dependency harder
|
|
|
|
|
sed -i '\@dependency.*bundler@d' %{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}-%{version}.gemspec
|
|
|
|
@ -62,32 +70,23 @@ cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{gem_cache}
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
rm -rf \
|
|
|
|
|
.[^.]* \
|
|
|
|
|
Gemfile \
|
|
|
|
|
Rakefile \
|
|
|
|
|
appveyor.yml \
|
|
|
|
|
%{gem_name}.gemspec \
|
|
|
|
|
cucumber.yml \
|
|
|
|
|
config/ \
|
|
|
|
|
features/ \
|
|
|
|
|
fixtures/ \
|
|
|
|
|
spec/ \
|
|
|
|
|
script/ \
|
|
|
|
|
%{nil}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd %{gem_name}-%{version}
|
|
|
|
|
for f in *
|
|
|
|
|
do
|
|
|
|
|
basef=$(basename $f)
|
|
|
|
|
target=../%{gem_instdir}/${basef}
|
|
|
|
|
unlink $target || true
|
|
|
|
|
ln -sf $(pwd)/$f $target
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
# Drop the fuubar dependency.
|
|
|
|
|
rm .rspec
|
|
|
|
|
|
|
|
|
|
# We don't care about code coverage.
|
|
|
|
|
# We don't need Bundler.
|
|
|
|
|
sed -i spec/spec_helper.rb \
|
|
|
|
|
-e '\@[sS]imple[Cc]ov@d' \
|
|
|
|
|
-e '\@[Bb]undler@d' \
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
env RUBYOPT=-rtime \
|
|
|
|
@ -116,13 +115,14 @@ fi
|
|
|
|
|
|
|
|
|
|
# The following test fails on ppc64le, due to different block size
|
|
|
|
|
# (expected: 64k actual: 4k), disabling
|
|
|
|
|
mv features/04_aruba_api/filesystem/report_disk_usage.feature{,.skip}
|
|
|
|
|
PPC64_ENV_P=$(uname -m | grep -q ppc64 && echo 0 || echo 1)
|
|
|
|
|
if test x"${PPC64_ENV_P}" == x0
|
|
|
|
|
then
|
|
|
|
|
mv features/04_aruba_api/filesystem/report_disk_usage.feature{,.skip}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Get rid of Bundler
|
|
|
|
|
sed -i Rakefile \
|
|
|
|
|
-e '\@[Bb]undler@d' \
|
|
|
|
|
-e 's|bundle exec ||' \
|
|
|
|
|
%{nil}
|
|
|
|
|
# Disable bundler tests.
|
|
|
|
|
mv features/03_testing_frameworks/cucumber/disable_bundler.feature{,.skip}
|
|
|
|
|
|
|
|
|
|
# Adjust test cases referring to $HOME.
|
|
|
|
|
sed -i features/04_aruba_api/core/expand_path.feature -e "s|/home/\[\^/\]+|$(echo $HOME)|"
|
|
|
|
@ -133,13 +133,16 @@ sed -i features/02_configure_aruba/home_directory.feature \
|
|
|
|
|
|
|
|
|
|
# Make the Aruba always awailable.
|
|
|
|
|
env RUBYOPT=-I$(pwd)/lib \
|
|
|
|
|
cucumber
|
|
|
|
|
cucumber --publish-quiet
|
|
|
|
|
|
|
|
|
|
# Go back the skipped test
|
|
|
|
|
mv features/04_aruba_api/filesystem/report_disk_usage.feature{.skip,}
|
|
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
if test x"${PPC64_ENV_P}" == x0
|
|
|
|
|
then
|
|
|
|
|
mv features/04_aruba_api/filesystem/report_disk_usage.feature{.skip,}
|
|
|
|
|
fi
|
|
|
|
|
mv features/03_testing_frameworks/cucumber/disable_bundler.feature{.skip,}
|
|
|
|
|
|
|
|
|
|
popd # from .%%{gem_instdir}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
@ -147,18 +150,23 @@ popd
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_instdir}/bin/
|
|
|
|
|
%{gem_instdir}/exe
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{gem_instdir}/TODO.md
|
|
|
|
|
%{gem_instdir}/doc/
|
|
|
|
|
%{gem_instdir}/templates/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jan 14 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.0.0-2
|
|
|
|
|
- Make bundler optional again
|
|
|
|
|
- Workaround patch to make rspec-core test suite pass
|
|
|
|
|
- Some cleanup
|
|
|
|
|
|
|
|
|
|
* Mon Sep 06 2021 Pavel Valena <pvalena@redhat.com> - 2.0.0-1
|
|
|
|
|
- Update to aruba 2.0.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.14-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|