3 %bcond_with tests # perform "make test" (uses network)
7 %include /usr/lib/rpm/macros.perl
8 Summary: Net::HTTP - Low-level HTTP connection (client)
9 Summary(pl.UTF-8): Net::HTTP - nieskopoziomowe połączenie HTTP (klient)
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 6da11a7db0e933b7684148e1fb32006a
18 URL: http://search.cpan.org/dist/Net-HTTP/
19 BuildRequires: perl-devel >= 1:5.8.8
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-IO-Compress
24 Suggests: perl-IO-Socket-SSL >= 2.012
25 Conflicts: perl-libwww < 6
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The Net::HTTP class is a low-level HTTP client. An instance of the
31 Net::HTTP class represents a connection to an HTTP server. The HTTP
32 protocol is described in RFC 2616. The Net::HTTP class supports
33 HTTP/1.0 and HTTP/1.1.
35 %description -l pl.UTF-8
36 Klasa Net::HTTP jest niskopoziomowym klientem HTTP. Instancja tej
37 klasy reprezentuje połączenie z serwerem HTTP. Protokół HTTP jest
38 opisany w RFC 2616. Klasa Net::HTTP obsługuje HTTP/1.0 i HTTP/1.1.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Net/HTTP.pm
63 %{perl_vendorlib}/Net/HTTPS.pm
64 %{perl_vendorlib}/Net/HTTP
65 %{_mandir}/man3/Net::HTTP*.3pm*