]> git.pld-linux.org Git - packages/ruby-hpricot.git/blob - ruby-hpricot.spec
815732864c3af7d43ffd5f4043eb81d5ae2ff088
[packages/ruby-hpricot.git] / ruby-hpricot.spec
1 Summary:        A fast and easy HTML parser
2 Summary(pl.UTF-8):      Szybki i prosty analizator HTML-a
3 Name:           ruby-hpricot
4 Version:        0.8.2
5 Release:        4
6 License:        MIT
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)
16
17 %description
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.
22
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.
28
29 %prep
30 %setup -qc
31 mv hpricot-hpricot-*/* .
32
33 cd ext/hpricot_scan
34 ls *.c *.h > MANIFEST
35
36 %build
37 %{__ruby} setup.rb config \
38         --rbdir=%{ruby_vendorlibdir} \
39         --sodir=%{ruby_vendorarchdir}
40
41 %{__ruby} setup.rb setup
42
43 # rdoc crashes on _why's craaazy code.
44 #rdoc --op rdoc lib
45 #rdoc --ri --op ri lib
46
47 %install
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
52
53 #cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
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
This page took 0.043809 seconds and 2 git commands to generate.