1 %define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
2 Summary: WWW-Robot perl module
3 Summary(pl): Modu³ perla WWW-Robot
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/WWW/WWW-Robot-%{version}.tar.gz
11 Patch: perl-WWW-Robot-paths.patch
12 BuildRequires: perl >= 5.005_03-10
13 BuildRequires: perl-libwww
14 BuildRequires: perl-HTML-Tree
15 BuildRequires: perl-HTML-Parser
17 Requires: %{perl_sitearch}
19 Requires: perl-HTML-Tree
20 Requires: perl-HTML-Parser
22 BuildRoot: /tmp/%{name}-%{version}-root
25 WWW-Robot - configurable web traversal engine (for web robots & agents).
28 WWW-Robot - konfigurowalny mechanizm analizuj±cy zasoby sieciowe (dla robotów
29 sieciowych i innych sieciowych agentów).
32 %setup -q -n WWW-Robot-%{version}
40 rm -rf $RPM_BUILD_ROOT
41 make install DESTDIR=$RPM_BUILD_ROOT
44 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/WWW/Robot
45 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
46 mv .packlist.new .packlist
49 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc {README,ChangeLog}.gz examples/poacher
59 %{perl_sitelib}/WWW/Robot.pm
60 %{perl_sitearch}/auto/WWW/Robot