File perl-WWW-Mechanize.spec of Package perl-WWW-Mechanize

#
# spec file for package perl-WWW-Mechanize
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-WWW-Mechanize
Version:        1.75
Release:        0
%define cpan_name WWW-Mechanize
Summary:        Handy web browsing in a Perl object
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/WWW-Mechanize/
Source0:        http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-CGI >= 4.08
BuildRequires:  perl-macros
BuildRequires:  perl(HTML::Form) >= 6
BuildRequires:  perl(HTML::HeadParser)
BuildRequires:  perl(HTML::Parser) >= 3.33
BuildRequires:  perl(HTML::TokeParser) >= 2.28
BuildRequires:  perl(HTML::TreeBuilder)
BuildRequires:  perl(HTTP::Daemon)
BuildRequires:  perl(HTTP::Request) >= 1.3
BuildRequires:  perl(HTTP::Server::Simple) >= 0.35
BuildRequires:  perl(HTTP::Server::Simple::CGI)
BuildRequires:  perl(HTTP::Status)
BuildRequires:  perl(LWP) >= 5.829
BuildRequires:  perl(LWP::UserAgent) >= 5.829
BuildRequires:  perl(Test::Warn) >= 0.11
BuildRequires:  perl(URI) >= 1.36
BuildRequires:  perl(URI::URL)
BuildRequires:  perl(URI::file)
Requires:       perl(CGI) >= 4.08
Requires:       perl(HTML::Form) >= 6
Requires:       perl(HTML::HeadParser)
Requires:       perl(HTML::Parser) >= 3.33
Requires:       perl(HTML::TokeParser) >= 2.28
Requires:       perl(HTML::TreeBuilder)
Requires:       perl(HTTP::Daemon)
Requires:       perl(HTTP::Request) >= 1.3
Requires:       perl(HTTP::Server::Simple) >= 0.35
Requires:       perl(HTTP::Server::Simple::CGI)
Requires:       perl(HTTP::Status)
Requires:       perl(LWP) >= 5.829
Requires:       perl(LWP::UserAgent) >= 5.829
Requires:       perl(Test::Warn) >= 0.11
Requires:       perl(URI) >= 1.36
Requires:       perl(URI::URL)
Requires:       perl(URI::file)
%{perl_requires}

%description
Perl module for stateful programmatic web browsing, used for automating interaction with websites.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes

%changelog