]> git.pld-linux.org Git - packages/perl-WWW-Mechanize.git/blame - perl-WWW-Mechanize.spec
- updated to 2.08
[packages/perl-WWW-Mechanize.git] / perl-WWW-Mechanize.spec
CommitLineData
e8d5e03c 1#
1ef07a32 2# Conditional build:
6fe31634 3%bcond_without tests # do not perform "make test"
e8d5e03c 4#
aa664def 5%define pdir WWW
6%define pnam Mechanize
1ef07a32 7Summary: WWW::Mechanize - automate interaction with websites
875c5c63 8Summary(pl.UTF-8): WWW::Mechanize - automatyzacja interakcji ze stronami WWW
1ef07a32 9Name: perl-WWW-Mechanize
0ee24307 10Version: 2.08
237c8340 11Release: 1
7248c31c 12# same as perl
13License: GPL v1+ or Artistic
1ef07a32 14Group: Development/Languages/Perl
dcf97d83 15Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
0ee24307 16# Source0-md5: 610faadc72ec5fa5ace4d2b59ad8f17c
cc629ae6 17URL: http://search.cpan.org/dist/WWW-Mechanize/
de422239 18BuildRequires: perl-devel >= 1:5.8.0
2ea512dc 19BuildRequires: rpm-perlprov >= 4.1-13
0ee24307 20BuildRequires: rpmbuild(macros) >= 1.745
930eb397 21%if %{with tests}
83406f34 22BuildRequires: perl-Encode
0ee24307 23BuildRequires: perl-HTML-Form >= 1.00
2ea512dc 24BuildRequires: perl-HTML-Parser >= 3.33
0ee24307
JB
25BuildRequires: perl-HTML-Tree >= 5
26BuildRequires: perl-HTTP-Cookies
27BuildRequires: perl-HTTP-Daemon >= 6.12
28BuildRequires: perl-HTTP-Message >= 1.30
83406f34 29BuildRequires: perl-HTTP-Server-Simple
0ee24307 30BuildRequires: perl-Scalar-List-Utils >= 1.14
6fe31634 31BuildRequires: perl-Sub-Uplevel >= 0.13
0ee24307 32BuildRequires: perl-Test-Deep
2ea512dc 33BuildRequires: perl-Test-Exception
0ee24307
JB
34BuildRequires: perl-Test-Fatal
35BuildRequires: perl-Test-Memory-Cycle >= 1.06
36BuildRequires: perl-Test-NoWarnings >= 1.04
37BuildRequires: perl-Test-Output
38BuildRequires: perl-Test-Simple >= 0.96
39BuildRequires: perl-Test-Taint >= 1.08
40BuildRequires: perl-Test-Warn
2ea512dc 41BuildRequires: perl-URI
0ee24307 42BuildRequires: perl-libwww >= 6.45
930eb397 43%endif
83406f34 44Requires: perl-Encode
0ee24307 45Requires: perl-libwww >= 6.45
1ef07a32
AM
46BuildArch: noarch
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
87fba845 50WWW::Mechanize, or Mech for short, was designed to help you automate
51interaction with a website. It supports performing a sequence of page
52fetches including following links and submitting forms. Each fetched
53page is parsed and its links and forms are extracted. A link or a form
54can be selected, form fields can be filled and the next page can be
55fetched. Mech also stores a history of the URLs you've visited, which
56can be queried and revisited.
57
121e4380
JR
58%description -l pl.UTF-8
59Moduł Perla WWW::Mechanize, w skrócie Mech, został zaprojektowany, aby
60ułatwić automatyzację interakcji ze stronami WWW. Wspiera on
61wykonywanie szeregu kolejnych pobrań stron, włączając w to podążanie
62za odnośnikami i odsyłanie formularzy. Każda z pobranych stron jest
63przetwarzana i wydzielane są z niej odnośniki i formularze. Można
64wybrać odnośnik lub formularz, wypełnić pola formularza i pobrać
65następną stronę. Mech przechowuje również historię odwiedzanych URL-i,
66o które można odpytać i je ponownie odwiedzić.
1ef07a32
AM
67
68%prep
69%setup -q -n %{pdir}-%{pnam}-%{version}
70
71%build
2ea512dc 72echo 'y' | %{__perl} Makefile.PL \
1ef07a32
AM
73 INSTALLDIRS=vendor
74%{__make}
75
930eb397 76%{?with_tests:%{__make} test}
1ef07a32
AM
77
78%install
79rm -rf $RPM_BUILD_ROOT
80
e3e97668 81%{__make} install \
82 DESTDIR=$RPM_BUILD_ROOT
1ef07a32 83
0ee24307 84%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/WWW/Mechanize/{FAQ,Cookbook,Examples}.pod
2ea512dc 85
1ef07a32
AM
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%files
90%defattr(644,root,root,755)
91%doc Changes
0ee24307
JB
92%attr(755,root,root) %{_bindir}/mech-dump
93%{perl_vendorlib}/WWW/Mechanize.pm
94%dir %{perl_vendorlib}/WWW/Mechanize
95%{perl_vendorlib}/WWW/Mechanize/*.pm
96%{_mandir}/man1/mech-dump.1p*
97%{_mandir}/man3/WWW::Mechanize*.3pm*
This page took 0.113409 seconds and 4 git commands to generate.