2010-10-07 11:17:33 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-AnyEvent-HTTP
|
|
|
|
Version: 1.46
|
|
|
|
Release: 0
|
|
|
|
Summary: Simple but non-blocking HTTP/HTTPS client
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-HTTP-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/AnyEvent-HTTP
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 13:37:31 +00:00
|
|
|
%{perl_requires}
|
2010-10-07 11:17:33 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 13:54:31 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-10-07 11:17:33 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(AnyEvent) >= 5
|
|
|
|
Requires: perl(AnyEvent) >= 5
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module is an AnyEvent user, you need to make sure that you use and run a
|
|
|
|
supported event loop.
|
|
|
|
|
|
|
|
This module implements a simple, stateless and non-blocking HTTP client. It
|
|
|
|
supports GET, POST and other request methods, cookies and more, all on a very
|
|
|
|
low level. It can follow redirects supports proxies and automatically limits
|
|
|
|
the number of connections to the values specified in the RFC.
|
|
|
|
|
|
|
|
It should generally be a "good client" that is enough for most HTTP tasks.
|
|
|
|
Simple tasks should be simple, but complex tasks should still be possible as
|
|
|
|
the user retains control over request and response headers.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "AnyEvent-HTTP-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
|
|
|
%dir %{perl_vendorlib}/AnyEvent
|
|
|
|
%{perl_vendorlib}/AnyEvent/HTTP.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/AnyEvent
|
|
|
|
%{perl_vendorarch}/auto/AnyEvent/HTTP
|
|
|
|
%doc %{perl_man3dir}/AnyEvent::HTTP.%{perl_man3ext}%{ext_man}
|
|
|
|
|