Disable unwanted dependencies in RHEL builds
This commit is contained in:
parent
d29669eee7
commit
cacbf23522
@ -1,5 +1,9 @@
|
|||||||
%global gem_name coderay
|
%global gem_name coderay
|
||||||
|
|
||||||
|
%if %{undefined rhel}
|
||||||
|
%bcond_without shoulda
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 5%{?dist}
|
Release: 5%{?dist}
|
||||||
@ -18,7 +22,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 +85,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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user