#1 Disable unwanted dependencies in RHEL builds
Merged a year ago by mtasaka. Opened a year ago by yselkowitz.
rpms/ yselkowitz/rubygem-rspec-expectations rawhide  into  rawhide

@@ -31,8 +31,10 @@ 

  # 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 @@ 

  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 @@ 

      --tag "not @skip-on-fedora" \

      %{nil}

  %endif

+ %endif

  

  %files

  %dir	%{gem_instdir}

aruba/cucumber are not wanted in RHEL/ELN buildroot. Comparable changes are in progress for the other rspec components.

ELN scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=98540209

Pull-Request has been merged by mtasaka

a year ago
Metadata