From 117c0dc1e7113af00ce3384368d5551964127d7a Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Tue, 25 May 2010 17:24:27 +0000 Subject: [PATCH] - 1.4.2 --- .cvsignore | 2 +- nokogiri-1.4.1-test-xml-element-number.patch | 11 ----------- nokogiri-1.4.2-rake-task.patch | 15 +++++++++++++++ nokogiri-1.4.2-test-xml-element-number.patch | 11 +++++++++++ rubygem-nokogiri.spec | 16 ++++++++++++---- sources | 2 +- 6 files changed, 40 insertions(+), 17 deletions(-) delete mode 100644 nokogiri-1.4.1-test-xml-element-number.patch create mode 100644 nokogiri-1.4.2-rake-task.patch create mode 100644 nokogiri-1.4.2-test-xml-element-number.patch diff --git a/.cvsignore b/.cvsignore index 2387bdb..5c0ef06 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -nokogiri-1.4.1.gem +nokogiri-1.4.2.gem diff --git a/nokogiri-1.4.1-test-xml-element-number.patch b/nokogiri-1.4.1-test-xml-element-number.patch deleted file mode 100644 index ee85228..0000000 --- a/nokogiri-1.4.1-test-xml-element-number.patch +++ /dev/null @@ -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 diff --git a/nokogiri-1.4.2-rake-task.patch b/nokogiri-1.4.2-rake-task.patch new file mode 100644 index 0000000..7838206 --- /dev/null +++ b/nokogiri-1.4.2-rake-task.patch @@ -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 diff --git a/nokogiri-1.4.2-test-xml-element-number.patch b/nokogiri-1.4.2-test-xml-element-number.patch new file mode 100644 index 0000000..117134b --- /dev/null +++ b/nokogiri-1.4.2-test-xml-element-number.patch @@ -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 + diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index d476248..1ce0273 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -12,13 +12,14 @@ Summary: An HTML, XML, SAX, and Reader parser Name: rubygem-%{gemname} -Version: 1.4.1 -Release: 2%{?dist} +Version: 1.4.2 +Release: 1%{?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 +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) BuildRequires: ruby(abi) = %{rubyabi} @@ -73,7 +74,8 @@ gem install \ %{SOURCE0} pushd .%{geminstdir} -%patch0 -p1 -b .fail +%patch0 -p1 -b .orig_fail +%patch1 -p1 -b .orig_task popd %build @@ -88,6 +90,9 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} cp -a ./%{gemdir}/* %{buildroot}%{gemdir} +# Remove backup file +find %{buildroot} -name \*.orig_\* | xargs rm -vf + # move arch dependent files to %%ruby_sitearch mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname} mv %{buildroot}%{geminstdir}/lib/%{gemname}/*.so \ @@ -207,6 +212,9 @@ popd %{ruby_sitelib}/xsd/ %changelog +* Wed May 26 2010 Mamoru Tasaka - 1.4.2-1 +- 1.4.2 + * Thu Apr 29 2010 Mamoru Tasaka - 1.4.1-2 - Fix build failure with libxml2 >= 2.7.7 diff --git a/sources b/sources index 74f3a40..41079e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -13405908a02c71daf1f302392ffa1507 nokogiri-1.4.1.gem +f229d6ce94bc474c7e41e43ece32d4d8 nokogiri-1.4.2.gem