2013-09-26 19:33:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTTP-Tiny
|
|
|
|
#
|
2016-05-10 05:03:12 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2016-09-30 10:27:06 +00:00
|
|
|
Version: 0.068
|
2011-03-17 19:59:49 +00:00
|
|
|
Release: 0
|
2013-10-05 05:54:57 +00:00
|
|
|
%define cpan_name HTTP-Tiny
|
2015-05-21 05:49:12 +00:00
|
|
|
Summary: 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/
|
2015-05-21 05:49:12 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-10-05 05:54:57 +00:00
|
|
|
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
|
2016-05-10 05:03:12 +00:00
|
|
|
Recommends: perl(IO::Socket::IP) >= 0.32
|
2013-10-05 05:54:57 +00:00
|
|
|
Recommends: perl(IO::Socket::SSL) >= 1.42
|
2016-05-10 05:03:12 +00:00
|
|
|
Recommends: perl(Mozilla::CA) >= 20160104
|
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
|
2016-05-10 05:03:12 +00:00
|
|
|
without the overhead of a large framework like LWP::UserAgent.
|
2013-10-05 05:54:57 +00:00
|
|
|
|
2016-05-10 05:03:12 +00:00
|
|
|
It is more correct and more complete than HTTP::Lite. It supports proxies
|
|
|
|
and redirection. It also correctly resumes after EINTR.
|
2014-03-07 09:30:49 +00:00
|
|
|
|
2016-05-10 05:03:12 +00:00
|
|
|
If IO::Socket::IP 0.25 or later is installed, HTTP::Tiny will use it
|
|
|
|
instead of IO::Socket::INET for transparent support for both IPv4 and IPv6.
|
2014-03-07 09:30:49 +00:00
|
|
|
|
2016-05-10 05:03:12 +00:00
|
|
|
Cookie support requires HTTP::CookieJar 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}
|
2016-05-10 05:03:12 +00:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
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)
|
2015-04-15 04:35:36 +00:00
|
|
|
%doc Changes CONTRIBUTING.mkdn LICENSE README
|
2011-03-17 19:59:49 +00:00
|
|
|
|
2013-09-26 19:33:20 +00:00
|
|
|
%changelog
|