]> git.pld-linux.org Git - packages/perl-WWW-Robot.git/blob - perl-WWW-Robot.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-WWW-Robot.git] / perl-WWW-Robot.spec
1 %define         pdir    WWW
2 %define         pnam    Robot
3 Summary:        WWW::Robot Perl module - configurable web traversal engine
4 Summary(pl.UTF-8):      Moduł Perla WWW::Robot - konfigurowlny mechanizm do analizy zasobów WWW
5 Name:           perl-WWW-Robot
6 Version:        0.026
7 Release:        1
8 # same as perl
9 License:        GPL v1+ or Artistic
10 Group:          Development/Languages/Perl
11 Source0:        http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
12 # Source0-md5:  a58f5cef44e8c6cd2e057821691a6be4
13 Patch0:         %{name}-paths.patch
14 URL:            http://search.cpan.org/dist/WWW-Robot/
15 BuildRequires:  perl-HTML-Tree
16 BuildRequires:  perl-HTML-Parser
17 BuildRequires:  perl-URI
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  perl-libwww
20 BuildRequires:  rpm-perlprov >= 4.1-13
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.UTF-8
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 %patch0 -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.076496 seconds and 4 git commands to generate.