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
Emmanuel Seyman 938b870
Version:        1.72
56b6a53
Release:        6%{?dist}
13d7075
Summary:        Automates web page form & link interaction
13d7075
Group:          Development/Libraries
Chris Weyl 91275ea
License:        GPL+ or Artistic
13d7075
URL:            http://search.cpan.org/dist/WWW-Mechanize/
Petr Šabata 1d352a9
Source0:        http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/WWW-Mechanize-%{version}.tar.gz
13d7075
BuildArch:      noarch
f8c38e8
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
f8c38e8
# HTML::Status is not used anymore probably
f8c38e8
#Requires:       perl(HTTP::Status)
f8c38e8
# LWP is not run-time dependecy probably
f8c38e8
#Requires:       perl(LWP) >= 5.829
Chris Weyl 8ba7c90
BuildRequires:  perl(Carp)
2b2c8da
BuildRequires:  perl(CGI)
f8c38e8
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl 8ba7c90
BuildRequires:  perl(Getopt::Long)
Chris Weyl 8ba7c90
BuildRequires:  perl(HTML::Form) >= 1.038
Chris Weyl 8ba7c90
BuildRequires:  perl(HTML::HeadParser)
f8c38e8
# HTML::Parser is not used anymore probably
f8c38e8
#BuildRequires:  perl(HTML::Parser) >= 3.33
Chris Weyl 8ba7c90
BuildRequires:  perl(HTTP::Request) >= 1.3
f8c38e8
# HTTP::Response::Encoding is not used anymore probably
f8c38e8
BuildRequires:  perl(HTTP::Response::Encoding) >= 0.05
4da0218
BuildRequires:  perl(HTML::TreeBuilder)
f8c38e8
# HTML::Status is not used anymore probably
f8c38e8
#BuildRequires:  perl(HTTP::Status)
f8c38e8
BuildRequires:  perl(HTML::TokeParser) >= 2.28
f8c38e8
BuildRequires:  perl(IO::Socket::SSL)
Chris Weyl 8ba7c90
BuildRequires:  perl(LWP) >= 5.829
f8c38e8
BuildRequires:  perl(LWP::UserAgent) >= 5.829
Chris Weyl 8ba7c90
BuildRequires:  perl(Pod::Usage)
f8c38e8
BuildRequires:  perl(Test::More) >= 0.34
Chris Weyl 8ba7c90
BuildRequires:  perl(URI::file)
f8c38e8
BuildRequires:  perl(URI::URL)
f8c38e8
# For %%check only:
f8c38e8
# HTTP::Server::Simple is not used anymore probably
f8c38e8
BuildRequires:  perl(HTTP::Server::Simple) >= 0.35
f8c38e8
BuildRequires:  perl(HTTP::Server::Simple::CGI)
f8c38e8
BuildRequires:  perl(Test::Exception)
f8c38e8
BuildRequires:  perl(Test::Memory::Cycle)
f8c38e8
BuildRequires:  perl(Test::NoWarnings)
f8c38e8
BuildRequires:  perl(Test::Pod)
f8c38e8
BuildRequires:  perl(Test::Pod::Coverage)
f8c38e8
BuildRequires:  perl(Test::Taint)
f8c38e8
BuildRequires:  perl(Test::Warn) >= 0.11
f8c38e8
BuildRequires:  perl(URI) >= 1.36
f8c38e8
%if %{with localtests}
f8c38e8
BuildRequires:  perl(File::Temp)
f8c38e8
BuildRequires:  perl(FindBin)
f8c38e8
BuildRequires:  perl(HTTP::Daemon)
f8c38e8
BuildRequires:  perl(HTTP::Response)
f8c38e8
%endif
f8c38e8
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
%prep
13d7075
%setup -q -n WWW-Mechanize-%{version}
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
%install
Chris Weyl 91275ea
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl 8ba7c90
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}/*
f8c38e8
for F in Changes; do
f8c38e8
    iconv -f iso8859-1 -t utf-8 "$F" > "${F}.utf8" && \
f8c38e8
        touch -r "$F" "${F}.utf8" && mv "${F}.utf8" "$F"
f8c38e8
done;
13d7075
13d7075
%check
184cd6b
make test
13d7075
13d7075
%files
Chris Weyl 8ba7c90
%doc Changes etc/www-mechanize-logo.png
13d7075
%{_bindir}/mech-dump
Chris Weyl 8ba7c90
%{perl_vendorlib}/*
13d7075
%{_mandir}/man1/*.1*
ca791b1
%{_mandir}/man3/*.3pm*
13d7075
13d7075
%changelog
56b6a53
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.72-6
56b6a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
56b6a53
d16afde
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 1.72-5
d16afde
- Perl 5.18 rebuild
d16afde
95c9288
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.72-4
95c9288
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95c9288
f8e164a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.72-3
f8e164a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f8e164a
9a078ac
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1.72-2
9a078ac
- Perl 5.16 rebuild
9a078ac
Emmanuel Seyman 938b870
* Fri Feb 03 2012 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 1.72-1
Emmanuel Seyman 938b870
- Update to 1.72
Emmanuel Seyman 938b870
b9ec470
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.71-2
b9ec470
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b9ec470
Petr Šabata 1d352a9
* Mon Nov 28 2011 Petr Šabata <contyk@redhat.com> - 1.71-1
Petr Šabata 1d352a9
- 1.71 bump
Petr Šabata 1d352a9
- Remove defattr
Petr Šabata 1d352a9
- Correct Source URL
Petr Šabata 1d352a9
Petr Sabata 954420c
* Sat Aug 27 2011 Petr Sabata <contyk@redhat.com> - 1.70-1
Petr Sabata 954420c
- 1.70 bump (live tests won't run by default now)
Petr Sabata 954420c
Petr Sabata 715c7e9
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.68-2
Petr Sabata 715c7e9
- Perl mass rebuild
Petr Sabata 715c7e9
4da0218
* Tue Apr 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.68-1
4da0218
- update to 1.68
4da0218
- add BR HTML::TreeBuilder, remove duplicated requires
4da0218
eddd9ce
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.66-3
eddd9ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
eddd9ce
2b2c8da
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.66-2
2b2c8da
- Add BR: perl(CGI) (Fix FTBS: BZ 661086).
2b2c8da
b64cbb7
* Sun Nov 21 2010 Iain Arnell <iarnell@gmail.com> 1.66-1
b64cbb7
- update to latest upstream version
b64cbb7
- clean up spec for modern rpmbuild
b64cbb7
546df26
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.62-2
546df26
- Mass rebuild with perl-5.12.0
546df26
f8c38e8
* Wed Apr 21 2010 Petr Pisar <ppisar@redhat.com> 1.62-1
f8c38e8
- version bump
f8c38e8
- clean dependecies up
f8c38e8
Chris Weyl 8ba7c90
* Sun Aug 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.60-1
Chris Weyl 8ba7c90
- auto-update to 1.60 (by cpan-spec-update 0.01)
Chris Weyl 8ba7c90
- added a new br on perl(Carp) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(File::Temp) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(FindBin) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(Getopt::Long) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(HTML::Form) (version 1.038)
Chris Weyl 8ba7c90
- added a new br on perl(HTML::HeadParser) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(HTML::Parser) (version 3.33)
Chris Weyl 8ba7c90
- altered br on perl(HTML::TokeParser) (0 => 2.28)
Chris Weyl 8ba7c90
- added a new br on perl(HTTP::Daemon) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(HTTP::Request) (version 1.3)
Chris Weyl 8ba7c90
- altered br on perl(HTTP::Server::Simple) (0 => 0.35)
Chris Weyl 8ba7c90
- added a new br on perl(HTTP::Server::Simple::CGI) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(HTTP::Status) (version 0)
Chris Weyl 8ba7c90
- added a new br on perl(LWP) (version 5.829)
Chris Weyl 8ba7c90
- altered br on perl(LWP::UserAgent) (0 => 5.829)
Chris Weyl 8ba7c90
- added a new br on perl(Pod::Usage) (version 0)
Chris Weyl 8ba7c90
- altered br on perl(Test::More) (0 => 0.34)
Chris Weyl 8ba7c90
- altered br on perl(Test::Warn) (0 => 0.11)
Chris Weyl 8ba7c90
- added a new br on perl(URI::file) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(Carp) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(File::Temp) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(FindBin) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(Getopt::Long) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(HTML::Form) (version 1.038)
Chris Weyl 8ba7c90
- added a new req on perl(HTML::HeadParser) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(HTML::Parser) (version 3.33)
Chris Weyl 8ba7c90
- added a new req on perl(HTML::TokeParser) (version 2.28)
Chris Weyl 8ba7c90
- added a new req on perl(HTTP::Daemon) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(HTTP::Request) (version 1.3)
Chris Weyl 8ba7c90
- added a new req on perl(HTTP::Server::Simple) (version 0.35)
Chris Weyl 8ba7c90
- added a new req on perl(HTTP::Server::Simple::CGI) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(HTTP::Status) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(LWP) (version 5.829)
Chris Weyl 8ba7c90
- added a new req on perl(LWP::UserAgent) (version 5.829)
Chris Weyl 8ba7c90
- added a new req on perl(Pod::Usage) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(URI) (version 1.36)
Chris Weyl 8ba7c90
- added a new req on perl(URI::URL) (version 0)
Chris Weyl 8ba7c90
- added a new req on perl(URI::file) (version 0)
Chris Weyl 8ba7c90
501e376
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-3
501e376
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
501e376
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.