Disable tests because they need network access

This commit is contained in:
Petr Písař 2011-03-29 16:27:24 +02:00
parent 97ab28334a
commit 2994349c27

View File

@ -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@redhat.com> - 6.02-2
- Disable tests because they need network access
* Mon Mar 28 2011 Petr Pisar <ppisar@redhat.com> 6.02-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot stuff