13d7075
#
83f9c0a
# Rebuild switches:
37da750
#  --with localtests         enable local tests
a096f06
%bcond_with localtests
83f9c0a
#  --with livetests          enable live tests
a096f06
%bcond_with livetests
184cd6b
13d7075
Name:           perl-WWW-Mechanize
Chris Weyl fcbce5c
Version:        1.60
Chris Weyl fcbce5c
Release:        1%{?dist}
13d7075
Summary:        Automates web page form & link interaction
13d7075
13d7075
Group:          Development/Libraries
Chris Weyl 91275ea
License:        GPL+ or Artistic
13d7075
URL:            http://search.cpan.org/dist/WWW-Mechanize/
Chris Weyl fcbce5c
Source0:        http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/WWW-Mechanize-%{version}.tar.gz
13d7075
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13d7075
BuildArch:      noarch
Chris Weyl 91275ea
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 91275ea
Chris Weyl 91275ea
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl fcbce5c
BuildRequires:  perl(Test::More) >= 0.34
Chris Weyl fcbce5c
BuildRequires:  perl(Test::Pod)
Chris Weyl fcbce5c
BuildRequires:  perl(Test::Pod::Coverage)
Chris Weyl 91275ea
BuildRequires:  perl(Test::Exception)
Chris Weyl fcbce5c
BuildRequires:  perl(Test::Memory::Cycle)
Chris Weyl fcbce5c
BuildRequires:  perl(Test::Taint)
Chris Weyl fcbce5c
BuildRequires:  perl(Test::Warn) >= 0.11
Chris Weyl fcbce5c
BuildRequires:  perl(HTML::TokeParser) >= 2.28
Chris Weyl fcbce5c
BuildRequires:  perl(LWP::UserAgent) >= 5.829
Chris Weyl fcbce5c
BuildRequires:  perl(URI::URL)
7f56636
BuildRequires:  perl(IO::Socket::SSL)
a096f06
BuildRequires:  perl(URI) >= 1.36
Chris Weyl fcbce5c
BuildRequires:  perl(HTTP::Server::Simple) >= 0.35
a096f06
BuildRequires:  perl(HTTP::Response::Encoding) >= 0.05
13d7075
Chris Weyl fcbce5c
### auto-added reqs!
Chris Weyl fcbce5c
Requires:       perl(Carp)
Chris Weyl fcbce5c
Requires:       perl(File::Temp)
Chris Weyl fcbce5c
Requires:       perl(FindBin)
Chris Weyl fcbce5c
Requires:       perl(Getopt::Long)
Chris Weyl fcbce5c
Requires:       perl(HTML::Form) >= 1.038
Chris Weyl fcbce5c
Requires:       perl(HTML::HeadParser)
Chris Weyl fcbce5c
Requires:       perl(HTML::Parser) >= 3.33
Chris Weyl fcbce5c
Requires:       perl(HTML::TokeParser) >= 2.28
Chris Weyl fcbce5c
Requires:       perl(HTTP::Daemon)
Chris Weyl fcbce5c
Requires:       perl(HTTP::Request) >= 1.3
Chris Weyl fcbce5c
Requires:       perl(HTTP::Server::Simple) >= 0.35
Chris Weyl fcbce5c
Requires:       perl(HTTP::Server::Simple::CGI)
Chris Weyl fcbce5c
Requires:       perl(HTTP::Status)
Chris Weyl fcbce5c
Requires:       perl(LWP) >= 5.829
Chris Weyl fcbce5c
Requires:       perl(LWP::UserAgent) >= 5.829
Chris Weyl fcbce5c
Requires:       perl(Pod::Usage)
Chris Weyl fcbce5c
Requires:       perl(URI) >= 1.36
Chris Weyl fcbce5c
Requires:       perl(URI::URL)
Chris Weyl fcbce5c
Requires:       perl(URI::file)
Chris Weyl fcbce5c
Chris Weyl fcbce5c
### auto-added brs!
Chris Weyl fcbce5c
BuildRequires:  perl(Carp)
Chris Weyl fcbce5c
BuildRequires:  perl(File::Temp)
Chris Weyl fcbce5c
BuildRequires:  perl(FindBin)
Chris Weyl fcbce5c
BuildRequires:  perl(Getopt::Long)
Chris Weyl fcbce5c
BuildRequires:  perl(HTML::Form) >= 1.038
Chris Weyl fcbce5c
BuildRequires:  perl(HTML::HeadParser)
Chris Weyl fcbce5c
BuildRequires:  perl(HTML::Parser) >= 3.33
Chris Weyl fcbce5c
BuildRequires:  perl(HTTP::Daemon)
Chris Weyl fcbce5c
BuildRequires:  perl(HTTP::Request) >= 1.3
Chris Weyl fcbce5c
BuildRequires:  perl(HTTP::Server::Simple::CGI)
Chris Weyl fcbce5c
BuildRequires:  perl(HTTP::Status)
Chris Weyl fcbce5c
BuildRequires:  perl(LWP) >= 5.829
Chris Weyl fcbce5c
BuildRequires:  perl(Pod::Usage)
Chris Weyl fcbce5c
BuildRequires:  perl(URI::file)
Chris Weyl fcbce5c
13d7075
%description
13d7075
"WWW::Mechanize", or Mech for short, helps you automate interaction
13d7075
with a website.  It supports performing a sequence of page fetches
13d7075
including following links and submitting forms. Each fetched page is
13d7075
parsed and its links and forms are extracted. A link or a form can be
13d7075
selected, form fields can be filled and the next page can be fetched.
13d7075
Mech also stores a history of the URLs you've visited, which can be
13d7075
queried and revisited.
13d7075
13d7075
13d7075
%prep
13d7075
%setup -q -n WWW-Mechanize-%{version}
13d7075
13d7075
13d7075
%build
184cd6b
%{__perl} Makefile.PL INSTALLDIRS=vendor \
a096f06
%if %{with localtests}
83f9c0a
    --local \
