diff --git a/rubygem-bundler.spec b/rubygem-bundler.spec index 18562f4..ff8a062 100644 --- a/rubygem-bundler.spec +++ b/rubygem-bundler.spec @@ -1,7 +1,7 @@ %global gem_name bundler # Enable test when building on local. -%{?_with_tests: %global enable_tests 1} +%bcond_with tests # Ideally it should be checked against FileUtils::VERSION. # https://github.com/ruby/fileutils/pull/12 @@ -27,7 +27,7 @@ Requires: rubygem(io-console) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby -%if 0%{?enable_tests} > 0 +%if %{with tests} BuildRequires: ruby-devel BuildRequires: rubygem(io-console) BuildRequires: rubygem(rspec) >= 3.0 @@ -113,7 +113,7 @@ ruby -e ' # Test suite has to be disabled for official build, since it downloads various # gems, which are not in Fedora or they have different version etc. # Nevertheless, the test suite should run for local builds. -%if 0%{?enable_tests} > 0 +%if %{with tests} tar xzvf %{SOURCE1}