Disable unwanted dependencies in RHEL builds

This commit is contained in:
Yaakov Selkowitz 2023-03-10 15:49:27 -05:00
parent a6622412d5
commit 4597d7c301

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}