37da750
%else
83f9c0a
    --nolocal \
83f9c0a
%endif
a096f06
%if %{with livetests}
83f9c0a
    --live
83f9c0a
%else
83f9c0a
    --nolive
37da750
%endif
13d7075
make %{?_smp_mflags}
13d7075
13d7075
13d7075
%install
Chris Weyl 91275ea
rm -rf %{buildroot}
Chris Weyl 91275ea
Chris Weyl 91275ea
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl fcbce5c
find %{buildroot} -type f -name .packlist -exec rm -f {} +
Chris Weyl 91275ea
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
Chris Weyl 91275ea
Chris Weyl 91275ea
%{_fixperms} %{buildroot}/*
13d7075
13d7075
13d7075
%check
184cd6b
make test
13d7075
13d7075
13d7075
%clean
Chris Weyl 91275ea
rm -rf %{buildroot}
13d7075
13d7075
13d7075
%files
13d7075
%defattr(-,root,root,-)
Chris Weyl fcbce5c
%doc Changes etc/www-mechanize-logo.png
13d7075
%{_bindir}/mech-dump
Chris Weyl fcbce5c
%{perl_vendorlib}/*
13d7075
%{_mandir}/man1/*.1*
ca791b1
%{_mandir}/man3/*.3pm*
13d7075
13d7075
13d7075
%changelog
Chris Weyl fcbce5c
* Sun Aug 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.60-1
Chris Weyl fcbce5c
- auto-update to 1.60 (by cpan-spec-update 0.01)
Chris Weyl fcbce5c
- added a new br on perl(Carp) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(File::Temp) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(FindBin) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(Getopt::Long) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(HTML::Form) (version 1.038)
Chris Weyl fcbce5c
- added a new br on perl(HTML::HeadParser) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(HTML::Parser) (version 3.33)
Chris Weyl fcbce5c
- altered br on perl(HTML::TokeParser) (0 => 2.28)
Chris Weyl fcbce5c
- added a new br on perl(HTTP::Daemon) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(HTTP::Request) (version 1.3)
Chris Weyl fcbce5c
- altered br on perl(HTTP::Server::Simple) (0 => 0.35)
Chris Weyl fcbce5c
- added a new br on perl(HTTP::Server::Simple::CGI) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(HTTP::Status) (version 0)
Chris Weyl fcbce5c
- added a new br on perl(LWP) (version 5.829)
Chris Weyl fcbce5c
- altered br on perl(LWP::UserAgent) (0 => 5.829)
Chris Weyl fcbce5c
- added a new br on perl(Pod::Usage) (version 0)
Chris Weyl fcbce5c
- altered br on perl(Test::More) (0 => 0.34)
Chris Weyl fcbce5c
- altered br on perl(Test::Warn) (0 => 0.11)
Chris Weyl fcbce5c
- added a new br on perl(URI::file) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(Carp) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(File::Temp) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(FindBin) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(Getopt::Long) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(HTML::Form) (version 1.038)
Chris Weyl fcbce5c
- added a new req on perl(HTML::HeadParser) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(HTML::Parser) (version 3.33)
Chris Weyl fcbce5c
- added a new req on perl(HTML::TokeParser) (version 2.28)
Chris Weyl fcbce5c
- added a new req on perl(HTTP::Daemon) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(HTTP::Request) (version 1.3)
Chris Weyl fcbce5c
- added a new req on perl(HTTP::Server::Simple) (version 0.35)
Chris Weyl fcbce5c
- added a new req on perl(HTTP::Server::Simple::CGI) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(HTTP::Status) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(LWP) (version 5.829)
Chris Weyl fcbce5c
- added a new req on perl(LWP::UserAgent) (version 5.829)
Chris Weyl fcbce5c
- added a new req on perl(Pod::Usage) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(URI) (version 1.36)
Chris Weyl fcbce5c
- added a new req on perl(URI::URL) (version 0)
Chris Weyl fcbce5c
- added a new req on perl(URI::file) (version 0)
Chris Weyl fcbce5c
Chris Weyl fcbce5c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-3
Chris Weyl fcbce5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Chris Weyl fcbce5c
ce847fb
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-2
ce847fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ce847fb
a096f06
* Sat Feb 21 2009 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 1.54-1
a096f06
- Upstream update.
a096f06
- Add BR: perl(URI), perl(HTTP::Server::Simple),
a096f06
  perl(HTTP::Response::Encoding).
a096f06
- Use %%bcond_with and %%with to process build options.
a096f06
Chris Weyl 4b5e8f9
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.34-1
Chris Weyl 4b5e8f9
- update to 1.34
Chris Weyl 4b5e8f9
a3e6412
* Tue Feb 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.32-2
a3e6412
- rebuild for new perl
a3e6412
Chris Weyl 91275ea
* Fri Dec 07 2007 Chris Weyl <cweyl@alumni.drew.edu> - 1.32-1
Chris Weyl 91275ea
- update to 1.32
Chris Weyl 91275ea
83f9c0a
* Thu Jun  7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-2
83f9c0a
- New rebuild option: "--with livetests".
83f9c0a
1de415d
* Thu Jun  7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-1
1de415d
- Update to 1.30.
1de415d
- The Makefile.PL --mech-dump option is now deprecated.
1de415d
2b87696
* Thu Jun  7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.24-1
2b87696
- Update to 1.24.
2b87696
7f56636
* Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-2
7f56636
- New BR: perl(IO::Socket::SSL).
7f56636
9902724
* Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-1
9902724
- Update to 1.22.
9902724
ca791b1
* Tue Sep  5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.20-1
ca791b1
- Update to 1.20.
ca791b1
- Live tests have been dropped.
ca791b1
37da750
* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-2
37da750
- Re-enable test suite but without local and live tests.
37da750
  One local test fails in mock (see #165650 comment 4).
83f9c0a
- New rebuild option: "--with localtests".
37da750
184cd6b
* Thu Feb  2 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-1
184cd6b
- Update to 1.18.
184cd6b
dc4a2dd
* Thu Nov 10 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
dc4a2dd
- Update to 1.16.
dc4a2dd
93e5bda
* Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-2
93e5bda
- Added Test::LongString to the live tests build requirements.
93e5bda
424d474
* Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
424d474
- Update to 1.14.
424d474
32d0df1
* Fri Aug 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-4
32d0df1
- Added Test::Pod::Coverage to the BR list in order to improve test coverage.
32d0df1
- Disabled test suite as it fails in mock (see #165650 comment 4).
32d0df1
13d7075
* Thu Aug 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-3
13d7075
- Conditional rebuild switch to enable live tests (RFE in #165650).
13d7075
13d7075
* Fri Jul  1 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-2
13d7075
- Dist tag.
13d7075
13d7075
* Sat Feb 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.12-0.fdr.1
13d7075
- Update to 1.12.
13d7075
13d7075
* Mon Feb 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.10-0.fdr.1
13d7075
- Update to 1.10.
13d7075
13d7075
* Sat Dec 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.08-0.fdr.1
13d7075
- Update to 1.08.
13d7075
13d7075
* Sun Jul 04 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.02-0.fdr.1
13d7075
- First build.