1 Summary: A fast and easy HTML parser
2 Summary(pl.UTF-8): Szybki i prosty analizator HTML-a
7 Group: Development/Languages
8 Source0: http://github.com/hpricot/hpricot/tarball/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: def40ba2aeb04511df9ec47d3bcecf0e
10 URL: http://hpricot.com/
11 BuildRequires: rpm-rubyprov
12 BuildRequires: rpmbuild(macros) >= 1.665
13 BuildRequires: ruby-devel
14 BuildRequires: ruby-modules
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Hpricot is a very flexible HTML parser, based on Tanaka Akira's HTree
19 and John Resig's JQuery, but with the scanner recoded in C (using
20 Ragel for scanning.) I've borrowed what I believe to be the best ideas
21 from these wares to make Hpricot heaps of fun to use.
23 %description -l pl.UTF-8
24 Hpricot to bardzo elastyczny analizator HTML-a, oparty na HTree Tanaka
25 Akiry i JQuery Johna Resiga, ale ze skanerem napisanym w C
26 (wykorzystującym Ragela). Z tych wyrobów zapożyczono najlepsze
27 pomysły, aby uczynić Hpricota najprzyjemniejszym w użyciu.
31 mv hpricot-hpricot-*/* .
37 %{__ruby} setup.rb config \
38 --rbdir=%{ruby_vendorlibdir} \
39 --sodir=%{ruby_vendorarchdir}
41 %{__ruby} setup.rb setup
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}}
50 %{__ruby} setup.rb install \
51 --prefix=$RPM_BUILD_ROOT
53 #cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %{ruby_vendorlibdir}/hpricot.rb
61 %{ruby_vendorlibdir}/hpricot
62 %attr(755,root,root) %{ruby_vendorarchdir}/fast_xs.so
63 %attr(755,root,root) %{ruby_vendorarchdir}/hpricot_scan.so