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
|
Name: perl-LWP-Protocol-https
|
||||||
Version: 6.07
|
Version: 6.07
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Provide HTTPS support for LWP::UserAgent
|
Summary: Provide HTTPS support for LWP::UserAgent
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/LWP-Protocol-https
|
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
|
# 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
|
Patch1: LWP-Protocol-https-6.06-Debian-746576-fix-test-make-it-workable-for-Crypt-SS.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: findutils
|
%if !%{with perl_LWP_Protocol_https_enables_internet_test}
|
||||||
|
BuildRequires: coreutils
|
||||||
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl(:VERSION) >= 5.8.1
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
# Run-time:
|
# Run-time:
|
||||||
BuildRequires: perl(IO::Socket::SSL) >= 1.54
|
BuildRequires: perl(IO::Socket::SSL) >= 1.54
|
||||||
@ -31,7 +36,9 @@ BuildRequires: perl(IO::Socket::INET)
|
|||||||
BuildRequires: perl(LWP::UserAgent) >= 6.06
|
BuildRequires: perl(LWP::UserAgent) >= 6.06
|
||||||
BuildRequires: perl(Socket)
|
BuildRequires: perl(Socket)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
|
%if %{with perl_LWP_Protocol_https_enables_internet_test}
|
||||||
BuildRequires: perl(Test::RequiresInternet)
|
BuildRequires: perl(Test::RequiresInternet)
|
||||||
|
%endif
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
BuildRequires: perl(IO::Socket::SSL) >= 1.953
|
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}
|
%setup -q -n LWP-Protocol-https-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -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
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
%{make_install}
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -73,6 +83,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user