Disable tests because they need network access
This commit is contained in:
parent
97ab28334a
commit
2994349c27
@ -1,6 +1,7 @@
|
|||||||
|
%bcond_with tests # Tests require network access
|
||||||
Name: perl-LWP-Protocol-https
|
Name: perl-LWP-Protocol-https
|
||||||
Version: 6.02
|
Version: 6.02
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Provide HTTPS support for LWP::UserAgent
|
Summary: Provide HTTPS support for LWP::UserAgent
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
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
|
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
%if %{with tests}
|
||||||
# Tests:
|
# Tests:
|
||||||
BuildRequires: perl(IO::Socket::SSL) >= 1.38
|
BuildRequires: perl(IO::Socket::SSL) >= 1.38
|
||||||
BuildRequires: perl(LWP::Protocol::http)
|
BuildRequires: perl(LWP::Protocol::http)
|
||||||
BuildRequires: perl(LWP::UserAgent) >= 6.02
|
BuildRequires: perl(LWP::UserAgent) >= 6.02
|
||||||
BuildRequires: perl(Mozilla::CA) >= 20110101
|
BuildRequires: perl(Mozilla::CA) >= 20110101
|
||||||
BuildRequires: perl(Net::HTTPS) >= 6
|
BuildRequires: perl(Net::HTTPS) >= 6
|
||||||
|
%endif
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
Requires: perl(IO::Socket::SSL) >= 1.38
|
Requires: perl(IO::Socket::SSL) >= 1.38
|
||||||
Requires: perl(LWP::UserAgent) >= 6.02
|
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/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{?with_tests:make test}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -53,6 +56,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Mar 28 2011 Petr Pisar <ppisar@redhat.com> 6.02-1
|
||||||
- Specfile autogenerated by cpanspec 1.78.
|
- Specfile autogenerated by cpanspec 1.78.
|
||||||
- Remove BuildRoot stuff
|
- Remove BuildRoot stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user