Disable tests that need the Internet by default
This commit is contained in:
parent
ec719cd432
commit
49a9cf1d85
@ -1,6 +1,9 @@
|
||||
# Perform tests that need the Internet
|
||||
%bcond_with perl_LWP_Protocol_https_enables_internet_test
|
||||
|
||||
Name: perl-LWP-Protocol-https
|
||||
Version: 6.07
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Provide HTTPS support for LWP::UserAgent
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/LWP-Protocol-https
|
||||
@ -12,12 +15,14 @@ Patch0: LWP-Protocol-https-6.06-Debian-746576-don-t-disale-verification-
|
||||
# proposed in https://github.com/libwww-perl/lwp-protocol-https/pull/14
|
||||
Patch1: LWP-Protocol-https-6.06-Debian-746576-fix-test-make-it-workable-for-Crypt-SS.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: findutils
|
||||
%if !%{with perl_LWP_Protocol_https_enables_internet_test}
|
||||
BuildRequires: coreutils
|
||||
%endif
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(:VERSION) >= 5.8.1
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
# Run-time:
|
||||
BuildRequires: perl(IO::Socket::SSL) >= 1.54
|
||||
@ -31,7 +36,9 @@ BuildRequires: perl(IO::Socket::INET)
|
||||
BuildRequires: perl(LWP::UserAgent) >= 6.06
|
||||
BuildRequires: perl(Socket)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_LWP_Protocol_https_enables_internet_test}
|
||||
BuildRequires: perl(Test::RequiresInternet)
|
||||
%endif
|
||||
BuildRequires: perl(warnings)
|
||||
# Optional tests:
|
||||
BuildRequires: perl(IO::Socket::SSL) >= 1.953
|
||||
@ -54,14 +61,17 @@ access sites using HTTP over SSL/TLS.
|
||||
%setup -q -n LWP-Protocol-https-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if !%{with perl_LWP_Protocol_https_enables_internet_test}
|
||||
rm t/apache.t
|
||||
perl -i -ne 'print $_ unless m{^t/apache.t}' MANIFEST
|
||||
%endif
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{make_install}
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
@ -73,6 +83,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 14 2020 Petr Pisar <ppisar@redhat.com> - 6.07-11
|
||||
- Disable tests that need the Internet by default
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user