]> git.pld-linux.org Git - packages/perl-WWW-Mechanize.git/commitdiff
- up to 0.61
authormigo <migo@pld-linux.org>
Tue, 7 Oct 2003 13:27:55 +0000 (13:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- new bcond style
- proper BRs for test

Changed files:
    perl-WWW-Mechanize.spec -> 1.4

perl-WWW-Mechanize.spec

index 9c80b33342e427f923a26c9641ef6dbe2e5a54d8..499f394d115ec55ae67568bbbafb0773cd9019c3 100644 (file)
@@ -1,21 +1,28 @@
-#
+
 # Conditional build:
-# _with_tests - perform "make test"
-#
+# tests require internet connection
+%bcond_with    tests   # perform "make test"
+
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    WWW
 %define        pnam    Mechanize
 Summary:       WWW::Mechanize - automate interaction with websites
 Summary(pl):   WWW::Mechanize - automatyzacja interakcji ze stronami WWW
 Name:          perl-WWW-Mechanize
-Version:       0.60
+Version:       0.61
 Release:       1
 License:       Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 26736aa802cede1c005a284a0bcef8ae
+# Source0-md5: 73a04aeb03261c0c56a292245d701396
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: perl-devel >= 5.6.1
+%if %{with tests}
+BuildRequires: perl-libwww >= 5.69
+BuildRequires: perl-URI
+BuildRequires: perl(HTML::TokeParser) >= 2.20
+BuildRequires: perl(Test::More) >= 0.34
+%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -46,7 +53,7 @@ echo "y" | %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
 %{__make}
 
-%{?_with_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.065703 seconds and 4 git commands to generate.