|
|
d742b5 |
# Add support for IPv6
|
|
|
d742b5 |
%{bcond_without perl_Net_HTTP_enables_ipv6}
|
|
|
d742b5 |
# Do not run network tests accessing Internet
|
|
|
d742b5 |
%{bcond_with perl_Net_HTTP_enables_network_test}
|
|
|
d742b5 |
# Add support for TLS/SSL
|
|
|
d742b5 |
%{bcond_without perl_Net_HTTP_enables_ssl}
|
|
|
d742b5 |
|
|
|
d742b5 |
Name: perl-Net-HTTP
|
|
|
d742b5 |
Version: 6.17
|
|
|
d742b5 |
Release: 2%{?dist}
|
|
|
d742b5 |
Summary: Low-level HTTP connection (client)
|
|
|
d742b5 |
License: GPL+ or Artistic
|
|
|
d742b5 |
URL: http://search.cpan.org/dist/Net-HTTP/
|
|
|
d742b5 |
Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/Net-HTTP-%{version}.tar.gz
|
|
|
d742b5 |
BuildArch: noarch
|
|
|
d742b5 |
BuildRequires: make
|
|
|
d742b5 |
BuildRequires: perl-interpreter
|
|
|
d742b5 |
BuildRequires: perl-generators
|
|
|
d742b5 |
BuildRequires: perl(:VERSION) >= 5.6.2
|
|
|
d742b5 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
d742b5 |
BuildRequires: perl(Getopt::Long)
|
|
|
d742b5 |
BuildRequires: perl(strict)
|
|
|
d742b5 |
# Run-time:
|
|
|
d742b5 |
BuildRequires: perl(base)
|
|
|
d742b5 |
BuildRequires: perl(Carp)
|
|
|
d742b5 |
BuildRequires: perl(Compress::Raw::Zlib)
|
|
|
d742b5 |
# Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
|
|
d742b5 |
%if %{with perl_Net_HTTP_enables_ipv6}
|
|
|
d742b5 |
BuildRequires: perl(IO::Socket::IP)
|
|
|
d742b5 |
%else
|
|
|
d742b5 |
BuildRequires: perl(IO::Socket)
|
|
|
d742b5 |
%endif
|
|
|
d742b5 |
%if %{with perl_Net_HTTP_enables_ssl}
|
|
|
d742b5 |
BuildRequires: perl(IO::Socket::SSL) >= 2.012
|
|
|
d742b5 |
%endif
|
|
|
d742b5 |
BuildRequires: perl(IO::Uncompress::Gunzip)
|
|
|
d742b5 |
BuildRequires: perl(Symbol)
|
|
|
d742b5 |
BuildRequires: perl(URI)
|
|
|
d742b5 |
BuildRequires: perl(vars)
|
|
|
d742b5 |
BuildRequires: perl(warnings)
|
|
|
d742b5 |
# Tests only:
|
|
|
d742b5 |
BuildRequires: perl(Data::Dumper)
|
|
|
d742b5 |
BuildRequires: perl(File::Spec)
|
|
|
d742b5 |
BuildRequires: perl(IO::Select)
|
|
|
d742b5 |
BuildRequires: perl(IO::Socket::INET)
|
|
|
d742b5 |
BuildRequires: perl(Socket)
|
|
|
d742b5 |
BuildRequires: perl(Test::More)
|
|
|
d742b5 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
d742b5 |
Requires: perl(Compress::Raw::Zlib)
|
|
|
d742b5 |
Requires: perl(IO::Uncompress::Gunzip)
|
|
|
d742b5 |
# Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
|
|
d742b5 |
%if %{with perl_Net_HTTP_enables_ipv6}
|
|
|
d742b5 |
Requires: perl(IO::Socket::IP)
|
|
|
d742b5 |
%else
|
|
|
d742b5 |
Requires: perl(IO::Socket)
|
|
|
d742b5 |
%endif
|
|
|
d742b5 |
Requires: perl(Symbol)
|
|
|
d742b5 |
%if %{with perl_Net_HTTP_enables_ssl}
|
|
|
d742b5 |
Requires: perl(IO::Socket::SSL) >= 2.012
|
|
|
d742b5 |
%endif
|
|
|
d742b5 |
Conflicts: perl-libwww-perl < 6
|
|
|
d742b5 |
|
|
|
d742b5 |
%description
|
|
|
d742b5 |
The Net::HTTP class is a low-level HTTP client. An instance of the
|
|
|
d742b5 |
Net::HTTP class represents a connection to an HTTP server. The HTTP
|
|
|
d742b5 |
protocol is described in RFC 2616. The Net::HTTP class supports HTTP/1.0
|
|
|
d742b5 |
and HTTP/1.1.
|
|
|
d742b5 |
|
|
|
d742b5 |
%prep
|
|
|
d742b5 |
%setup -q -n Net-HTTP-%{version}
|
|
|
d742b5 |
|
|
|
d742b5 |
%build
|
|
|
d742b5 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
d742b5 |
make %{?_smp_mflags}
|
|
|
d742b5 |
|
|
|
d742b5 |
%install
|
|
|
d742b5 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
d742b5 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
d742b5 |
|
|
|
d742b5 |
%check
|
|
|
d742b5 |
export NO_NETWORK_TESTING=%{without perl_Net_HTTP_enables_network_test}
|
|
|
d742b5 |
make test
|
|
|
d742b5 |
|
|
|
d742b5 |
%files
|
|
|
d742b5 |
%license LICENSE
|
|
|
d742b5 |
%doc Changes CONTRIBUTORS README.md
|
|
|
d742b5 |
%{perl_vendorlib}/*
|
|
|
d742b5 |
%{_mandir}/man3/*
|
|
|
d742b5 |
|
|
|
d742b5 |
%changelog
|
|
|
d742b5 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.17-2
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Sep 04 2017 Petr Pisar <ppisar@redhat.com> - 6.17-1
|
|
|
d742b5 |
- 6.17 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.16-3
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.16-2
|
|
|
d742b5 |
- Perl 5.26 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue May 30 2017 Petr Pisar <ppisar@redhat.com> - 6.16-1
|
|
|
d742b5 |
- 6.16 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon May 15 2017 Petr Pisar <ppisar@redhat.com> - 6.15-1
|
|
|
d742b5 |
- 6.15 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Apr 25 2017 Petr Pisar <ppisar@redhat.com> - 6.14-1
|
|
|
d742b5 |
- 6.14 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Feb 20 2017 Petr Pisar <ppisar@redhat.com> - 6.13-1
|
|
|
d742b5 |
- 6.13 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.12-2
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Fri Jan 06 2017 Petr Pisar <ppisar@redhat.com> - 6.12-1
|
|
|
d742b5 |
- 6.12 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.09-5
|
|
|
d742b5 |
- Perl 5.24 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.09-4
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.09-3
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.09-2
|
|
|
d742b5 |
- Perl 5.22 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu May 21 2015 Petr Pisar <ppisar@redhat.com> - 6.09-1
|
|
|
d742b5 |
- 6.09 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-2
|
|
|
d742b5 |
- Perl 5.20 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Jul 29 2014 Petr Pisar <ppisar@redhat.com> - 6.07-1
|
|
|
d742b5 |
- 6.07 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-5
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-4
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 6.06-3
|
|
|
d742b5 |
- Specify all dependencies
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 6.06-2
|
|
|
d742b5 |
- Perl 5.18 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Mar 11 2013 Petr Pisar <ppisar@redhat.com> - 6.06-1
|
|
|
d742b5 |
- 6.06 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Fri Mar 08 2013 Petr Pisar <ppisar@redhat.com> - 6.05-3
|
|
|
d742b5 |
- Handle IO::Socket::SSL as non-blocking (bug #768394)
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.05-2
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Nov 13 2012 Petr Pisar <ppisar@redhat.com> - 6.05-1
|
|
|
d742b5 |
- 6.05 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Fri Nov 09 2012 Petr Pisar <ppisar@redhat.com> - 6.04-1
|
|
|
d742b5 |
- 6.04 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Aug 13 2012 Petr Pisar <ppisar@redhat.com> - 6.03-4
|
|
|
d742b5 |
- Specify all dependencies
|
|
|
d742b5 |
|
|
|
d742b5 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-3
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 6.03-2
|
|
|
d742b5 |
- Perl 5.16 rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.03-1
|
|
|
d742b5 |
- 6.03 bump: Restore blocking override for Net::SSL (RT #72790)
|
|
|
d742b5 |
|
|
|
d742b5 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-2
|
|
|
d742b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Nov 22 2011 Petr Pisar <ppisar@redhat.com> - 6.02-1
|
|
|
d742b5 |
- 6.02 bump
|
|
|
d742b5 |
- Fixes HTTPS time-out in LWP::UserAgent/IO::Socket::SSL (bug #750793)
|
|
|
d742b5 |
|
|
|
d742b5 |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 6.01-2
|
|
|
d742b5 |
- Perl mass rebuild
|
|
|
d742b5 |
|
|
|
d742b5 |
* Mon Apr 18 2011 Petr Pisar <ppisar@redhat.com> - 6.01-1
|
|
|
d742b5 |
- 6.01 bump
|
|
|
d742b5 |
|
|
|
d742b5 |
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
|
|
|
d742b5 |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
d742b5 |
- Remove BuildRoot stuff
|
|
|
d742b5 |
- Conflicts with perl-libwww-perl-5* and older
|