2011-03-17 19:59:49 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
Name: perl-HTTP-Tiny
|
|
|
|
Version: 0.010
|
|
|
|
Release: 0
|
|
|
|
Summary: A small, simple, correct HTTP/1.1 client
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/HTTP-Tiny
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
%{perl_requires}
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(IO::Socket::INET)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(IO::Dir)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
BuildRequires: perl(Time::Local)
|
|
|
|
BuildRequires: perl(Errno)
|
|
|
|
BuildRequires: perl(Carp)
|
2011-03-17 20:06:58 +00:00
|
|
|
%if 0%{?suse_version} > 1120
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
%endif
|
2011-03-17 19:59:49 +00:00
|
|
|
Requires: perl(Exporter)
|
|
|
|
Requires: perl(IO::File)
|
|
|
|
Requires: perl(IO::Socket::INET)
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
Requires: perl(IO::Socket)
|
|
|
|
Requires: perl(Time::Local)
|
|
|
|
Requires: perl(Errno)
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(File::Find)
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(IO::Dir)
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a very simple HTTP/1.1 client, designed primarily for doing simple
|
|
|
|
GET requests without the overhead of a large framework like
|
|
|
|
LWP::UserAgent.
|
|
|
|
It is more correct and more complete than HTTP::Lite. It supports proxies
|
|
|
|
(currently only non-authenticating ones) and redirection. It also
|
|
|
|
correctly resumes after EINTR.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "HTTP-Tiny-%{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
|
|
|
|
|
2011-03-17 20:06:58 +00:00
|
|
|
%if 0%{?suse_version} > 1120
|
2011-03-17 19:59:49 +00:00
|
|
|
%check
|
|
|
|
%__make test
|
2011-03-17 20:06:58 +00:00
|
|
|
%endif
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README Changes LICENSE
|
|
|
|
%dir %{perl_vendorlib}/HTTP
|
|
|
|
%{perl_vendorlib}/HTTP/Tiny.pm
|
|
|
|
%doc %{perl_man3dir}/HTTP::Tiny.%{perl_man3ext}%{ext_man}
|
|
|
|
|