This commit is contained in:
Mamoru Tasaka 2010-05-25 17:24:27 +00:00
parent 14517e31e2
commit 117c0dc1e7
6 changed files with 40 additions and 17 deletions

View File

@ -1 +1 @@
nokogiri-1.4.1.gem nokogiri-1.4.2.gem

View File

@ -1,11 +0,0 @@
--- 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

@ -0,0 +1,15 @@
--- nokogiri-1.4.2/Rakefile.debug 2010-05-26 01:38:21.000000000 +0900
+++ nokogiri-1.4.2/Rakefile 2010-05-26 02:01:27.000000000 +0900
@@ -129,7 +129,11 @@
end
require 'tasks/test'
-require 'tasks/cross_compile'
+begin
+ require 'tasks/cross_compile'
+rescue RuntimeError => err
+ p err.message
+end
desc "set environment variables to build and/or test with debug options"
task :debug do

View File

@ -0,0 +1,11 @@
--- nokogiri-1.4.2/test/html/test_element_description.rb.elements 2010-05-26 01:26:12.000000000 +0900
+++ nokogiri-1.4.2/test/html/test_element_description.rb 2010-05-26 01:35:42.000000000 +0900
@@ -59,7 +59,7 @@
if Nokogiri::LIBXML_VERSION == '2.7.7'
assert_equal 65, sub_elements.length
else
- assert_equal 61, sub_elements.length
+ assert( 61 <= sub_elements.length )
end
end

View File

@ -12,13 +12,14 @@
Summary: An HTML, XML, SAX, and Reader parser Summary: An HTML, XML, SAX, and Reader parser
Name: rubygem-%{gemname} Name: rubygem-%{gemname}
Version: 1.4.1 Version: 1.4.2
Release: 2%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://nokogiri.rubyforge.org/nokogiri/ URL: http://nokogiri.rubyforge.org/nokogiri/
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
Patch0: nokogiri-1.4.1-test-xml-element-number.patch Patch0: nokogiri-1.4.2-test-xml-element-number.patch
Patch1: nokogiri-1.4.2-rake-task.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi}
@ -73,7 +74,8 @@ gem install \
%{SOURCE0} %{SOURCE0}
pushd .%{geminstdir} pushd .%{geminstdir}
%patch0 -p1 -b .fail %patch0 -p1 -b .orig_fail
%patch1 -p1 -b .orig_task
popd popd
%build %build
@ -88,6 +90,9 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir} mkdir -p %{buildroot}%{gemdir}
cp -a ./%{gemdir}/* %{buildroot}%{gemdir} cp -a ./%{gemdir}/* %{buildroot}%{gemdir}
# Remove backup file
find %{buildroot} -name \*.orig_\* | xargs rm -vf
# move arch dependent files to %%ruby_sitearch # move arch dependent files to %%ruby_sitearch
mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname} mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname}
mv %{buildroot}%{geminstdir}/lib/%{gemname}/*.so \ mv %{buildroot}%{geminstdir}/lib/%{gemname}/*.so \
@ -207,6 +212,9 @@ popd
%{ruby_sitelib}/xsd/ %{ruby_sitelib}/xsd/
%changelog %changelog
* Wed May 26 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.2-1
- 1.4.2
* Thu Apr 29 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.1-2 * 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 - Fix build failure with libxml2 >= 2.7.7

View File

@ -1 +1 @@
13405908a02c71daf1f302392ffa1507 nokogiri-1.4.1.gem f229d6ce94bc474c7e41e43ece32d4d8 nokogiri-1.4.2.gem