| 1 | Name: perl-libwww-perl
|
|---|
| 2 | Version: 6.32
|
|---|
| 3 | Release: 2%{?dist}
|
|---|
| 4 | Summary: A Perl interface to the World-Wide Web
|
|---|
| 5 | License: GPL+ or Artistic
|
|---|
| 6 | URL: http://search.cpan.org/dist/libwww-perl/
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/libwww-perl-%{version}.tar.gz
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | BuildRequires: make
|
|---|
| 11 | BuildRequires: perl-generators
|
|---|
| 12 | #BuildRequires: perl-interpreter
|
|---|
| 13 | #BuildRequires: perl(:VERSION) >= 5.8.1
|
|---|
| 14 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 15 | BuildRequires: perl(File::Copy)
|
|---|
| 16 | BuildRequires: perl(Getopt::Long)
|
|---|
| 17 | BuildRequires: perl(strict)
|
|---|
| 18 | BuildRequires: perl(warnings)
|
|---|
| 19 |
|
|---|
| 20 | # Run-time:
|
|---|
| 21 | # Authen::NTLM 1.02 not used at tests
|
|---|
| 22 | BuildRequires: perl(base)
|
|---|
| 23 | BuildRequires: perl(Carp)
|
|---|
| 24 | # Data::Dump 1.13 not used at tests
|
|---|
| 25 | # Data::Dump::Trace not used at tests
|
|---|
| 26 | BuildRequires: perl(Digest::MD5)
|
|---|
| 27 | BuildRequires: perl(Encode) >= 2.12
|
|---|
| 28 | BuildRequires: perl(Encode::Locale)
|
|---|
| 29 | BuildRequires: perl(Exporter)
|
|---|
| 30 | # Fcntl not used at tests
|
|---|
| 31 | # File::Listing 6 not used at tests
|
|---|
| 32 | # File::Spec not used at tests
|
|---|
| 33 | BuildRequires: perl(HTML::Entities)
|
|---|
| 34 | BuildRequires: perl(HTML::HeadParser)
|
|---|
| 35 | BuildRequires: perl(HTTP::Config)
|
|---|
| 36 | # HTTP::Cookies 6 not used at tests
|
|---|
| 37 | BuildRequires: perl(HTTP::Date) >= 6
|
|---|
| 38 | BuildRequires: perl(HTTP::Headers::Util)
|
|---|
| 39 | # HTTP::Negotiate 6 not used at tests
|
|---|
| 40 | BuildRequires: perl(HTTP::Request) >= 6
|
|---|
| 41 | BuildRequires: perl(HTTP::Request::Common) >= 6
|
|---|
| 42 | BuildRequires: perl(HTTP::Response) >= 6
|
|---|
| 43 | BuildRequires: perl(HTTP::Status) >= 6
|
|---|
| 44 | # integer not used at tests
|
|---|
| 45 | BuildRequires: perl(IO::Select)
|
|---|
| 46 | BuildRequires: perl(IO::Socket)
|
|---|
| 47 | BuildRequires: perl(LWP::MediaTypes) >= 6
|
|---|
| 48 | # Mail::Internet not needed
|
|---|
| 49 | BuildRequires: perl(MIME::Base64) >= 2.1
|
|---|
| 50 | # Net::FTP 2.58 not used at tests
|
|---|
| 51 | BuildRequires: perl(Net::HTTP) >= 6.07
|
|---|
| 52 | # Net::NNTP not used at tests
|
|---|
| 53 | BuildRequires: perl(parent)
|
|---|
| 54 | BuildRequires: perl(Scalar::Util)
|
|---|
| 55 | BuildRequires: perl(Try::Tiny)
|
|---|
| 56 | BuildRequires: perl(URI) >= 1.10
|
|---|
| 57 | BuildRequires: perl(URI::Escape)
|
|---|
| 58 | # URI::Heuristic not used at tests
|
|---|
| 59 | BuildRequires: perl(WWW::RobotRules) >= 6
|
|---|
| 60 | # Optional run-time:
|
|---|
| 61 | # CPAN::Config not used at tests
|
|---|
| 62 | # HTML::Parse not used at tests
|
|---|
| 63 |
|
|---|
| 64 | # Tests:
|
|---|
| 65 | BuildRequires: perl(Config)
|
|---|
| 66 | BuildRequires: perl(File::Spec)
|
|---|
| 67 | BuildRequires: perl(File::Temp)
|
|---|
| 68 | BuildRequires: perl(FindBin)
|
|---|
| 69 | #BuildRequires: perl(HTTP::Daemon) >= 6
|
|---|
| 70 | #BuildRequires: perl(Test::Fatal)
|
|---|
| 71 | BuildRequires: perl(Test::More)
|
|---|
| 72 | #BuildRequires: perl(Test::RequiresInternet)
|
|---|
| 73 | BuildRequires: perl(utf8)
|
|---|
| 74 | # Optional tests:
|
|---|
| 75 | # CPAN::Meta not helpful
|
|---|
| 76 | # CPAN::Meta::Prereqs not helpful
|
|---|
| 77 |
|
|---|
| 78 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 79 | Requires: perl(Authen::NTLM) >= 1.02
|
|---|
| 80 | Suggests: perl(CPAN::Config)
|
|---|
| 81 | Requires: perl(Encode) >= 2.12
|
|---|
| 82 | Requires: perl(File::Spec)
|
|---|
| 83 | Requires: perl(File::Listing) >= 6
|
|---|
| 84 | # Keep HTML::FormatPS optional
|
|---|
| 85 | Suggests: perl(HTML::FormatPS)
|
|---|
| 86 | # Keep HTML::FormatText optional
|
|---|
| 87 | Suggests: perl(HTML::FormatText)
|
|---|
| 88 | Requires: perl(HTML::Entities)
|
|---|
| 89 | Requires: perl(HTML::HeadParser)
|
|---|
| 90 | Suggests: perl(HTML::Parse)
|
|---|
| 91 | Requires: perl(HTTP::Config)
|
|---|
| 92 | Requires: perl(HTTP::Cookies) >= 6
|
|---|
| 93 | Requires: perl(HTTP::Date) >= 6
|
|---|
| 94 | Requires: perl(HTTP::Headers::Util)
|
|---|
| 95 | Requires: perl(HTTP::Negotiate) >= 6
|
|---|
| 96 | Requires: perl(HTTP::Request) >= 6
|
|---|
| 97 | Requires: perl(HTTP::Request::Common) >= 6
|
|---|
| 98 | Requires: perl(HTTP::Response) >= 6
|
|---|
| 99 | Requires: perl(HTTP::Status) >= 6
|
|---|
| 100 | Requires: perl(LWP::MediaTypes) >= 6
|
|---|
| 101 | Suggests: perl(LWP::Protocol::https) >= 6.02
|
|---|
| 102 | Requires: perl(MIME::Base64) >= 2.1
|
|---|
| 103 | Requires: perl(Net::FTP) >= 2.58
|
|---|
| 104 | Requires: perl(Net::HTTP) >= 6.07
|
|---|
| 105 | Requires: perl(URI) >= 1.10
|
|---|
| 106 | Requires: perl(URI::Escape)
|
|---|
| 107 | Requires: perl(WWW::RobotRules) >= 6
|
|---|
| 108 | Provides: perl(LWP::Debug::TraceHTTP::Socket) = %{version}
|
|---|
| 109 | Provides: perl(LWP::Protocol::http::Socket) = %{version}
|
|---|
| 110 | Provides: perl(LWP::Protocol::http::SocketMethods) = %{version}
|
|---|
| 111 |
|
|---|
| 112 | %description
|
|---|
| 113 | The libwww-perl collection is a set of Perl modules which provides a simple and
|
|---|
| 114 | consistent application programming interface to the World-Wide Web. The main
|
|---|
| 115 | focus of the library is to provide classes and functions that allow you to
|
|---|
| 116 | write WWW clients. The library also contain modules that are of more general
|
|---|
| 117 | use and even classes that help you implement simple HTTP servers.
|
|---|
| 118 |
|
|---|
| 119 | # Remove underspecified dependencies
|
|---|
| 120 | %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)\\)$
|
|---|
| 121 |
|
|---|
| 122 | %prep
|
|---|
| 123 | %setup -q -n libwww-perl-%{version}
|
|---|
| 124 |
|
|---|
| 125 | %build
|
|---|
| 126 | # Install the aliases by default
|
|---|
| 127 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 --aliases < /dev/null
|
|---|
| 128 | make %{?_smp_mflags}
|
|---|
| 129 | make manifypods
|
|---|
| 130 |
|
|---|
| 131 | %install
|
|---|
| 132 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 133 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|---|
| 134 | %{_fixperms} $RPM_BUILD_ROOT/*
|
|---|
| 135 |
|
|---|
| 136 | %check
|
|---|
| 137 | unset PERL_LWP_ENV_HTTP_TEST_URL
|
|---|
| 138 | # Some optional tests require resolvable hostname
|
|---|
| 139 | #make test
|
|---|
| 140 |
|
|---|
| 141 | %files
|
|---|
| 142 | %license LICENSE
|
|---|
| 143 | %doc Changes README.SSL
|
|---|
| 144 | %{_bindir}/*
|
|---|
| 145 | %{perl_vendorlib}/libwww/
|
|---|
| 146 | %{perl_vendorlib}/LWP.pm
|
|---|
| 147 | %{perl_vendorlib}/LWP/
|
|---|
| 148 | %{_mandir}/man1/*.1*
|
|---|
| 149 | %{_mandir}/man3/*.3*
|
|---|
| 150 |
|
|---|
| 151 | %changelog
|
|---|
| 152 | * Fri Mar 2 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.32-2
|
|---|
| 153 | - enable more BuildRequires
|
|---|
| 154 |
|
|---|
| 155 | * Thu Feb 22 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.32-1
|
|---|
| 156 | - initial version
|
|---|