3 %bcond_without tests # do not perform "make test"
6 %define pnam RequiresInternet
7 Summary: Test::RequiresInternet - Easily test network connectivity
8 Summary(pl.UTF-8): Test::RequiresInternet - łatwe sprawdzanie połączenia z siecią
9 Name: perl-Test-RequiresInternet
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: 0ba9f1cff4cf90ed2618c2eddfd525d8
17 URL: https://metacpan.org/release/Test-RequiresInternet/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Simple
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module is intended to easily test network connectivity before
28 functional tests begin to non-local Internet resources. It does not
29 require any modules beyond those supplied in core Perl.
31 %description -l pl.UTF-8
32 Ten moduł służy do łatwego sprawdzania połączenia z siecią przed
33 testami funkcjonalnymi sięgającymi do zasobów internetowych. Moduł
34 nie wymaga żadnych modułów nie dostarczanych wraz z dystrybucją Perla.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Test/RequiresInternet.pm
59 %{_mandir}/man3/Test::RequiresInternet.3pm*