3 %bcond_without tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam WWW-Mechanize
8 Summary: Test::WWW-Mechanize - Testing-specific WWW::Mechanize subclass
9 Name: perl-Test-WWW-Mechanize
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 8a2b2078b8cd226c82101158a50630f9
17 URL: http://search.cpan.org/dist/Test-WWW-Mechanize/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Carp-Assert-More
22 BuildRequires: perl-Test-LongString
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates features for web application testing.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_vendorlib}/Test/WWW/Mechanize.pm