-
Notifications
You must be signed in to change notification settings - Fork 0
/
WWW-Mechanize.spec
47 lines (36 loc) · 1.3 KB
/
WWW-Mechanize.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%include perl-header.spec
Summary: WWW::Mechanize - automate interaction with websites
Name: perl-module-WWW-Mechanize
Version: 0.55
Release: 2
Group: System Environment/Base
Copyright: GPL/Artistic
Source: WWW-Mechanize-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-root
Requires: perl = %{perl_version}
BuildRequires: perl = %{perl_version}
Requires: perl-module-libwww
BuildRequires: perl-module-libwww
# For https
Requires: perl-module-IO-Socket-SSL
BuildRequires: perl-module-IO-Socket-SSL
%description
WWW::Mechanize, or Mech for short, was designed to help you automate interaction with a website. It supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can be selected, form fields can be filled and the next page can be fetched. Mech also stores a history of the URLs you've visited, which can be queried and revisited.
%prep
%setup -q -n WWW-Mechanize-%{version}
%build
perl Makefile.PL
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{perl_prefix}
%{pmake_install}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,bin,bin)
%{perl_prefix}/bin/mech-forms
%{site_perl}/WWW/Mechanize.pm
%{site_perl}/WWW/Mechanize
%{site_perl_arch}/auto/WWW/Mechanize
%{perl_prefix}/man/man3/*