From 2d95f7b05287d56c25726975c610a47c8a3b3521 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 2 Jun 2023 15:46:05 -0400 Subject: [PATCH] Fix RHEL build The aruba dependency is already avoided in BuildRequires, but these files require aruba. They cannot be removed though, as the tests fail if they are absent. --- rubygem-rspec-mocks.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rubygem-rspec-mocks.spec b/rubygem-rspec-mocks.spec index af0b86d..2fe8c61 100644 --- a/rubygem-rspec-mocks.spec +++ b/rubygem-rspec-mocks.spec @@ -92,9 +92,15 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} exit 0 %endif +%if %{defined rhel} +# avoid aruba dep on RHEL, but tests fail if files are removed entirely +echo -n > spec/integration/rails_support_spec.rb +echo -n > spec/support/aruba.rb +%else # Don't call bundler sed -i spec/integration/rails_support_spec.rb \ -e 's|bundle exec rspec|rspec|' +%endif # library_wide_checks.rb needs UTF-8 LANG=C.UTF-8