]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: WWW::Mechanize - automate interaction with websites |
875c5c63 | 8 | Summary(pl.UTF-8): WWW::Mechanize - automatyzacja interakcji ze stronami WWW |
1ef07a32 | 9 | Name: perl-WWW-Mechanize |
0ee24307 | 10 | Version: 2.08 |
237c8340 | 11 | Release: 1 |
7248c31c | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
1ef07a32 | 14 | Group: Development/Languages/Perl |
dcf97d83 | 15 | Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz |
0ee24307 | 16 | # Source0-md5: 610faadc72ec5fa5ace4d2b59ad8f17c |
cc629ae6 | 17 | URL: http://search.cpan.org/dist/WWW-Mechanize/ |
de422239 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
2ea512dc | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
0ee24307 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
930eb397 | 21 | %if %{with tests} |
83406f34 | 22 | BuildRequires: perl-Encode |
0ee24307 | 23 | BuildRequires: perl-HTML-Form >= 1.00 |
2ea512dc | 24 | BuildRequires: perl-HTML-Parser >= 3.33 |
0ee24307 JB |
25 | BuildRequires: perl-HTML-Tree >= 5 |
26 | BuildRequires: perl-HTTP-Cookies | |
27 | BuildRequires: perl-HTTP-Daemon >= 6.12 | |
28 | BuildRequires: perl-HTTP-Message >= 1.30 | |
83406f34 | 29 | BuildRequires: perl-HTTP-Server-Simple |
0ee24307 | 30 | BuildRequires: perl-Scalar-List-Utils >= 1.14 |
6fe31634 | 31 | BuildRequires: perl-Sub-Uplevel >= 0.13 |
0ee24307 | 32 | BuildRequires: perl-Test-Deep |
2ea512dc | 33 | BuildRequires: perl-Test-Exception |
0ee24307 JB |
34 | BuildRequires: perl-Test-Fatal |
35 | BuildRequires: perl-Test-Memory-Cycle >= 1.06 | |
36 | BuildRequires: perl-Test-NoWarnings >= 1.04 | |
37 | BuildRequires: perl-Test-Output | |
38 | BuildRequires: perl-Test-Simple >= 0.96 | |
39 | BuildRequires: perl-Test-Taint >= 1.08 | |
40 | BuildRequires: perl-Test-Warn | |
2ea512dc | 41 | BuildRequires: perl-URI |
0ee24307 | 42 | BuildRequires: perl-libwww >= 6.45 |
930eb397 | 43 | %endif |
83406f34 | 44 | Requires: perl-Encode |
0ee24307 | 45 | Requires: perl-libwww >= 6.45 |
1ef07a32 AM |
46 | BuildArch: noarch |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
87fba845 | 50 | WWW::Mechanize, or Mech for short, was designed to help you automate |
51 | interaction with a website. It supports performing a sequence of page | |
52 | fetches including following links and submitting forms. Each fetched | |
53 | page is parsed and its links and forms are extracted. A link or a form | |
54 | can be selected, form fields can be filled and the next page can be | |
55 | fetched. Mech also stores a history of the URLs you've visited, which | |
56 | can be queried and revisited. | |
57 | ||
121e4380 JR |
58 | %description -l pl.UTF-8 |
59 | Moduł Perla WWW::Mechanize, w skrócie Mech, został zaprojektowany, aby | |
60 | ułatwić automatyzację interakcji ze stronami WWW. Wspiera on | |
61 | wykonywanie szeregu kolejnych pobrań stron, włączając w to podążanie | |
62 | za odnośnikami i odsyłanie formularzy. Każda z pobranych stron jest | |
63 | przetwarzana i wydzielane są z niej odnośniki i formularze. Można | |
64 | wybrać odnośnik lub formularz, wypełnić pola formularza i pobrać | |
65 | następną stronę. Mech przechowuje również historię odwiedzanych URL-i, | |
66 | o 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 | 72 | echo 'y' | %{__perl} Makefile.PL \ |
1ef07a32 AM |
73 | INSTALLDIRS=vendor |
74 | %{__make} | |
75 | ||
930eb397 | 76 | %{?with_tests:%{__make} test} |
1ef07a32 AM |
77 | |
78 | %install | |
79 | rm -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 |
87 | rm -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* |