3 %bcond_without tests # do not perform "make test"
6 %define pnam Component-Client-Keepalive
7 Summary: POE::Component::Client::Keepalive - manage connections with keep-alive
8 Summary(pl.UTF-8): POE::Component::Client::Keepalive - zarządzanie połączeniami keep-alive
9 Name: perl-POE-Component-Client-Keepalive
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ecc86743c52c7ca70c207583f681a071
18 URL: http://search.cpan.org/dist/POE-Component-Client-Keepalive/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-POE >= 1:0.3100
23 BuildRequires: perl-POE-Component-Client-DNS >= 0.9801
25 Requires: perl-POE >= 1:0.3100
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 POE::Component::Client::Keepalive creates and manages connections for
31 other components. It maintains a cache of kept-alive connections for
32 quick reuse. It is written specifically for clients that can benefit
33 from kept-alive connections, such as HTTP clients. Using it for
34 one-shot connections would probably be silly.
36 %description -l pl.UTF-8
37 POE::Component::Client::Keepalive tworzy i zarządza połączeniami dla
38 innych komponentów. Utrzymuje cache połączeń keep-alive do szybkiego
39 ponownego użycia. Jest napisany szczególnie dla klientów
40 korzystających z połączeń keep-alive, takich jak klienci HTTP.
41 Używanie go do pojedynczych połączeń byłoby prawdopodobnie głupie.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/POE/Component/Client/Keepalive.pm
67 %dir %{perl_vendorlib}/POE/Component/Connection
68 %{perl_vendorlib}/POE/Component/Connection/Keepalive.pm