2013-09-26 19:33:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTTP-Tiny
|
|
|
|
#
|
2014-03-07 09:30:49 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-09-26 19:33:20 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
Name: perl-HTTP-Tiny
|
2014-09-15 15:31:06 +00:00
|
|
|
Version: 0.049
|
2011-03-17 19:59:49 +00:00
|
|
|
Release: 0
|
2013-10-05 05:54:57 +00:00
|
|
|
%define cpan_name HTTP-Tiny
|
2011-03-17 19:59:49 +00:00
|
|
|
Summary: A small, simple, correct HTTP/1.1 client
|
2013-09-26 19:33:20 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-03-17 19:59:49 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-10-05 05:54:57 +00:00
|
|
|
Url: http://search.cpan.org/dist/HTTP-Tiny/
|
|
|
|
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2013-09-26 19:33:20 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-05 05:54:57 +00:00
|
|
|
BuildRequires: perl
|
2013-09-26 19:33:20 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-10-05 05:54:57 +00:00
|
|
|
BuildRequires: perl(IPC::Cmd)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
Recommends: perl(HTTP::CookieJar) >= 0.001
|
2014-03-07 09:30:49 +00:00
|
|
|
Recommends: perl(IO::Socket::IP) >= 0.25
|
2013-10-05 05:54:57 +00:00
|
|
|
Recommends: perl(IO::Socket::SSL) >= 1.42
|
2014-09-15 15:31:06 +00:00
|
|
|
Recommends: perl(Mozilla::CA) >= 20130114
|
2013-10-05 05:54:57 +00:00
|
|
|
Recommends: perl(Net::SSLeay) >= 1.49
|
|
|
|
%{perl_requires}
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
%description
|
2014-03-07 09:30:49 +00:00
|
|
|
This is a very simple HTTP/1.1 client, designed for doing simple requests
|
|
|
|
without the overhead of a large framework like the LWP::UserAgent manpage.
|
2013-10-05 05:54:57 +00:00
|
|
|
|
|
|
|
It is more correct and more complete than the HTTP::Lite manpage. It
|
2014-03-07 09:30:49 +00:00
|
|
|
supports proxies and redirection. It also correctly resumes after EINTR.
|
|
|
|
|
|
|
|
If the IO::Socket::IP manpage 0.25 or later is installed, HTTP::Tiny will
|
|
|
|
use it instead of the IO::Socket::INET manpage for transparent support for
|
|
|
|
both IPv4 and IPv6.
|
|
|
|
|
|
|
|
Cookie support requires the HTTP::CookieJar manpage or an equivalent class.
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
%prep
|
2013-10-05 05:54:57 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
%build
|
2013-10-05 05:54:57 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2011-03-17 19:59:49 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-10-05 05:54:57 +00:00
|
|
|
%perl_gen_filelist
|
2011-03-17 19:59:49 +00:00
|
|
|
|
2013-10-05 05:54:57 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes CONTRIBUTING cpanfile LICENSE perlcritic.rc README
|
2011-03-17 19:59:49 +00:00
|
|
|
|
2013-09-26 19:33:20 +00:00
|
|
|
%changelog
|