diff --git a/rubygem-jgrep.spec b/rubygem-jgrep.spec index cebb96c..46b388c 100644 --- a/rubygem-jgrep.spec +++ b/rubygem-jgrep.spec @@ -14,8 +14,10 @@ Patch0: 0001-Fix-test-run.patch BuildArch: noarch BuildRequires: rubygems-devel +%if 0%{?rhel} == 0 BuildRequires: rubygem(rspec) BuildRequires: rubygem(mocha) +%endif Requires: ruby(release) >= 1.8 Requires: rubygems Provides: rubygem(%{gem_name}) = %{version}-%{release} @@ -52,8 +54,10 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ cp -a ./%{_bindir}/* %{buildroot}%{_bindir} +%if 0%{?rhel} == 0 %check rspec -Ilib spec +%endif %files @@ -72,6 +76,9 @@ rspec -Ilib spec %changelog +* Wed Apr 30 2014 Lubomir Rintel - 1.3.3-3 +- Disable tests on rhel + * Tue Apr 29 2014 Lubomir Rintel - 1.3.3-2 - Run tests (Lukas Bezdicka, #1092000) - Fix issue with tests. (Guess adding the run was a good idea...)