nokogiri 1.3.1, mechanize 0.9.3

This commit is contained in:
Mamoru Tasaka 2009-06-10 19:53:39 +00:00
parent 9612d78ed5
commit 9727014694
3 changed files with 23 additions and 17 deletions

View File

@ -1 +1 @@
nokogiri-1.2.3.gem
nokogiri-1.3.1.gem

View File

@ -8,7 +8,7 @@
Summary: An HTML, XML, SAX, and Reader parser
Name: rubygem-%{gemname}
Version: 1.2.3
Version: 1.3.1
Release: 1%{?dist}
Group: Development/Languages
License: MIT
@ -20,6 +20,8 @@ BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems)
BuildRequires: rubygem(hoe)
BuildRequires: rubygem(rake)
# Not available yet
# BuildRequires(check): rubygem(rake-compiler)
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: ruby-devel
@ -66,18 +68,13 @@ gem install \
%{SOURCE0}
# cflags wrong (-O3 passed), recompiling
# Skip until rubygem(rake-compiler) is available
%if 0
pushd ./%{geminstdir}
sed -i.flags -e 's|-O3||' ext/nokogiri/extconf.rb
# F-10/9 hoe is old and readme_file or so are not defined
%if 0%{?fedora} < 11
sed -i.readme \
-e '/p\.readme_file/d' \
-e '/p\.history_file/d' \
-e '/p\.extra_rdoc_files/d' \
Rakefile
%endif
find . -name \*.so -or -name \*.o -exec rm -f {} \;
rake -v ext/nokogiri/native.so --trace
%endif
%install
rm -rf %{buildroot}
@ -89,6 +86,10 @@ mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname}
mv %{buildroot}%{geminstdir}/lib/%{gemname}/*.so \
%{buildroot}%{ruby_sitearch}/%{gemname}/
# move bin/ files
mkdir -p %{buildroot}%{_prefix}
mv -f %{buildroot}%{gemdir}/bin %{buildroot}%{_prefix}
# remove all shebang
for f in $(find %{buildroot}%{geminstdir} -name \*.rb)
do
@ -98,11 +99,7 @@ done
# cleanups
rm -rf %{buildroot}%{geminstdir}/ext
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths,Rakefile}
# vendor/hoe.rb is no longer installed
: rm -f %{buildroot}/%{geminstdir}/vendor/hoe.rb
: rmdir %{buildroot}/%{geminstdir}/vendor/
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths}
# The following method is completely copied from rubygem-gettext
# spec file
@ -170,21 +167,27 @@ create_symlink_rec %{geminstdir}/lib %{ruby_sitelib}
rm -rf %{buildroot}
%check
# Skip until rubygem(rake-compiler) is available
exit 0
pushd ./%{geminstdir}
rake test || :
rake test
popd
%files
%defattr(-,root, root,-)
%{_bindir}/%{gemname}
%{ruby_sitearch}/%{gemname}/
%dir %{geminstdir}/
%doc %{geminstdir}/[A-Z]*
%exclude %{geminstdir}/Rakefile
%{geminstdir}/[a-l]*/
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%files doc
%defattr(-,root,root,-)
%{geminstdir}/Rakefile
%{geminstdir}/tasks/
%{geminstdir}/test/
%{gemdir}/doc/%{gemname}-%{version}/
@ -196,6 +199,9 @@ popd
%{ruby_sitelib}/xsd/
%changelog
* Thu Jun 11 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.3.1-1
- 1.3.1
* Thu Mar 26 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.2.3-1
- 1.2.3

View File

@ -1 +1 @@
4654239b8deb597a905a722a1854911c nokogiri-1.2.3.gem
ca963f336f34d0bc4ae2d881a5eaac49 nokogiri-1.3.1.gem