Merge branch 'master' into f17
This commit is contained in:
commit
165414080f
@ -1,11 +0,0 @@
|
|||||||
--- nokogiri-1.5.0.beta.3/test/html/test_element_description.rb.fail 2010-12-07 04:41:24.000000000 +0900
|
|
||||||
+++ nokogiri-1.5.0.beta.3/test/html/test_element_description.rb 2010-12-07 04:46:35.000000000 +0900
|
|
||||||
@@ -59,7 +59,7 @@
|
|
||||||
if Nokogiri.uses_libxml? && Nokogiri::LIBXML_VERSION == '2.7.7'
|
|
||||||
assert_equal 65, sub_elements.length
|
|
||||||
elsif Nokogiri.uses_libxml?
|
|
||||||
- assert_equal 61, sub_elements.length
|
|
||||||
+ assert(61 <= sub_elements.length)
|
|
||||||
else
|
|
||||||
assert sub_elements.length > 0
|
|
||||||
end
|
|
@ -4,20 +4,22 @@
|
|||||||
%global mainver 1.5.0
|
%global mainver 1.5.0
|
||||||
#%%global prever .beta.4
|
#%%global prever .beta.4
|
||||||
|
|
||||||
%global mainrel 2
|
%global mainrel 3
|
||||||
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
|
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
|
||||||
|
|
||||||
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||||
%global gemname nokogiri
|
%global gemname nokogiri
|
||||||
%global geminstdir %{gemdir}/gems/%{gemname}-%{mainver}%{?prever}
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{mainver}%{?prever}
|
||||||
|
|
||||||
%if 0%{?fedora} >= 17
|
%if %{?fedora:0%{fedora} >= 17}%{?rhel:0%{rhel} >= 7}
|
||||||
|
%global ruby19 1
|
||||||
%global rubyabi 1.9.1
|
%global rubyabi 1.9.1
|
||||||
%global gemdir %{gem_dir}
|
%global gemdir %{gem_dir}
|
||||||
%global gem_name %{gemname}
|
%global gem_name %{gemname}
|
||||||
%global geminstdir %{gem_instdir}
|
%global geminstdir %{gem_instdir}
|
||||||
%global gemsodir %{gem_extdir}/lib
|
%global gemsodir %{gem_extdir}/lib
|
||||||
%else
|
%else
|
||||||
|
%global ruby19 0
|
||||||
%global gemsodir %{ruby_sitearch}
|
%global gemsodir %{ruby_sitearch}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -47,7 +49,7 @@ BuildRequires: rubygem(hoe)
|
|||||||
BuildRequires: rubygem(rake)
|
BuildRequires: rubygem(rake)
|
||||||
BuildRequires: rubygem(rake-compiler)
|
BuildRequires: rubygem(rake-compiler)
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
%if 0%{?fedora} >= 17
|
%if 0%{?ruby19} > 0
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
%endif
|
%endif
|
||||||
#BuildRequires: ruby(racc)
|
#BuildRequires: ruby(racc)
|
||||||
@ -159,7 +161,7 @@ rm -rf %{buildroot}%{geminstdir}/ext/%{gemname}/
|
|||||||
rm -rf %{buildroot}%{geminstdir}/tmp/
|
rm -rf %{buildroot}%{geminstdir}/tmp/
|
||||||
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths,.gemtest}
|
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths,.gemtest}
|
||||||
|
|
||||||
%if 0%{?fedora} < 17
|
%if 0%{?ruby19} < 1
|
||||||
# The following method is completely copied from rubygem-gettext
|
# The following method is completely copied from rubygem-gettext
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
@ -236,7 +238,7 @@ popd
|
|||||||
# fails without TZ on sparc
|
# fails without TZ on sparc
|
||||||
export TZ="Asia/Tokyo"
|
export TZ="Asia/Tokyo"
|
||||||
#???
|
#???
|
||||||
%if 0%{?fedora} >= 17
|
%if 0%{?ruby19} > 0
|
||||||
LANG=ja_JP.UTF-8
|
LANG=ja_JP.UTF-8
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -256,7 +258,7 @@ popd
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root, root,-)
|
%defattr(-,root, root,-)
|
||||||
%{_bindir}/%{gemname}
|
%{_bindir}/%{gemname}
|
||||||
%if 0%{?fedora} < 17
|
%if 0%{?ruby19} < 1
|
||||||
%{ruby_sitearch}/*.so
|
%{ruby_sitearch}/*.so
|
||||||
%else
|
%else
|
||||||
%{gem_extdir}/
|
%{gem_extdir}/
|
||||||
@ -285,7 +287,7 @@ popd
|
|||||||
%{geminstdir}/test/
|
%{geminstdir}/test/
|
||||||
%{gemdir}/doc/%{gemname}-%{mainver}%{?prever}/
|
%{gemdir}/doc/%{gemname}-%{mainver}%{?prever}/
|
||||||
|
|
||||||
%if 0%{?fedora} < 17
|
%if 0%{?ruby19} < 1
|
||||||
%files -n ruby-%{gemname}
|
%files -n ruby-%{gemname}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{ruby_sitelib}/*%{gemname}.rb
|
%{ruby_sitelib}/*%{gemname}.rb
|
||||||
@ -294,6 +296,9 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5.0-3
|
||||||
|
- Fix conditionals for F17 to work for RHEL 7 as well.
|
||||||
|
|
||||||
* Tue Jan 24 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.5.0-2
|
* Tue Jan 24 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.5.0-2
|
||||||
- F-17: rebuild for ruby19
|
- F-17: rebuild for ruby19
|
||||||
- For now aviod build failure by touching some files
|
- For now aviod build failure by touching some files
|
||||||
|
Loading…
Reference in New Issue
Block a user