Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Troy Dawson
038b70e577 Kill python test entirely to redure BR, it is not important (#2237692) 2023-09-12 09:35:35 -07:00
Troy Dawson
ffb826e076 Remove tests until all the dependencies are in EPEL8 2020-01-16 11:38:02 -08:00

View file

@ -1,10 +1,13 @@
# Generated from aruba-0.4.11.gem by gem2rpm -*- rpm-spec -*-
%global gem_name aruba
# Not all test dependencies are in EPEL8 yet
%bcond_with tests
Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba
Name: rubygem-%{gem_name}
Version: 0.14.14
Release: 1%{?dist}
Release: 1%{?dist}.2
# aruba itself is MIT
# icons in templates/images are CC-BY
# jquery.js itself is MIT or GPLv2
@ -15,6 +18,7 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
%if %{with tests}
BuildRequires: rubygem(cucumber) >= 1.3.19
BuildRequires: rubygem(childprocess) >= 0.5.6
BuildRequires: rubygem(ffi) >= 1.9.10
@ -23,8 +27,7 @@ BuildRequires: rubygem(pry)
BuildRequires: rubygem(rspec) >= 3
BuildRequires: rubygem(contracts) >= 0.9
BuildRequires: rubygem(thor) >= 0.19
# features/steps/command/shell.feature:97 # Scenario: Running python commands
BuildRequires: /usr/bin/python3
%endif
BuildArch: noarch
%description
@ -70,6 +73,7 @@ rm -rf \
script/ \
%{nil}
%if %{with tests}
%check
pushd .%{gem_instdir}
# Drop the fuubar dependency.
@ -93,17 +97,10 @@ sed -i features/support/env.rb \
sed -i fixtures/cli-app/spec/spec_helper.rb \
-e "\@\$LOAD_PATH@s|\.\./\.\./lib|$(pwd)/lib|"
# /usr/bin/python is reporting deprecation warning :/
# No need to modify @requires-python (in run_commands.feature and hooks.rb)
if ! grep -q python3 features/steps/command/shell.feature
then
sed -i features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature \
-e 's|python|python3|'
sed -i lib/aruba/generators/script_file.rb \
-e '\@interpreter@s|A-Z|A-Z0-9|'
sed -i features/01_getting_started_with_aruba/run_commands.feature \
-e '\@[^-]python@s|python|python3|'
fi
# Kill tests which requires python explicitly
# (to reduce BR, anyway this test is not important)
sed -i features/step_definitions/hooks.rb \
-e '\@platform.which@s|"python"|"no-python"|'
# Get rid of Bundler
sed -i Rakefile \
@ -121,6 +118,7 @@ sed -i features/02_configure_aruba/home_directory.feature \
# Make the Aruba always awailable.
RUBYOPT=-I$(pwd)/lib cucumber
popd
%endif
%files
@ -142,6 +140,12 @@ popd
%{gem_instdir}/templates/
%changelog
* Tue Sep 12 2023 Troy Dawson <tdawson@redhat.com> - 0.14.14-1.2
- Kill python test entirely to redure BR, it is not important (#2237692)
* Thu Jan 16 2020 Troy Dawson <tdawson@redhat.com> - 0.14.14-1.1
- Remove tests until all the dependencies are in EPEL8
* Mon Dec 30 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.14.14-1
- 0.14.14