- Try 1.5.0.beta.2

This commit is contained in:
Mamoru Tasaka 2010-10-18 01:39:43 +09:00
parent 01c36f3075
commit e107dc45ab
4 changed files with 54 additions and 33 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
nokogiri-1.4.2.gem nokogiri-1.4.2.gem
nokogiri-1.4.3.1.gem nokogiri-1.4.3.1.gem
/nokogiri-1.5.0.beta.2.gem

View File

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

@ -1,10 +1,16 @@
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']") %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
%define rubyabi 1.8 %global rubyabi 1.8
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global mainver 1.5.0
%define gemname nokogiri %global prever .beta.2
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global mainrel 1
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname nokogiri
%global geminstdir %{gemdir}/gems/%{gemname}-%{mainver}%{?prever}
# Note for packager: # Note for packager:
# Nokogiri 1.4.3.1 gem says that Nokogiri upstream will # Nokogiri 1.4.3.1 gem says that Nokogiri upstream will
@ -13,15 +19,13 @@
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.3.1 Version: %{mainver}
Release: 1%{?dist} Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?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}-%{mainver}%{?prever}.gem
Patch0: nokogiri-1.4.2-test-xml-element-number.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems) BuildRequires: ruby(rubygems)
BuildRequires: rubygem(hoe) BuildRequires: rubygem(hoe)
@ -43,12 +47,21 @@ correctly implemented CSS3 selector support as well as XPath support.
Nokogiri also features an Hpricot compatibility layer to help ease the change Nokogiri also features an Hpricot compatibility layer to help ease the change
to using correct CSS and XPath. to using correct CSS and XPath.
%if 0
%package jruby
Summary: JRuby support for %{name}
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
%description jruby
This package contains JRuby support for %{name}.
%endif
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Group: Documentation Group: Documentation
# Directory ownership issue
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: ruby(rubygems)
%description doc %description doc
This package contains documentation for %{name}. This package contains documentation for %{name}.
@ -73,9 +86,13 @@ gem install \
-V --force \ -V --force \
%{SOURCE0} %{SOURCE0}
pushd .%{geminstdir} # Permission
%patch0 -p1 -b .orig_fail chmod 0644 .%{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem
popd
# Remove precompiled Java .jar file
rm -f .%{geminstdir}/lib/*.jar
# For now remove JRuby support
rm -rf .%{geminstdir}/ext/java
%build %build
# cflags wrong (-O3 passed), recompiling # cflags wrong (-O3 passed), recompiling
@ -109,7 +126,8 @@ do
done done
# cleanups # cleanups
rm -rf %{buildroot}%{geminstdir}/{ext,tmp}/ rm -rf %{buildroot}%{geminstdir}/ext/%{gemname}/
rm -rf %{buildroot}%{geminstdir}/tmp/
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths} rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths}
# The following method is completely copied from rubygem-gettext # The following method is completely copied from rubygem-gettext
@ -184,6 +202,7 @@ export TZ="Asia/Tokyo"
pushd ./%{geminstdir} pushd ./%{geminstdir}
rake test --trace rake test --trace
rake spec --trace
popd popd
%files %files
@ -193,16 +212,25 @@ popd
%dir %{geminstdir}/ %dir %{geminstdir}/
%doc %{geminstdir}/[A-Z]* %doc %{geminstdir}/[A-Z]*
%exclude %{geminstdir}/Rakefile %exclude %{geminstdir}/Rakefile
%{geminstdir}/[a-l]*/ %{geminstdir}/bin/
%{gemdir}/cache/%{gemname}-%{version}.gem %{geminstdir}/lib/
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem
%{gemdir}/specifications/%{gemname}-%{mainver}%{?prever}.gemspec
%if 0
%files jruby
%defattr(-,root,root,-)
%{geminstdir}/ext/java/
%endif
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{geminstdir}/Rakefile %{geminstdir}/Rakefile
%{geminstdir}/deps.rip
%{geminstdir}/spec/
%{geminstdir}/tasks/ %{geminstdir}/tasks/
%{geminstdir}/test/ %{geminstdir}/test/
%{gemdir}/doc/%{gemname}-%{version}/ %{gemdir}/doc/%{gemname}-%{mainver}%{?prever}/
%files -n ruby-%{gemname} %files -n ruby-%{gemname}
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -211,6 +239,9 @@ popd
%{ruby_sitelib}/xsd/ %{ruby_sitelib}/xsd/
%changelog %changelog
* Sun Oct 17 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.5.0-0.1.beta2
- Try 1.5.0.beta.2
* Fri Jul 30 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.3.1-1 * Fri Jul 30 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.3.1-1
- 1.4.3.1 - 1.4.3.1

View File

@ -1 +1 @@
36d092a5f40b8dece5b32d434cc73fd2 nokogiri-1.4.3.1.gem 5dc94c509b66e81a4520a9b8d75ea803 nokogiri-1.5.0.beta.2.gem