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