Merge #1 Disable unwanted dependencies in RHEL builds

This commit is contained in:
Mamoru TASAKA 2023-03-13 01:44:23 +00:00
commit d84f54187a

View File

@ -31,8 +31,10 @@ BuildRequires: rubygem(rake)
# Some features in expectations needs this
BuildRequires: rubygem(rspec-support) >= 3.9.3
BuildRequires: rubygem(minitest) >= 5
%if ! 0%{?rhel}
BuildRequires: rubygem(aruba)
BuildRequires: rubygem(cucumber)
%endif
BuildRequires: git
%endif
BuildArch: noarch
@ -72,6 +74,7 @@ LANG=C.UTF-8
export RUBYLIB=$(pwd)/lib
rspec spec/
%if ! 0%{?rhel}
# Skip one failing scenario, needs investigating...
sed -i features/built_in_matchers/include.feature -e '\@skip-on-fedora@d'
sed -i features/built_in_matchers/include.feature -e 's|^\([ \t]*\)\(Scenario: counts usage.*\)|\1@skip-on-fedora\n\1\2|'
@ -81,6 +84,7 @@ cucumber \
--tag "not @skip-on-fedora" \
%{nil}
%endif
%endif
%files
%dir %{gem_instdir}