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