|
|
|
@ -2,18 +2,12 @@
|
|
|
|
|
%bcond_with perl_LWP_Protocol_https_enables_internet_test
|
|
|
|
|
|
|
|
|
|
Name: perl-LWP-Protocol-https
|
|
|
|
|
Version: 6.10
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 6.13
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Provide HTTPS support for LWP::UserAgent
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/LWP-Protocol-https
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-%{version}.tar.gz
|
|
|
|
|
# Fix CVE-2014-3230, bug #1094442,
|
|
|
|
|
# proposed in https://github.com/libwww-perl/lwp-protocol-https/pull/14
|
|
|
|
|
Patch0: LWP-Protocol-https-6.06-Debian-746576-don-t-disale-verification-if-only-host.patch
|
|
|
|
|
# Fix CVE-2014-3230, bug #1094442,
|
|
|
|
|
# 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: coreutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
@ -25,7 +19,7 @@ BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.54
|
|
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.970
|
|
|
|
|
BuildRequires: perl(LWP::Protocol::http)
|
|
|
|
|
BuildRequires: perl(LWP::Protocol::http::SocketMethods)
|
|
|
|
|
BuildRequires: perl(Mozilla::CA) >= 20180117
|
|
|
|
@ -39,13 +33,13 @@ BuildRequires: perl(IO::Socket::INET)
|
|
|
|
|
BuildRequires: perl(LWP::UserAgent) >= 6.06
|
|
|
|
|
BuildRequires: perl(Socket)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
|
BuildRequires: perl(Test::Needs) >= 0.002010
|
|
|
|
|
%if %{with perl_LWP_Protocol_https_enables_internet_test}
|
|
|
|
|
BuildRequires: perl(Test::RequiresInternet)
|
|
|
|
|
%endif
|
|
|
|
|
# Optional tests:
|
|
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.953
|
|
|
|
|
BuildRequires: perl(IO::Socket::SSL::Utils)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(IO::Socket::SSL) >= 1.54
|
|
|
|
|
Requires: perl(Mozilla::CA) >= 20180117
|
|
|
|
|
Requires: perl(Net::HTTPS) >= 6
|
|
|
|
@ -59,14 +53,26 @@ URLs with LWP. This module is a plug-in to the LWP protocol handling, so
|
|
|
|
|
you don't use it directly. Once the module is installed LWP is able to
|
|
|
|
|
access sites using HTTP over SSL/TLS.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%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
|
|
|
|
|
rm t/example.t
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/example.t}' MANIFEST
|
|
|
|
|
%endif
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in $(find t/ -name '*.t'); do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
|
|
|
|
@ -74,7 +80,16 @@ perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
rm -f %{buildroot}%{_libexecdir}/%{name}/t/00*
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -85,13 +100,56 @@ make test
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.10-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 6.13-3
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 6.13-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.13-2
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 06 2024 Michal Josef Špaček <mspacek@redhat.com> - 6.13-1
|
|
|
|
|
- 0.13 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Michal Josef Špaček <mspacek@redhat.com> - 6.12-1
|
|
|
|
|
- 0.12 bump
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.11-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Michal Josef Špaček <mspacek@redhat.com> - 6.11-1
|
|
|
|
|
- 6.11 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Dec 08 2022 Michal Josef Špaček <mspacek@redhat.com> - 6.10-8
|
|
|
|
|
- Package tests
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 6.10-6
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.10-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 6.10-3
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|