Name: perl-LWP-Protocol-connect Version: 6.09 Release: 29%{?dist} Summary: Provides HTTP CONNECT proxy support for LWP::UserAgent License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/LWP-Protocol-connect Source0: https://cpan.metacpan.org/authors/id/B/BE/BENNING/LWP-Protocol-connect-%{version}.tar.gz # Normalize shebangs, not suitable for upstream Patch0: LWP-Protocol-connect-6.09-Do-not-use-bin-env-in-shebangs.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: # base not use at tests # HTTP::Request not used at tests # IO::Socket::SSL not used at tests BuildRequires: perl(LWP::Protocol) # LWP::Protocol::http not used at tests # LWP::Protocol::https not used at tests # LWP::UserAgent not used at tests # URI::http not used at tests # Tests BuildRequires: perl(Test::More) %description The LWP::Protocol::connect module provides support for using HTTP and HTTPS over a proxy via the HTTP CONNECT method. %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 %autosetup -p 1 -n LWP-Protocol-connect-%{version} # Remove author and release tests which are always skipped rm t/author-*.t t/release-*.t t/empty-ca-bundle.crt perl -i -ne 'print $_ unless m{^t/(?:(?:author|release)-.*\.t|empty-ca-bundle\.crt)}' MANIFEST chmod +x t/*.t %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc CHANGES README %dir %{perl_vendorlib}/LWP %dir %{perl_vendorlib}/LWP/Protocol %{perl_vendorlib}/LWP/Protocol/connect %{perl_vendorlib}/LWP/Protocol/connect.pm %dir %{perl_vendorlib}/LWP/Protocol/http %{perl_vendorlib}/LWP/Protocol/http/connect %{perl_vendorlib}/LWP/Protocol/http/connect.pm %dir %{perl_vendorlib}/LWP/Protocol/https %{perl_vendorlib}/LWP/Protocol/https/connect %{perl_vendorlib}/LWP/Protocol/https/connect.pm %dir %{perl_vendorlib}/URI %{perl_vendorlib}/URI/connect.pm %{_mandir}/man3/LWP::Protocol::connect.* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 6.09-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 6.09-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 6.09-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Apr 27 2023 Petr Pisar - 6.09-26 - Modernize a spec file - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 6.09-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 6.09-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 6.09-23 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 6.09-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 6.09-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 6.09-20 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 6.09-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 6.09-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 6.09-17 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 6.09-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 6.09-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 6.09-14 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 6.09-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 6.09-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 6.09-11 - Perl 5.28 rebuild * Tue Jun 05 2018 Jitka Plesnikova - 6.09-10 - Add missing run-requires MODULE_COMPAT * Thu Feb 08 2018 Fedora Release Engineering - 6.09-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 6.09-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 6.09-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue May 17 2016 Jitka Plesnikova - 6.09-6 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 6.09-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 6.09-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 09 2015 Jitka Plesnikova - 6.09-3 - Perl 5.22 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 6.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 08 2014 Sven Nierlein 6.09-1 - new upstream version * Sun Apr 06 2014 Sven Nierlein 6.06-2 - added changes and readme - used description from the module itself - used DESTDIR instead of PERL_INSTALL_ROOT - removed author test only build requires * Sun Mar 23 2014 Sven Nierlein 6.06-1 - Specfile created