1 %include /usr/lib/rpm/macros.perl
4 Summary: WWW::Robot Perl module - configurable web traversal engine
5 Summary(pl): Modu³ Perla WWW::Robot - konfigurowlny mechanizm do analizy zasobów WWW
10 License: GPL v1+ or Artistic
11 Group: Development/Languages/Perl
12 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
13 # Source0-md5: d26e7580b75fd7f12dce273755ff635e
14 Patch0: %{name}-paths.patch
15 BuildRequires: rpm-perlprov >= 4.1-13
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: perl-libwww
18 BuildRequires: perl-HTML-Tree
19 BuildRequires: perl-HTML-Parser
20 BuildRequires: perl-URI
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The WWW::Robot Perl module implements a configurable web traversal
27 engine, for a robot or other web agent. Given an initial web page
28 (URL), the Robot will get the contents of that page, and extract all
29 links on the page, adding them to a list of URLs to visit.
32 Modu³ Perla WWW::Robot zawiera konfigurowalny mechanizm analizuj±cy
33 zasoby sieciowe, przeznaczony dla robotów i innych agentów sieciowych.
34 Po podaniu strony pocz±tkowej (w postaci URLa) Robot pobierze
35 zawarto¶æ danej strony oraz wydzieli z niej wszystkie odno¶niki,
36 dodaj±c je do listy URLi, które bêd± odwiedzane.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} -pi -e 's/^(use LWP::RobotUA)( 1.171)(.*)$/$1 1.18$3/' lib/WWW/*.pm
44 %{__perl} Makefile.PL \
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc README ChangeLog examples/poacher
60 %{perl_vendorlib}/WWW/Robot.pm