From becfc974459af8f482de6ceaf72fe1278f3371e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 24 May 2021 10:18:56 +0200 Subject: [PATCH] Conditionaly disable `BR: rubygem(shoulda-context)`. This helps to cut dependency chain. Only the CLI test cases are disabled due to this and they are not our focus, because we ship rubygem-coderay just as an dependency of rubygem-rspec-core. Resolves: rhbz#1937981 --- rubygem-coderay.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rubygem-coderay.spec b/rubygem-coderay.spec index 24edc4e..1e5e8e4 100644 --- a/rubygem-coderay.spec +++ b/rubygem-coderay.spec @@ -1,5 +1,7 @@ %global gem_name coderay +%bcond_with shoulda + Name: rubygem-%{gem_name} Version: 1.1.3 Release: 2%{?dist} @@ -18,7 +20,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 +83,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 @@ -97,6 +103,10 @@ popd %doc %{gem_instdir}/README_INDEX.rdoc %changelog +* Mon May 24 2021 Vít Ondruch - 1.1.3-2 +- Conditionaly disable `BR: rubygem(shoulda-context)`. + Resolves: rhbz#1937981 + * Fri Apr 16 2021 Mohan Boddu - 1.1.3-2 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937