e05cf9
Name:           perl-HTTP-Tiny
e05cf9
Version:        0.033
43b6d6
Release:        3%{?dist}
e05cf9
Summary:        Small, simple, correct HTTP/1.1 client
e05cf9
License:        GPL+ or Artistic
e05cf9
Group:          Development/Libraries
e05cf9
URL:            http://search.cpan.org/dist/HTTP-Tiny/
e05cf9
Source0:        http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
43b6d6
# Check for write failure, bug #1031096,
43b6d6
# <https://github.com/chansen/p5-http-tiny/issues/32>
43b6d6
Patch0:         HTTP-Tiny-0.038-Croak-on-failed-write-into-a-file.patch
43b6d6
# Do not use already existing temporary files, bug #1031096,
43b6d6
# <https://github.com/chansen/p5-http-tiny/issues/32>
43b6d6
Patch1:         HTTP-Tiny-0.033-Do-not-use-already-existing-temporary-files.patch
e05cf9
BuildArch:      noarch
e05cf9
BuildRequires:  perl
e05cf9
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
e05cf9
BuildRequires:  perl(strict)
e05cf9
BuildRequires:  perl(warnings)
e05cf9
# Run-time:
e05cf9
BuildRequires:  perl(bytes)
e05cf9
BuildRequires:  perl(Carp)
e05cf9
BuildRequires:  perl(Errno)
43b6d6
BuildRequires:  perl(Fcntl)
e05cf9
BuildRequires:  perl(IO::Socket)
e05cf9
# IO::Socket::SSL 1.56 is optional
e05cf9
# Mozilla::CA is optional
e05cf9
# Net::SSLeay 1.49 is optional
e05cf9
BuildRequires:  perl(Time::Local)
e05cf9
# Tests:
e05cf9
BuildRequires:  perl(File::Basename) 
e05cf9
BuildRequires:  perl(File::Find)
e05cf9
BuildRequires:  perl(File::Spec)
e05cf9
BuildRequires:  perl(File::Spec::Functions)
e05cf9
BuildRequires:  perl(File::Temp)
e05cf9
BuildRequires:  perl(Exporter)
e05cf9
BuildRequires:  perl(IO::Dir)
e05cf9
BuildRequires:  perl(IO::File)
e05cf9
BuildRequires:  perl(List::Util)
e05cf9
BuildRequires:  perl(open)
e05cf9
BuildRequires:  perl(Test::More) >= 0.96
e05cf9
# On-line tests:
e05cf9
BuildRequires:  perl(IO::Socket::INET)
e05cf9
BuildRequires:  perl(IPC::Cmd)
e05cf9
BuildRequires:  perl(Data::Dumper)
e05cf9
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e05cf9
Requires:       perl(bytes)
e05cf9
Requires:       perl(Time::Local)
e05cf9
e05cf9
%description
e05cf9
This is a very simple HTTP/1.1 client, designed for doing simple GET requests
e05cf9
without the overhead of a large framework like LWP::UserAgent.
e05cf9
e05cf9
It is more correct and more complete than HTTP::Lite. It supports proxies
e05cf9
(currently only non-authenticating ones) and redirection. It also correctly
e05cf9
resumes after EINTR.
e05cf9
e05cf9
%prep
e05cf9
%setup -q -n HTTP-Tiny-%{version}
43b6d6
%patch0 -p1
43b6d6
%patch1 -p1
e05cf9
e05cf9
%build
e05cf9
perl Makefile.PL INSTALLDIRS=vendor
e05cf9
make %{?_smp_mflags}
e05cf9
e05cf9
%install
e05cf9
make pure_install DESTDIR=$RPM_BUILD_ROOT
e05cf9
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
e05cf9
%{_fixperms} $RPM_BUILD_ROOT/*
e05cf9
e05cf9
%check
e05cf9
make test
e05cf9
e05cf9
%files
e05cf9
%doc Changes CONTRIBUTING eg LICENSE README
e05cf9
%{perl_vendorlib}/*
e05cf9
%{_mandir}/man3/*
e05cf9
e05cf9
%changelog
43b6d6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.033-3
43b6d6
- Mass rebuild 2013-12-27
43b6d6
43b6d6
* Wed Nov 27 2013 Petr Pisar <ppisar@redhat.com> - 0.033-2
43b6d6
- Croak on failed write into a file (bug #1031096)
43b6d6
- Do not use already existing temporary files (bug #1031096)
43b6d6
e05cf9
* Mon Jun 24 2013 Petr Pisar <ppisar@redhat.com> - 0.033-1
e05cf9
- 0.033 bump
e05cf9
e05cf9
* Fri Jun 21 2013 Petr Pisar <ppisar@redhat.com> - 0.032-1
e05cf9
- 0.032 bump
e05cf9
e05cf9
* Thu Jun 20 2013 Petr Pisar <ppisar@redhat.com> - 0.031-1
e05cf9
- 0.031 bump
e05cf9
e05cf9
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 0.030-1
e05cf9
- 0.030 bump
e05cf9
e05cf9
* Thu Apr 18 2013 Petr Pisar <ppisar@redhat.com> - 0.029-1
e05cf9
- 0.029 bump
e05cf9
e05cf9
* Fri Mar 15 2013 Petr Pisar <ppisar@redhat.com> 0.028-1
e05cf9
- Specfile autogenerated by cpanspec 1.78.