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.
This commit is contained in:
parent
73e82a7350
commit
2d95f7b052
@ -92,9 +92,15 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
|||||||
exit 0
|
exit 0
|
||||||
%endif
|
%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
|
# Don't call bundler
|
||||||
sed -i spec/integration/rails_support_spec.rb \
|
sed -i spec/integration/rails_support_spec.rb \
|
||||||
-e 's|bundle exec rspec|rspec|'
|
-e 's|bundle exec rspec|rspec|'
|
||||||
|
%endif
|
||||||
|
|
||||||
# library_wide_checks.rb needs UTF-8
|
# library_wide_checks.rb needs UTF-8
|
||||||
LANG=C.UTF-8
|
LANG=C.UTF-8
|
||||||
|
Loading…
Reference in New Issue
Block a user