forked from pool/perl-AnyEvent-HTTP
60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
![]() |
# 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}
|
||
|
Requires: perl = %{perl_version}
|
||
|
BuildRequires: perl
|
||
|
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}
|
||
|
|