commit 2994349c276eb8955b861a00cbaf8a2881ecf3be Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Tue Mar 29 16:27:24 2011 +0200 Disable tests because they need network access perl-LWP-Protocol-https.spec | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) --- diff --git a/perl-LWP-Protocol-https.spec b/perl-LWP-Protocol-https.spec index ff9ad3d..d59f7aa 100644 --- a/perl-LWP-Protocol-https.spec +++ b/perl-LWP-Protocol-https.spec @@ -1,6 +1,7 @@ +%bcond_with tests # Tests require network access Name: perl-LWP-Protocol-https Version: 6.02 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Provide HTTPS support for LWP::UserAgent License: GPL+ or Artistic Group: Development/Libraries @@ -8,12 +9,14 @@ URL: http://search.cpan.org/dist/LWP-Protocol-https/ Source0: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) +%if %{with tests} # Tests: BuildRequires: perl(IO::Socket::SSL) >= 1.38 BuildRequires: perl(LWP::Protocol::http) BuildRequires: perl(LWP::UserAgent) >= 6.02 BuildRequires: perl(Mozilla::CA) >= 20110101 BuildRequires: perl(Net::HTTPS) >= 6 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(IO::Socket::SSL) >= 1.38 Requires: perl(LWP::UserAgent) >= 6.02 @@ -44,7 +47,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check -make test +%{?with_tests:make test} %files %defattr(-,root,root,-) @@ -53,6 +56,9 @@ make test %{_mandir}/man3/* %changelog +* Tue Mar 29 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 6.02-2 +- Disable tests because they need network access + * Mon Mar 28 2011 Petr Pisar <ppisar@xxxxxxxxxx> 6.02-1 - Specfile autogenerated by cpanspec 1.78. - Remove BuildRoot stuff -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel