packages: ruby-nokogiri/ruby-nokogiri.spec - updated to 1.4.1
baggins
baggins at pld-linux.org
Sun Feb 28 20:53:40 CET 2010
Author: baggins Date: Sun Feb 28 19:53:40 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 1.4.1
---- Files affected:
packages/ruby-nokogiri:
ruby-nokogiri.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/ruby-nokogiri/ruby-nokogiri.spec
diff -u packages/ruby-nokogiri/ruby-nokogiri.spec:1.2 packages/ruby-nokogiri/ruby-nokogiri.spec:1.3
--- packages/ruby-nokogiri/ruby-nokogiri.spec:1.2 Sun Nov 16 23:12:26 2008
+++ packages/ruby-nokogiri/ruby-nokogiri.spec Sun Feb 28 20:53:34 2010
@@ -1,16 +1,21 @@
# $Revision$, $Date$
+%define pkgname nokogiri
Summary: An HTML, XML, SAX, and Reader parser
-Name: ruby-nokogiri
-Version: 1.0.6
+Name: ruby-%{pkgname}
+Version: 1.4.1
Release: 1
License: Ruby's
Group: Development/Languages
-Source0: http://rubyforge.org/frs/download.php/46796/nokogiri-1.0.6.gem
-# Source0-md5: 2c9c5ce6570352edc6a7e6f00e6903da
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 13405908a02c71daf1f302392ffa1507
+Patch0: %{name}-cleanup.patch
URL: http://nokogiri.rubyforge.org/
-BuildRequires: rake
+BuildRequires: libxml2-devel
+BuildRequires: libxslt-devel
BuildRequires: rpmbuild(macros) >= 1.277
-BuildRequires: setup.rb = 3.3.1
+BuildRequires: setup.rb >= 3.3.1
+Requires: ruby-racc
+Requires: ruby-rexical
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -24,46 +29,57 @@
It also features an Hpricot compatibility layer to help ease the
change to using correct CSS and XPath.
+%package rdoc
+Summary: Documentation files for %{pkgname}
+Group: Documentation
+Requires: ruby >= 1:1.8.7-4
+
+%description rdoc
+Documentation files for %{pkgname}.
+
%prep
-%setup -q -c -n nokogiri-%{version}
-tar xzf data.tar.gz
-cp %{_datadir}/setup.rb .
+%setup -q -c
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README.rdoc -o -print | xargs touch --reference %{SOURCE0}
+%patch0 -p1
+
+cp /usr/share/setup.rb .
%build
-cd ext/nokogiri
-mkdir nokogiri
-mv *.c *.h *.rb nokogiri
-cd nokogiri
-ls *.c *.h > MANIFEST
-cd ../../..
ruby setup.rb config \
--rbdir=%{ruby_rubylibdir} \
--sodir=%{ruby_archdir}
ruby setup.rb setup
-# rdoc crashes on _why's craaazy code.
-#rdoc --op rdoc lib
-#rdoc --ri --op ri lib
+rdoc --op rdoc lib
+rdoc --ri --op ri lib
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
ruby setup.rb install \
--prefix=$RPM_BUILD_ROOT
-#cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-#%doc rdoc
+%doc CHANGELOG.rdoc README.rdoc
+%attr(755,root,root) %{_bindir}/nokogiri
%{ruby_rubylibdir}/nokogiri*
+%{ruby_rubylibdir}/xsd
%{ruby_archdir}/nokogiri*
-#%{ruby_ridir}/*
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+%{ruby_ridir}/Nokogiri
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -71,6 +87,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/02/28 19:53:34 baggins
+- updated to 1.4.1
+
Revision 1.2 2008/11/16 22:12:26 ankry
- cosmetics
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-nokogiri/ruby-nokogiri.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list