142b47
# Perform tests that need the Internet
142b47
%bcond_with perl_LWP_Protocol_https_enables_internet_test
142b47
142b47
Name:           perl-LWP-Protocol-https
142b47
Version:        6.10
142b47
Release:        4%{?dist}
142b47
Summary:        Provide HTTPS support for LWP::UserAgent
142b47
License:        GPL+ or Artistic
142b47
URL:            https://metacpan.org/release/LWP-Protocol-https
142b47
Source0:        https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-%{version}.tar.gz
142b47
# Fix CVE-2014-3230, bug #1094442,
142b47
# proposed in https://github.com/libwww-perl/lwp-protocol-https/pull/14
142b47
Patch0:         LWP-Protocol-https-6.06-Debian-746576-don-t-disale-verification-if-only-host.patch
142b47
# Fix CVE-2014-3230, bug #1094442,
142b47
# proposed in https://github.com/libwww-perl/lwp-protocol-https/pull/14
142b47
Patch1:         LWP-Protocol-https-6.06-Debian-746576-fix-test-make-it-workable-for-Crypt-SS.patch
142b47
BuildArch:      noarch
142b47
BuildRequires:  coreutils
142b47
BuildRequires:  make
142b47
BuildRequires:  perl-generators
142b47
BuildRequires:  perl-interpreter
142b47
BuildRequires:  perl(:VERSION) >= 5.8.1
142b47
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
142b47
BuildRequires:  perl(strict)
142b47
BuildRequires:  perl(warnings)
142b47
# Run-time:
142b47
BuildRequires:  perl(base)
142b47
BuildRequires:  perl(IO::Socket::SSL) >= 1.54
142b47
BuildRequires:  perl(LWP::Protocol::http)
142b47
BuildRequires:  perl(LWP::Protocol::http::SocketMethods)
142b47
BuildRequires:  perl(Mozilla::CA) >= 20180117
142b47
BuildRequires:  perl(Net::HTTPS) >= 6
142b47
# Tests:
142b47
BuildRequires:  perl(blib)
142b47
BuildRequires:  perl(File::Spec)
142b47
BuildRequires:  perl(File::Temp)
142b47
BuildRequires:  perl(IO::Select)
142b47
BuildRequires:  perl(IO::Socket::INET)
142b47
BuildRequires:  perl(LWP::UserAgent) >= 6.06
142b47
BuildRequires:  perl(Socket)
142b47
BuildRequires:  perl(Test::More) >= 0.96
142b47
%if %{with perl_LWP_Protocol_https_enables_internet_test}
142b47
BuildRequires:  perl(Test::RequiresInternet)
142b47
%endif
142b47
# Optional tests:
142b47
BuildRequires:  perl(IO::Socket::SSL) >= 1.953
142b47
BuildRequires:  perl(IO::Socket::SSL::Utils)
142b47
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
142b47
Requires:       perl(IO::Socket::SSL) >= 1.54
142b47
Requires:       perl(Mozilla::CA) >= 20180117
142b47
Requires:       perl(Net::HTTPS) >= 6
142b47
142b47
# Remove underspecified dependencies
142b47
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Net::HTTPS\\)\\s*$
142b47
142b47
%description
142b47
The LWP::Protocol::https module provides support for using HTTPS schemed
142b47
URLs with LWP. This module is a plug-in to the LWP protocol handling, so
142b47
you don't use it directly. Once the module is installed LWP is able to
142b47
access sites using HTTP over SSL/TLS.
142b47
142b47
%prep
142b47
%setup -q -n LWP-Protocol-https-%{version}
142b47
%patch0 -p1
142b47
%patch1 -p1
142b47
%if !%{with perl_LWP_Protocol_https_enables_internet_test}
142b47
rm t/apache.t
142b47
perl -i -ne 'print $_ unless m{^t/apache.t}' MANIFEST
142b47
%endif
142b47
142b47
%build
142b47
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
142b47
%{make_build}
142b47
142b47
%install
142b47
%{make_install}
142b47
%{_fixperms} $RPM_BUILD_ROOT/*
142b47
142b47
%check
142b47
make test
142b47
142b47
%files
142b47
%license LICENSE
142b47
%doc Changes
142b47
%{perl_vendorlib}/*
142b47
%{_mandir}/man3/*
142b47
142b47
%changelog
142b47
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.10-4
142b47
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
142b47
  Related: rhbz#1991688
142b47
142b47
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.10-3
142b47
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
142b47
142b47
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-2
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
142b47
142b47
* Fri Dec 18 2020 Petr Pisar <ppisar@redhat.com> - 6.10-1
142b47
- 6.10 bump
142b47
142b47
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.09-3
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
142b47
142b47
* Mon Jul 20 2020 Petr Pisar <ppisar@redhat.com> - 6.09-2
142b47
- Remove unused build-time dependencies
142b47
142b47
* Fri Jul 17 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.09-1
142b47
- 6.09 bump
142b47
142b47
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-12
142b47
- Perl 5.32 rebuild
142b47
142b47
* Fri Feb 14 2020 Petr Pisar <ppisar@redhat.com> - 6.07-11
142b47
- Disable tests that need the Internet by default
142b47
142b47
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-10
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
142b47
142b47
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-9
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
142b47
142b47
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-8
142b47
- Perl 5.30 rebuild
142b47
142b47
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-7
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
142b47
142b47
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-6
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
142b47
142b47
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-5
142b47
- Perl 5.28 rebuild
142b47
142b47
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-4
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
142b47
142b47
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.07-3
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
142b47
142b47
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-2
142b47
- Perl 5.26 rebuild
142b47
142b47
* Mon Feb 20 2017 Petr Pisar <ppisar@redhat.com> - 6.07-1
142b47
- 6.07 bump
142b47
142b47
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.06-9
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
142b47
142b47
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.06-8
142b47
- Perl 5.24 rebuild
142b47
142b47
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.06-7
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
142b47
142b47
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-6
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
142b47
142b47
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.06-5
142b47
- Perl 5.22 rebuild
142b47
142b47
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.06-4
142b47
- Perl 5.20 rebuild
142b47
142b47
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-3
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
142b47
142b47
* Mon May 12 2014 Petr Pisar <ppisar@redhat.com> - 6.06-2
142b47
- Fix CVE-2014-3230 (incorrect handling of SSL certificate verification if
142b47
  HTTPS_CA_DIR or HTTPS_CA_FILE environment variables are set) (bug #1094442)
142b47
142b47
* Wed Apr 23 2014 Petr Pisar <ppisar@redhat.com> - 6.06-1
142b47
- 6.06 bump
142b47
142b47
* Thu Jan 16 2014 Petr Pisar <ppisar@redhat.com> - 6.04-4
142b47
- Modernize spec file
142b47
142b47
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-3
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
142b47
142b47
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 6.04-2
142b47
- Perl 5.18 rebuild
142b47
142b47
* Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 6.04-1
142b47
- 6.04 bump
142b47
142b47
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-4
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
142b47
142b47
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-3
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
142b47
142b47
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 6.03-2
142b47
- Perl 5.16 rebuild
142b47
142b47
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.03-1
142b47
- 6.03 bump
142b47
- Enable tests by default, they detect connectivity now
142b47
142b47
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-5
142b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
142b47
142b47
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 6.02-4
142b47
- RPM 4.9 dependency filtering added
142b47
142b47
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.02-3
142b47
- Perl mass rebuild
142b47
142b47
* Tue Mar 29 2011 Petr Pisar <ppisar@redhat.com> - 6.02-2
142b47
- Disable tests because they need network access
142b47
142b47
* Mon Mar 28 2011 Petr Pisar <ppisar@redhat.com> 6.02-1
142b47
- Specfile autogenerated by cpanspec 1.78.
142b47
- Remove BuildRoot stuff