Author: aredridel Date: Wed Dec 6 01:19:43 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - added
---- Files affected: SPECS: ruby-hpricot.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/ruby-hpricot.spec diff -u /dev/null SPECS/ruby-hpricot.spec:1.1 --- /dev/null Wed Dec 6 02:19:43 2006 +++ SPECS/ruby-hpricot.spec Wed Dec 6 02:19:38 2006 @@ -0,0 +1,91 @@ +# $Revision$, $Date$ +Summary: A fast and easy HTML parser +Name: ruby-hpricot +Version: 0.4 +Release: 1 +License: Ruby's +Group: Development/Languages +Source0: http://code.whytheluckystiff.net/dist/hpricot-%{version}.tgz +# Source0-md5: 5b25758c1ce9d518f5647011f5646ab8 +URL: http://code.whytheluckystiff.net/hpricot/ +BuildRequires: rake +BuildRequires: rpmbuild(macros) >= 1.277 +BuildRequires: setup.rb = 3.3.1 +#BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Hpricot is a very flexible HTML parser, based on Tanaka Akira's HTree +and John Resig's JQuery, but with the scanner recoded in C (using +Ragel for scanning.) I've borrowed what I believe to be the best ideas +from these wares to make Hpricot heaps of fun to use. + +%prep +%setup -q -n hpricot-%{version} +cp %{_datadir}/setup.rb . + +%build +cd ext/hpricot_scan +ls *.c *.h > MANIFEST +rm *.o *.so +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 + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}} + +ruby setup.rb install \ + --prefix=$RPM_BUILD_ROOT + +#cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +#%doc rdoc +%{ruby_rubylibdir}/hpricot* +%{ruby_archdir}/hpricot* +#%{ruby_ridir}/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/12/06 01:19:38 aredridel +- added + +Revision 1.7 2006/08/10 14:46:56 qboosh +- pl + +Revision 1.6 2006/08/08 22:38:15 aredridel +- R: ruby-ActiveRecord >= 1.14.0 + +Revision 1.5 2006/08/08 22:03:41 aredridel +- R: ruby-metaid +- R: ruby-markaby + +Revision 1.4 2006/08/08 21:52:53 aredridel +- not noarch until ruby is fixed + +Revision 1.3 2006/08/08 21:44:32 aredridel +- cleanup + +Revision 1.2 2006/08/08 21:42:40 aredridel +- patch out rubygems +- package examples + +Revision 1.1 2006/08/08 21:26:43 aredridel +- added ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
