]> git.pld-linux.org Git - packages/perl-WWW-Robot.git/blob - perl-WWW-Robot.spec
- fixed perl-devel BR
[packages/perl-WWW-Robot.git] / perl-WWW-Robot.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define pdir    WWW
3 %define pnam    Robot
4 Summary:        WWW::Robot Perl module - configurable web traversal engine
5 Summary(pl):    Modu³ Perla WWW::Robot - konfigurowlny mechanizm do analizy zasobów WWW
6 Name:           perl-WWW-Robot
7 Version:        0.023
8 Release:        3
9 # same as perl
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
21 Obsoletes:      perl-Robot
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
30
31 %description -l pl
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.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} -pi -e 's/^(use LWP::RobotUA)( 1.171)(.*)$/$1 1.18$3/' lib/WWW/*.pm
41 %patch -p0
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README ChangeLog examples/poacher
60 %{perl_vendorlib}/WWW/Robot.pm
61 %{_mandir}/man3/*
This page took 0.049505 seconds and 3 git commands to generate.