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