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