From cacbf235227ce6fe3c1b8a1b7f4b62344bca9ba2 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 3 Mar 2023 13:58:27 -0500 Subject: [PATCH] Disable unwanted dependencies in RHEL builds --- rubygem-coderay.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rubygem-coderay.spec b/rubygem-coderay.spec index 6e19790..039a7e4 100644 --- a/rubygem-coderay.spec +++ b/rubygem-coderay.spec @@ -1,5 +1,9 @@ %global gem_name coderay +%if %{undefined rhel} +%bcond_without shoulda +%endif + Name: rubygem-%{gem_name} Version: 1.1.3 Release: 5%{?dist} @@ -18,7 +22,9 @@ BuildRequires: rubygems-devel BuildRequires: ruby >= 1.8.6 BuildRequires: rubygem(test-unit) BuildRequires: rubygem(rspec) +%if %{with shoulda} BuildRequires: rubygem(shoulda-context) +%endif BuildArch: noarch %description @@ -79,7 +85,9 @@ ruby ./test/functional/suite.rb ruby ./test/functional/for_redcloth.rb ruby ./test/unit/suite.rb # This test depends on rubygem-shoulda-context. +%if %{with shoulda} ruby ./test/executable/suite.rb +%endif rspec spec popd