[perl-POE-Component-Client-DNS] Disable live network tests by default
Petr Šabata
psabata at fedoraproject.org
Tue Nov 4 12:35:41 UTC 2014
commit abb95cfc6d3a64ded4e9d8ce4c5364056a1e4d07
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Nov 4 13:35:54 2014 +0100
Disable live network tests by default
perl-POE-Component-Client-DNS.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/perl-POE-Component-Client-DNS.spec b/perl-POE-Component-Client-DNS.spec
index 03ac55c..601747d 100644
--- a/perl-POE-Component-Client-DNS.spec
+++ b/perl-POE-Component-Client-DNS.spec
@@ -12,7 +12,9 @@ BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
+%{?_with_network_tests:
BuildRequires: perl(lib)
+}
BuildRequires: perl(Net::DNS) >= 0.65
BuildRequires: perl(POE) >= 1.294
BuildRequires: perl(Scalar::Util)
@@ -47,6 +49,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} +
cp t/01_resolve.t example_resolve
%check
+%{?!_with_network_tests: rm t/01_resolve.t }
make test
%files
More information about the perl-devel
mailing list