1 Summary: A fast and easy HTML parser
2 Summary(pl): Szybki i prosty analizator HTML-a
7 Group: Development/Languages
8 Source0: http://code.whytheluckystiff.net/gems/hpricot-%{version}.gem
9 # Source0-md5: a11f29962a4b236eb61f254d9a39e73e
10 URL: http://code.whytheluckystiff.net/hpricot/
12 BuildRequires: rpmbuild(macros) >= 1.277
13 BuildRequires: setup.rb = 3.3.1
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Hpricot is a very flexible HTML parser, based on Tanaka Akira's HTree
18 and John Resig's JQuery, but with the scanner recoded in C (using
19 Ragel for scanning.) I've borrowed what I believe to be the best ideas
20 from these wares to make Hpricot heaps of fun to use.
23 Hpricot to bardzo elastyczny analizator HTML-a, oparty na HTree Tanaka
24 Akiry i JQuery Johna Resiga, ale ze skanerem napisanym w C
25 (wykorzystuj±cym Ragela). Z tych wyrobów zapo¿yczono najlepsze
26 pomys³y, aby uczyniæ Hpricota najprzyjemniejszym w u¿yciu.
29 %setup -q -c -n hpricot-%{version}
31 cp %{_datadir}/setup.rb .
37 ruby setup.rb config \
38 --rbdir=%{ruby_rubylibdir} \
39 --sodir=%{ruby_archdir}
43 # rdoc crashes on _why's craaazy code.
45 #rdoc --ri --op ri lib
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
51 ruby setup.rb install \
52 --prefix=$RPM_BUILD_ROOT
54 #cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{ruby_rubylibdir}/hpricot*
63 %{ruby_archdir}/hpricot*