]> git.pld-linux.org Git - packages/ruby-hpricot.git/blob - ruby-hpricot.spec
- 0.5
[packages/ruby-hpricot.git] / ruby-hpricot.spec
1 Summary:        A fast and easy HTML parser
2 Summary(pl):    Szybki i prosty analizator HTML-a
3 Name:           ruby-hpricot
4 Version:        0.5
5 Release:        1
6 License:        Ruby's
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/
11 BuildRequires:  rake
12 BuildRequires:  rpmbuild(macros) >= 1.277
13 BuildRequires:  setup.rb = 3.3.1
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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.
21
22 %description -l pl
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.
27
28 %prep
29 %setup -q -c -n hpricot-%{version}
30 tar xzf data.tar.gz
31 cp %{_datadir}/setup.rb .
32
33 %build
34 cd ext/hpricot_scan
35 ls *.c *.h > MANIFEST
36 cd ../..
37 ruby setup.rb config \
38         --rbdir=%{ruby_rubylibdir} \
39         --sodir=%{ruby_archdir}
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
51 ruby setup.rb install \
52         --prefix=$RPM_BUILD_ROOT
53
54 #cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 #%doc rdoc
62 %{ruby_rubylibdir}/hpricot*
63 %{ruby_archdir}/hpricot*
64 #%{ruby_ridir}/*
This page took 0.096708 seconds and 3 git commands to generate.