708b56
Name:           perl-libwww-perl
708b56
Version:        6.34
708b56
Release:        1%{?dist}
708b56
Summary:        A Perl interface to the World-Wide Web
708b56
License:        GPL+ or Artistic
708b56
URL:            https://metacpan.org/release/libwww-perl
708b56
Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/libwww-perl-%{version}.tar.gz
708b56
# Accept proxy URLs with IPv6 host names, CPAN RT#94654
708b56
Patch0:         libwww-perl-6.19-Accept-proxy-URLs-with-IPv6-host-names.patch
708b56
BuildArch:      noarch
708b56
BuildRequires:  make
708b56
BuildRequires:  perl-generators
708b56
BuildRequires:  perl-interpreter
708b56
BuildRequires:  perl(:VERSION) >= 5.8.1
708b56
BuildRequires:  perl(CPAN::Meta::Requirements) >= 2.120620
708b56
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
708b56
BuildRequires:  perl(File::Copy)
708b56
BuildRequires:  perl(Getopt::Long)
708b56
BuildRequires:  perl(Module::Metadata)
708b56
BuildRequires:  perl(strict)
708b56
BuildRequires:  perl(warnings)
708b56
708b56
# Run-time:
708b56
# Authen::NTLM 1.02 not used at tests
708b56
BuildRequires:  perl(base)
708b56
BuildRequires:  perl(Carp)
708b56
# Data::Dump 1.13 not used at tests
708b56
# Data::Dump::Trace not used at tests
708b56
BuildRequires:  perl(Digest::MD5)
708b56
BuildRequires:  perl(Encode) >= 2.12
708b56
BuildRequires:  perl(Encode::Locale)
708b56
BuildRequires:  perl(Exporter)
708b56
# Fcntl not used at tests
708b56
# File::Listing 6 not used at tests
708b56
# File::Spec not used at tests
708b56
BuildRequires:  perl(HTML::Entities)
708b56
BuildRequires:  perl(HTML::HeadParser)
708b56
BuildRequires:  perl(HTTP::Config)
708b56
# HTTP::Cookies 6 not used at tests
708b56
BuildRequires:  perl(HTTP::Date) >= 6
708b56
BuildRequires:  perl(HTTP::Headers::Util)
708b56
# HTTP::Negotiate 6 not used at tests
708b56
BuildRequires:  perl(HTTP::Request) >= 6
708b56
BuildRequires:  perl(HTTP::Request::Common) >= 6
708b56
BuildRequires:  perl(HTTP::Response) >= 6
708b56
BuildRequires:  perl(HTTP::Status) >= 6
708b56
# Tests fail with buggy HTTP::Status 6.17
708b56
BuildConflicts: perl(HTTP::Status) = 6.17
708b56
# integer not used at tests
708b56
BuildRequires:  perl(IO::Select)
708b56
BuildRequires:  perl(IO::Socket)
708b56
BuildRequires:  perl(LWP::MediaTypes) >= 6
708b56
# Mail::Internet not needed
708b56
BuildRequires:  perl(MIME::Base64) >= 2.1
708b56
# Net::FTP 2.58 not used at tests
708b56
BuildRequires:  perl(Net::HTTP) >= 6.07
708b56
# Net::NNTP not used at tests
708b56
BuildRequires:  perl(parent)
708b56
BuildRequires:  perl(Scalar::Util)
708b56
BuildRequires:  perl(Try::Tiny)
708b56
BuildRequires:  perl(URI) >= 1.10
708b56
BuildRequires:  perl(URI::Escape)
708b56
# URI::Heuristic not used at tests
708b56
BuildRequires:  perl(WWW::RobotRules) >= 6
708b56
# Optional run-time:
708b56
# CPAN::Config not used at tests
708b56
# HTML::Parse not used at tests
708b56
708b56
# Tests:
708b56
BuildRequires:  perl(Config)
708b56
BuildRequires:  perl(File::Spec)
708b56
BuildRequires:  perl(File::Temp)
708b56
BuildRequires:  perl(FindBin)
708b56
BuildRequires:  perl(HTTP::Daemon) >= 6
708b56
BuildRequires:  perl(Test::Fatal)
708b56
BuildRequires:  perl(Test::More)
708b56
BuildRequires:  perl(Test::RequiresInternet)
708b56
BuildRequires:  perl(utf8)
708b56
# Optional tests:
708b56
# CPAN::Meta not helpful
708b56
# CPAN::Meta::Prereqs not helpful
708b56
708b56
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
708b56
Requires:       perl(Authen::NTLM) >= 1.02
708b56
Suggests:       perl(CPAN::Config)
708b56
Requires:       perl(Encode) >= 2.12
708b56
Requires:       perl(File::Spec)
708b56
Requires:       perl(File::Listing) >= 6
708b56
# Keep HTML::FormatPS optional
708b56
Suggests:       perl(HTML::FormatPS)
708b56
# Keep HTML::FormatText optional
708b56
Suggests:       perl(HTML::FormatText)
708b56
Requires:       perl(HTML::Entities)
708b56
Requires:       perl(HTML::HeadParser)
708b56
Suggests:       perl(HTML::Parse)
708b56
Requires:       perl(HTTP::Config)
708b56
Requires:       perl(HTTP::Cookies) >= 6
708b56
Requires:       perl(HTTP::Date) >= 6
708b56
Requires:       perl(HTTP::Headers::Util)
708b56
Requires:       perl(HTTP::Negotiate) >= 6
708b56
Requires:       perl(HTTP::Request) >= 6
708b56
Requires:       perl(HTTP::Request::Common) >= 6
708b56
Requires:       perl(HTTP::Response) >= 6
708b56
Requires:       perl(HTTP::Status) >= 6
708b56
Requires:       perl(LWP::MediaTypes) >= 6
708b56
Suggests:       perl(LWP::Protocol::https) >= 6.02
708b56
Requires:       perl(MIME::Base64) >= 2.1
708b56
Requires:       perl(Net::FTP) >= 2.58
708b56
Requires:       perl(Net::HTTP) >= 6.07
708b56
Requires:       perl(URI) >= 1.10
708b56
Requires:       perl(URI::Escape)
708b56
Requires:       perl(WWW::RobotRules) >= 6
708b56
Provides:       perl(LWP::Debug::TraceHTTP::Socket) = %{version}
708b56
Provides:       perl(LWP::Protocol::http::Socket) = %{version}
708b56
Provides:       perl(LWP::Protocol::http::SocketMethods) = %{version}
708b56
708b56
%description
708b56
The libwww-perl collection is a set of Perl modules which provides a simple and
708b56
consistent application programming interface to the World-Wide Web.  The main
708b56
focus of the library is to provide classes and functions that allow you to
708b56
write WWW clients. The library also contain modules that are of more general
708b56
use and even classes that help you implement simple HTTP servers.
708b56
708b56
# Remove underspecified dependencies
708b56
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Authen::NTLM|Encode|File::Listing|HTTP::Date|HTTP::Negotiate|HTTP::Request|HTTP::Response|HTTP::Status|LWP::MediaTypes|MIME::Base64|Net::FTP|Net::HTTP|URI|WWW::RobotRules)\\)$
708b56
708b56
%prep
708b56
%setup -q -n libwww-perl-%{version} 
708b56
%patch0 -p1
708b56
708b56
%build
708b56
# Install the aliases by default
708b56
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 --aliases < /dev/null
708b56
make %{?_smp_mflags}
708b56
708b56
%install
708b56
make pure_install DESTDIR=$RPM_BUILD_ROOT
708b56
%{_fixperms} $RPM_BUILD_ROOT/*
708b56
708b56
%check
708b56
unset PERL_LWP_ENV_HTTP_TEST_SERVER_TIMEOUT PERL_LWP_ENV_HTTP_TEST_URL
708b56
make test
708b56
708b56
%files
708b56
%license LICENSE
708b56
%doc Changes README.SSL
708b56
%{_bindir}/*
708b56
%{perl_vendorlib}/libwww/
708b56
%{perl_vendorlib}/LWP.pm
708b56
%{perl_vendorlib}/LWP/
708b56
%{_mandir}/man1/*.1*
708b56
%{_mandir}/man3/*.3*
708b56
708b56
%changelog
708b56
* Wed Jun 06 2018 Petr Pisar <ppisar@redhat.com> - 6.34-1
708b56
- 6.34 bump
708b56
708b56
* Tue Feb 27 2018 Petr Pisar <ppisar@redhat.com> - 6.33-1
708b56
- 6.33 bump
708b56
708b56
* Wed Feb 21 2018 Petr Pisar <ppisar@redhat.com> - 6.32-1
708b56
- 6.32 bump
708b56
708b56
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.31-2
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
708b56
708b56
* Mon Dec 11 2017 Petr Pisar <ppisar@redhat.com> - 6.31-1
708b56
- 6.31 bump
708b56
708b56
* Mon Dec 11 2017 Petr Pisar <ppisar@redhat.com> - 6.30-1
708b56
- 6.30 bump
708b56
708b56
* Tue Nov 07 2017 Petr Pisar <ppisar@redhat.com> - 6.29-1
708b56
- 6.29 bump
708b56
708b56
* Fri Sep 22 2017 Petr Pisar <ppisar@redhat.com> - 6.27-2
708b56
- Provide hidden modules
708b56
708b56
* Fri Sep 22 2017 Petr Pisar <ppisar@redhat.com> - 6.27-1
708b56
- 6.27 bump
708b56
708b56
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.26-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
708b56
708b56
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.26-2
708b56
- Perl 5.26 rebuild
708b56
708b56
* Thu Apr 13 2017 Petr Pisar <ppisar@redhat.com> - 6.26-1
708b56
- 6.26 bump
708b56
708b56
* Tue Apr 04 2017 Petr Pisar <ppisar@redhat.com> - 6.25-1
708b56
- 6.25 bump
708b56
708b56
* Wed Mar 15 2017 Petr Pisar <ppisar@redhat.com> - 6.24-1
708b56
- 6.24 bump
708b56
708b56
* Tue Mar 07 2017 Petr Pisar <ppisar@redhat.com> - 6.23-1
708b56
- 6.23 bump
708b56
708b56
* Thu Mar 02 2017 Petr Pisar <ppisar@redhat.com> - 6.22-1
708b56
- 6.22 bump
708b56
708b56
* Wed Feb 22 2017 Petr Pisar <ppisar@redhat.com> - 6.21-1
708b56
- 6.21 bump
708b56
708b56
* Thu Feb 16 2017 Petr Pisar <ppisar@redhat.com> - 6.19-2
708b56
- Accept proxy URLs with IPv6 host names (CPAN RT#94654)
708b56
708b56
* Wed Feb 15 2017 Petr Pisar <ppisar@redhat.com> - 6.19-1
708b56
- 6.19 bump
708b56
708b56
* Mon Feb 06 2017 Petr Pisar <ppisar@redhat.com> - 6.18-1
708b56
- 6.18 bump
708b56
708b56
* Wed Feb 01 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.17-1
708b56
- 6.17 bump
708b56
708b56
* Thu Jan 19 2017 Petr Pisar <ppisar@redhat.com> - 6.16-1
708b56
- 6.16 bump
708b56
708b56
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.15-3
708b56
- Perl 5.24 rebuild
708b56
708b56
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.15-2
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
708b56
708b56
* Mon Dec 07 2015 Petr Pisar <ppisar@redhat.com> - 6.15-1
708b56
- 6.15 bump
708b56
- Add LWP::Protocol::https optional dependency on Suggests level
708b56
708b56
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.13-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
708b56
708b56
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.13-2
708b56
- Perl 5.22 rebuild
708b56
708b56
* Mon Feb 16 2015 Petr Pisar <ppisar@redhat.com> - 6.13-1
708b56
- 6.13 bump
708b56
708b56
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.08-2
708b56
- Perl 5.20 rebuild
708b56
708b56
* Tue Jul 29 2014 Petr Pisar <ppisar@redhat.com> - 6.08-1
708b56
- 6.08 bump
708b56
708b56
* Mon Jul 07 2014 Petr Pisar <ppisar@redhat.com> - 6.07-1
708b56
- 6.07 bump
708b56
708b56
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-2
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
708b56
708b56
* Wed Apr 23 2014 Petr Pisar <ppisar@redhat.com> - 6.06-1
708b56
- 6.06 bump
708b56
- Run tests against localhost (CPAN RT#94959)
708b56
708b56
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.05-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
708b56
708b56
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 6.05-2
708b56
- Perl 5.18 rebuild
708b56
708b56
* Tue Mar 12 2013 Petr Pisar <ppisar@redhat.com> - 6.05-1
708b56
- 6.05 bump
708b56
708b56
* Fri Mar 08 2013 Petr Pisar <ppisar@redhat.com> - 6.04-5
708b56
- Honor time-out (bug #919448)
708b56
708b56
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-4
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
708b56
708b56
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.04-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
708b56
708b56
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 6.04-2
708b56
- Perl 5.16 rebuild
708b56
708b56
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.04-1
708b56
- 6.04 bump
708b56
708b56
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-2
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
708b56
708b56
* Mon Oct 17 2011 Petr Pisar <ppisar@redhat.com> - 6.03-1
708b56
- 6.03 bump
708b56
- Remove RPM 4.8 dependecy filters
708b56
708b56
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 6.02-3
708b56
- RPM 4.9 dependency filtering added
708b56
708b56
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 6.02-2
708b56
- Perl mass rebuild
708b56
708b56
* Mon Mar 28 2011 Petr Pisar <ppisar@redhat.com> - 6.02-1
708b56
- 6.02 bump
708b56
- HTTPS support unbundled by upstream to break depency cycle in CPAN utilities.
708b56
  Install or depend on perl(LWP::Protocol::https) explicitly, if you need
708b56
  HTTPS support.
708b56
708b56
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> - 6.01-1
708b56
- 6.01 bump
708b56
- Remove BuildRoot stuff
708b56
- Remove unneeded hacks
708b56
708b56
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.837-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
708b56
708b56
* Tue Sep 28 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 5.837-2
708b56
- Add missing ':' to filter_from_requires perl(HTTP::GHTTP).
708b56
- filter_from_provides /perl(HTTP::Headers)$/d instead of /perl(HTTP::Headers)/d.
708b56
708b56
* Mon Sep 27 2010 Marcela Mašláňová <mmaslano@redhat.com> 5.837-1
708b56
- update
708b56
708b56
* Mon Jul 12 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.836-1
708b56
- update
708b56
708b56
* Mon Jun 21 2010 Jesse Keating <jkeating@redhat.com> - 5.834-1
708b56
- Bump to match what was pushed to F13.
708b56
708b56
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.833-3
708b56
- Mass rebuild with perl-5.12.0
708b56
708b56
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 5.833-2
708b56
- rebuild against perl 5.10.1
708b56
708b56
* Fri Nov  6 2009 Marcela Mašláňová <mmaslano@redhat.com> 5.833-1
708b56
- update
708b56
708b56
* Thu Sep 17 2009 Warren Togami <cweyl@alumni.drew.edu> 5.831-1
708b56
- update to 5.831
708b56
708b56
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.825-3
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
708b56
708b56
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.825-2
708b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
708b56
708b56
* Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> 5.825-1
708b56
- update to 5.825
708b56
708b56
* Thu Jan 22 2009 Marcela Mašláňová <mmaslano@redhat.com> 5.823-1
708b56
- update to 5.823
708b56
708b56
* Mon Oct 13 2008 Marcela Mašláňová <mmaslano@redhat.com> 5.817-1
708b56
- update to 5.817
708b56
708b56
* Tue Oct  7 2008 Marcela Mašláňová <mmaslano@redhat.com> 5.816-1
708b56
- update to 5.816
708b56
- fix #465855 - install --aliases by default
708b56
- use upstream patch for previous problem (see rt 38736)
708b56
708b56
* Thu Sep 18 2008 Marcela Maslanova <mmaslano@redhat.com> 5.814-2
708b56
- use untaint patch from Villa Skyte
708b56
708b56
* Thu Sep 18 2008 Marcela Maslanova <mmaslano@redhat.com> 5.814-1
708b56
- update to 5.814
708b56
- remove patch, now we have all upstream tests on
708b56
708b56
* Fri Mar  7 2008 Ville Skyttä <ville.skytta at="" iki.fi=""> - 5.808-7
708b56
- Use system /etc/mime.types instead of an outdated private copy.
708b56
708b56
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.808-6
708b56
- Rebuild for perl 5.10 (again)
708b56
708b56
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.808-5
708b56
- rebuild for new perl
708b56
708b56
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 5.808-4
708b56
- Fix various issues from package review:
708b56
- Fix tabs and spacing
708b56
- Remove unneeded BR: perl
708b56
- convert non-utf-8 files to utf-8
708b56
- Resolves: bz#226268
708b56
708b56
* Tue Aug 14 2007 Robin Norwood <rnorwood@redhat.com> - 5.808-3
708b56
- Make provides script filter out only the unversioned HTTP::Headers.
708b56
708b56
* Tue Aug 14 2007 Robin Norwood <rnorwood@redhat.com> - 5.808-2
708b56
- Disable some of the tests, with a long explanation.
708b56
708b56
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 5.808-1
708b56
- Update to latest CPAN version
708b56
- Re-enable tests.  We'll see if they work now
708b56
- Move Requires filter into spec file
708b56
- Add Provides filter for unnecessary unversioned provides
708b56
708b56
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.805-1.1.1
708b56
- rebuild
708b56
708b56
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 5.805-1.1
708b56
- rebuild for new perl-5.8.8
708b56
708b56
* Mon Dec 19 2005 Jason Vas Dias<jvdias@redhat.com> - 5.805-1
708b56
- Upgrade to 5.805-1
708b56
708b56
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
708b56
- rebuilt for new gcc
708b56
708b56
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
708b56
- rebuilt for new gcj
708b56
708b56
* Sat Apr 02 2005 Warren Togami <wtogami@redhat.com> - 5.803-2
708b56
- skip make test (#150363)
708b56
708b56
* Sat Apr 02 2005 Jose Pedro Oliveira <jpo at="" di.uminho.pt=""> - 5.803-1
708b56
- Update to 5.803.
708b56
- spec cleanup (#150363)
708b56
708b56
* Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 5.79-6
708b56
- Convert man page to UTF-8
708b56
708b56
* Fri Aug 13 2004 Bill Nottingham <notting@redhat.com> 5.76-5
708b56
- fix %%defattr
708b56
708b56
* Mon Aug 09 2004 Alan Cox <alan@redhat.com> 5.76-4
708b56
- added missing BuildRequires on perl(HTML::Parser) [Steve Grubb]
708b56
708b56
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
708b56
- rebuilt
708b56
708b56
* Fri Apr 16 2004 Warren Togami <wtogami@redhat.com> 5.76-2
708b56
- #12051 misc fixes from Ville Skyttä
708b56
708b56
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 5.76-1
708b56
- update to 5.76
708b56
708b56
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
708b56
- automated release bump and build
708b56
708b56
* Tue Jul 16 2002 Chip Turner <cturner@redhat.com>
708b56
- added missing Requires on perl(HTML::Entities)
708b56
708b56
* Fri Mar 29 2002 Chip Turner <cturner@redhat.com>
708b56
- added Requires: for perl-URI and perl-Digest-MD5
708b56
708b56
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
708b56
- automated rebuild
708b56
708b56
* Fri Dec 7 2001 root <root@redhat.com>
708b56
- Spec file was autogenerated.