From 1f2c7cb1de8fa45b73a886fed7e940ebbe07068e Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 21 Jan 2021 11:31:54 +0100 Subject: [PATCH] Do not run tests for any %{rhel} distros. --- rubygem-asciidoctor.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index e8353f0..9239b4a 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -25,7 +25,7 @@ BuildRequires: ruby(abi) = 1.8 %endif BuildRequires: rubygems-devel BuildRequires: ruby(rubygems) -%if 0%{?el6} || 0%{?el7} +%if 0%{?rhel} # Dependencies aren't available on EPEL %else BuildRequires: rubygem(coderay) @@ -82,7 +82,7 @@ gem build %{gem_name}.gemspec %check pushd .%{gem_instdir} -%if 0%{?el6} || 0%{?el7} +%if 0%{?rhel} # Asciidoctor tests require Minitest 5, so we can't run them on EPEL %else LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'