[rubygem-hpricot] fix test failure
Mamoru Tasaka
mtasaka at fedoraproject.org
Mon Dec 5 01:39:23 UTC 2011
commit 4743b09e26dce013e145078470aff3b8ef454b2e
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date: Mon Dec 5 10:39:17 2011 +0900
fix test failure
rubygem-hpricot.spec | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/rubygem-hpricot.spec b/rubygem-hpricot.spec
index d2fc61e..050017c 100644
--- a/rubygem-hpricot.spec
+++ b/rubygem-hpricot.spec
@@ -26,6 +26,9 @@ BuildRequires: ruby(rubygems)
BuildRequires: rubygem(rake)
# Others
BuildRequires: rubygem(rake-compiler)
+%if 0%{?fedora} >= 16
+BuildRequires: rubygem(rdoc)
+%endif
BuildRequires: ruby-devel
BuildRequires: ragel
Requires: ruby(abi) = %{rubyabi}
@@ -175,6 +178,15 @@ popd
export GEM_PATH=$(pwd)%{gemdir}
pushd .%{geminstdir}
+# Kill bundler dependency
+# Kill rdoc dependency on F-15 and below
+sed -i.dep \
+ -e '\@bundler/setup at d' \
+%if 0%{?fedora} < 16
+ -e '\@require at s|rdoc/task|rake/rdoctask|' \
+%endif
+ Rakefile
+
rake test
popd
@@ -201,7 +213,7 @@ popd
%{ruby_sitelib}/%{gemname}/
%changelog
-* Sun Dec 4 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.8.5-1
+* Mon Dec 5 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.8.5-1
- 0.8.5
* Wed Mar 2 2011 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.8.4-1
More information about the scm-commits
mailing list