3 %bcond_with tests # unit tests
7 Summary: Net::HTTP - Low-level HTTP connection (client)
8 Summary(pl.UTF-8): Net::HTTP - nieskopoziomowe połączenie HTTP (klient)
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1682735ddd1c059864ca5c1bbf15ab95
17 URL: https://metacpan.org/release/Net-HTTP
18 BuildRequires: perl-devel >= 1:5.8.8
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRequires: perl-IO-Compress
23 BuildRequires: perl-Test-Simple
24 BuildRequires: perl-URI
26 Suggests: perl-IO-Socket-SSL >= 2.012
27 Conflicts: perl-libwww < 6
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The Net::HTTP class is a low-level HTTP client. An instance of the
33 Net::HTTP class represents a connection to an HTTP server. The HTTP
34 protocol is described in RFC 2616. The Net::HTTP class supports
35 HTTP/1.0 and HTTP/1.1.
37 %description -l pl.UTF-8
38 Klasa Net::HTTP jest niskopoziomowym klientem HTTP. Instancja tej
39 klasy reprezentuje połączenie z serwerem HTTP. Protokół HTTP jest
40 opisany w RFC 2616. Klasa Net::HTTP obsługuje HTTP/1.0 i HTTP/1.1.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc CONTRIBUTORS Changes
64 %{perl_vendorlib}/Net/HTTP.pm
65 %{perl_vendorlib}/Net/HTTPS.pm
66 %{perl_vendorlib}/Net/HTTP
67 %{_mandir}/man3/Net::HTTP*.3pm*