[1317] | 1 | # Add support for IPv6 (not for OS/2)
|
---|
| 2 | %{bcond_with perl_Net_HTTP_enables_ipv6}
|
---|
| 3 | # Do not run network tests accessing Internet
|
---|
| 4 | %{bcond_with perl_Net_HTTP_enables_network_test}
|
---|
| 5 | # Add support for TLS/SSL
|
---|
| 6 | %{bcond_without perl_Net_HTTP_enables_ssl}
|
---|
| 7 |
|
---|
| 8 | Name: perl-Net-HTTP
|
---|
| 9 | Version: 6.17
|
---|
| 10 | Release: 1%{?dist}
|
---|
| 11 | Summary: Low-level HTTP connection (client)
|
---|
| 12 | License: GPL+ or Artistic
|
---|
| 13 | URL: http://search.cpan.org/dist/Net-HTTP/
|
---|
| 14 | Vendor: bww bitwise works GmbH
|
---|
| 15 | Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/Net-HTTP-%{version}.tar.gz
|
---|
| 16 | BuildArch: noarch
|
---|
| 17 | BuildRequires: make
|
---|
| 18 | #BuildRequires: perl-interpreter
|
---|
| 19 | BuildRequires: perl-generators
|
---|
| 20 | #BuildRequires: perl(:VERSION) >= 5.6.2
|
---|
| 21 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 22 | BuildRequires: perl(Getopt::Long)
|
---|
| 23 | BuildRequires: perl(strict)
|
---|
| 24 | # Run-time:
|
---|
| 25 | BuildRequires: perl(base)
|
---|
| 26 | BuildRequires: perl(Carp)
|
---|
| 27 | BuildRequires: perl(Compress::Raw::Zlib)
|
---|
| 28 | # Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
---|
| 29 | %if %{with perl_Net_HTTP_enables_ipv6}
|
---|
| 30 | BuildRequires: perl(IO::Socket::IP)
|
---|
| 31 | %else
|
---|
| 32 | BuildRequires: perl(IO::Socket)
|
---|
| 33 | %endif
|
---|
| 34 | %if %{with perl_Net_HTTP_enables_ssl}
|
---|
| 35 | BuildRequires: perl(IO::Socket::SSL) >= 2.012
|
---|
| 36 | %endif
|
---|
| 37 | BuildRequires: perl(IO::Uncompress::Gunzip)
|
---|
| 38 | BuildRequires: perl(Symbol)
|
---|
| 39 | BuildRequires: perl(URI)
|
---|
| 40 | BuildRequires: perl(vars)
|
---|
| 41 | BuildRequires: perl(warnings)
|
---|
| 42 | # Tests only:
|
---|
| 43 | BuildRequires: perl(Data::Dumper)
|
---|
| 44 | BuildRequires: perl(File::Spec)
|
---|
| 45 | BuildRequires: perl(IO::Select)
|
---|
| 46 | BuildRequires: perl(IO::Socket::INET)
|
---|
| 47 | BuildRequires: perl(Socket)
|
---|
| 48 | BuildRequires: perl(Test::More)
|
---|
| 49 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 50 | Requires: perl(Compress::Raw::Zlib)
|
---|
| 51 | Requires: perl(IO::Uncompress::Gunzip)
|
---|
| 52 | # Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
---|
| 53 | %if %{with perl_Net_HTTP_enables_ipv6}
|
---|
| 54 | Requires: perl(IO::Socket::IP)
|
---|
| 55 | %else
|
---|
| 56 | Requires: perl(IO::Socket)
|
---|
| 57 | %endif
|
---|
| 58 | Requires: perl(Symbol)
|
---|
| 59 | %if %{with perl_Net_HTTP_enables_ssl}
|
---|
| 60 | Requires: perl(IO::Socket::SSL) >= 2.012
|
---|
| 61 | %endif
|
---|
| 62 | Conflicts: perl-libwww-perl < 6
|
---|
| 63 |
|
---|
| 64 | %description
|
---|
| 65 | The Net::HTTP class is a low-level HTTP client. An instance of the
|
---|
| 66 | Net::HTTP class represents a connection to an HTTP server. The HTTP
|
---|
| 67 | protocol is described in RFC 2616. The Net::HTTP class supports HTTP/1.0
|
---|
| 68 | and HTTP/1.1.
|
---|
| 69 |
|
---|
| 70 | %prep
|
---|
| 71 | %setup -q -n Net-HTTP-%{version}
|
---|
| 72 |
|
---|
| 73 | %build
|
---|
| 74 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
| 75 | make manifypods
|
---|
| 76 | make %{?_smp_mflags}
|
---|
| 77 |
|
---|
| 78 | %install
|
---|
| 79 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
| 80 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
| 81 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
| 82 |
|
---|
| 83 | %check
|
---|
| 84 | export NO_NETWORK_TESTING=%{without perl_Net_HTTP_enables_network_test}
|
---|
| 85 | #make test
|
---|
| 86 |
|
---|
| 87 | %files
|
---|
| 88 | %license LICENSE
|
---|
| 89 | %doc Changes CONTRIBUTORS README.md
|
---|
| 90 | %{perl_vendorlib}/*
|
---|
| 91 | %{_mandir}/man3/*
|
---|
| 92 |
|
---|
| 93 | %changelog
|
---|
| 94 | * Thu Feb 22 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.17-1
|
---|
| 95 | - initial version
|
---|