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:
parent
a3b3274a7b
commit
becfc97445
@ -1,5 +1,7 @@
|
|||||||
%global gem_name coderay
|
%global gem_name coderay
|
||||||
|
|
||||||
|
%bcond_with shoulda
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
@ -18,7 +20,9 @@ BuildRequires: rubygems-devel
|
|||||||
BuildRequires: ruby >= 1.8.6
|
BuildRequires: ruby >= 1.8.6
|
||||||
BuildRequires: rubygem(test-unit)
|
BuildRequires: rubygem(test-unit)
|
||||||
BuildRequires: rubygem(rspec)
|
BuildRequires: rubygem(rspec)
|
||||||
|
%if %{with shoulda}
|
||||||
BuildRequires: rubygem(shoulda-context)
|
BuildRequires: rubygem(shoulda-context)
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -79,7 +83,9 @@ ruby ./test/functional/suite.rb
|
|||||||
ruby ./test/functional/for_redcloth.rb
|
ruby ./test/functional/for_redcloth.rb
|
||||||
ruby ./test/unit/suite.rb
|
ruby ./test/unit/suite.rb
|
||||||
# This test depends on rubygem-shoulda-context.
|
# This test depends on rubygem-shoulda-context.
|
||||||
|
%if %{with shoulda}
|
||||||
ruby ./test/executable/suite.rb
|
ruby ./test/executable/suite.rb
|
||||||
|
%endif
|
||||||
rspec spec
|
rspec spec
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -97,6 +103,10 @@ popd
|
|||||||
%doc %{gem_instdir}/README_INDEX.rdoc
|
%doc %{gem_instdir}/README_INDEX.rdoc
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user