From 889062e0e4c0dd51b6e5380e3f49c541dfe916ac Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Oct 17 2019 12:40:58 +0000 Subject: Remove backup file and avoid unnecessary reversal (1) If `%need_bootstrap_set` is set then the file won't exist and build will fail due to following `mv` command. (2) In `%check` everything is installed and there's no need to revert changes. --- diff --git a/rubygem-rspec-core.spec b/rubygem-rspec-core.spec index 5c580dc..98f9633 100644 --- a/rubygem-rspec-core.spec +++ b/rubygem-rspec-core.spec @@ -155,15 +155,13 @@ sed -i '\@expect.*dirs\.pop@d' \ # - and this causes some test errors on rspec-core. # fixing this error without modifying rspec-core "code" is very hard, # once modifying source itself. -sed -i.warn lib/rspec/core/configuration_options.rb \ +sed -i lib/rspec/core/configuration_options.rb \ -e '\@because the HOME environment variable is not set@s|RSpec\.warning|#RSpec.warning|' ruby -rrubygems -Ilib/ -S exe/rspec || \ ruby -rrubygems -Ilib/ -S exe/rspec --tag ~broken %endif -mv lib/rspec/core/configuration_options.rb{.warn,} - %files %dir %{gem_instdir}