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
This commit is contained in:
Vít Ondruch 2021-05-24 10:18:56 +02:00
parent a3b3274a7b
commit becfc97445
1 changed files with 10 additions and 0 deletions

View File

@ -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 <vondruch@redhat.com> - 1.1.3-2
- Conditionaly disable `BR: rubygem(shoulda-context)`.
Resolves: rhbz#1937981
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.3-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937