Revision 35e40bba
Added by Dominic Cleal over 8 years ago
rubygem-rbvmomi/rubygem-rbvmomi.spec | ||
---|---|---|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
||
BuildRequires: %{?scl_prefix}rubygem(nokogiri) >= 1.4.1
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(builder)
|
||
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
|
||
BuildRequires: %{?scl_prefix_ruby}rubygem(test-unit)
|
||
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
||
BuildRequires: %{?scl_prefix_ruby}ruby >= 1.8.7
|
||
BuildArch: noarch
|
||
... | ... | |
|
||
%check
|
||
pushd %{buildroot}%{gem_instdir}
|
||
%{?scl:scl enable %{scl} "}
|
||
testrb -I lib test/test_*.rb
|
||
%{?scl:"}
|
||
%{?scl:scl enable %{scl} - <<EOF}
|
||
ruby -Ilib:test -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
||
%{?scl:EOF}
|
||
popd
|
||
|
||
%files
|
Also available in: Unified diff
Fix build errors and modernise specs
Mostly importing latest changes from Fedora and using gem_install macro
to ensure specs build using standard settings under newer Ruby packages.