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