8
0
Files
perl-HTTP-Tiny/perl-HTTP-Tiny.spec

101 lines
3.0 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-HTTP-Tiny
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: perl-HTTP-Tiny
Version: 0.036
Release: 0
Summary: A small, simple, correct HTTP/1.1 client
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
Url: http://search.cpan.org/dist/HTTP-Tiny
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Dir)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Time::Local)
%if 0%{?suse_version} > 1120
BuildRequires: perl(Test::More) >= 0.88
%endif
Requires: perl(Carp)
Requires: perl(Errno)
Requires: perl(Exporter)
Requires: perl(File::Basename)
Requires: perl(File::Find)
Requires: perl(File::Spec)
Requires: perl(File::Temp)
Requires: perl(IO::Dir)
Requires: perl(IO::File)
Requires: perl(IO::Socket)
Requires: perl(IO::Socket::INET)
Requires: perl(Time::Local)
%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
%if 0%{?suse_version} > 1120
%check
%__make test
%endif
%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}
%changelog