- Fix build failure with libxml2 >= 2.7.7

This commit is contained in:
Mamoru Tasaka 2010-04-28 16:17:11 +00:00
parent 6fecb2a9b0
commit 14517e31e2
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- nokogiri-1.4.1/test/html/test_element_description.rb.fail 2010-04-29 00:37:20.000000000 +0900
+++ nokogiri-1.4.1/test/html/test_element_description.rb 2010-04-29 01:06:02.000000000 +0900
@@ -56,7 +56,7 @@
def test_subelements
sub_elements = ElementDescription['body'].sub_elements
- assert_equal 61, sub_elements.length
+ assert ( 61 <= sub_elements.length )
end
def test_default_sub_element

View File

@ -13,11 +13,12 @@
Summary: An HTML, XML, SAX, and Reader parser
Name: rubygem-%{gemname}
Version: 1.4.1
Release: 1%{?dist}
Release: 2%{?dist}
Group: Development/Languages
License: MIT
URL: http://nokogiri.rubyforge.org/nokogiri/
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
Patch0: nokogiri-1.4.1-test-xml-element-number.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ruby(abi) = %{rubyabi}
@ -71,6 +72,10 @@ gem install \
-V --force \
%{SOURCE0}
pushd .%{geminstdir}
%patch0 -p1 -b .fail
popd
%build
# cflags wrong (-O3 passed), recompiling
pushd ./%{geminstdir}
@ -202,6 +207,9 @@ popd
%{ruby_sitelib}/xsd/
%changelog
* Thu Apr 29 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.1-2
- Fix build failure with libxml2 >= 2.7.7
* Tue Dec 15 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.1-1
- 1.4.1