Blame SPECS/perl-HTTP-Tiny.spec

4b6ada
%{?scl:%scl_package perl-HTTP-Tiny}
4b6ada
4b6ada
Name:           %{?scl_prefix}perl-HTTP-Tiny
4b6ada
Version:        0.053
4b6ada
Release:        1%{?dist}
4b6ada
Summary:        Small, simple, correct HTTP/1.1 client
4b6ada
License:        GPL+ or Artistic
4b6ada
Group:          Development/Libraries
4b6ada
URL:            http://search.cpan.org/dist/HTTP-Tiny/
4b6ada
Source0:        http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
4b6ada
# Check for write failure, bug #1031096, refused by upstream,
4b6ada
# <https://github.com/chansen/p5-http-tiny/issues/32>
4b6ada
Patch0:         HTTP-Tiny-0.051-Croak-on-failed-write-into-a-file.patch
4b6ada
BuildArch:      noarch
4b6ada
BuildRequires:  %{?scl_prefix}perl
4b6ada
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.17
4b6ada
BuildRequires:  %{?scl_prefix}perl(strict)
4b6ada
BuildRequires:  %{?scl_prefix}perl(warnings)
4b6ada
# Run-time:
4b6ada
BuildRequires:  %{?scl_prefix}perl(bytes)
4b6ada
BuildRequires:  %{?scl_prefix}perl(Carp)
4b6ada
BuildRequires:  %{?scl_prefix}perl(Errno)
4b6ada
BuildRequires:  %{?scl_prefix}perl(Fcntl)
4b6ada
BuildRequires:  %{?scl_prefix}perl(IO::Socket)
4b6ada
# IO::Socket::IP 0.25 is optional
4b6ada
# IO::Socket::SSL 1.56 is optional
4b6ada
BuildRequires:  %{?scl_prefix}perl(MIME::Base64)
4b6ada
# Mozilla::CA is optional
4b6ada
# Net::SSLeay 1.49 is optional
4b6ada
BuildRequires:  %{?scl_prefix}perl(Time::Local)
4b6ada
# Tests:
4b6ada
# Data::Dumper not used
4b6ada
BuildRequires:  %{?scl_prefix}perl(Exporter)
4b6ada
BuildRequires:  %{?scl_prefix}perl(File::Basename) 
4b6ada
BuildRequires:  %{?scl_prefix}perl(File::Spec)
4b6ada
BuildRequires:  %{?scl_prefix}perl(File::Temp)
4b6ada
BuildRequires:  %{?scl_prefix}perl(IO::Dir)
4b6ada
BuildRequires:  %{?scl_prefix}perl(IO::File)
4b6ada
BuildRequires:  %{?scl_prefix}perl(IO::Socket::INET)
4b6ada
# IO::Socket::SSL 1.56 not needed
4b6ada
BuildRequires:  %{?scl_prefix}perl(IPC::Cmd)
4b6ada
# Mozilla::CA not needed
4b6ada
# Net::SSLeay 1.49 not needed
4b6ada
BuildRequires:  %{?scl_prefix}perl(open)
4b6ada
BuildRequires:  %{?scl_prefix}perl(Test::More) >= 0.96
4b6ada
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
4b6ada
Requires:       %{?scl_prefix}perl(bytes)
4b6ada
Requires:       %{?scl_prefix}perl(Fcntl)
4b6ada
Requires:       %{?scl_prefix}perl(MIME::Base64)
4b6ada
Requires:       %{?scl_prefix}perl(Time::Local)
4b6ada
4b6ada
%description
4b6ada
This is a very simple HTTP/1.1 client, designed for doing simple GET requests
4b6ada
without the overhead of a large framework like LWP::UserAgent.
4b6ada
4b6ada
It is more correct and more complete than HTTP::Lite. It supports proxies
4b6ada
(currently only non-authenticating ones) and redirection. It also correctly
4b6ada
resumes after EINTR.
4b6ada
4b6ada
%prep
4b6ada
%setup -q -n HTTP-Tiny-%{version}
4b6ada
%patch0 -p1
4b6ada
4b6ada
%build
4b6ada
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
4b6ada
4b6ada
%install
4b6ada
%{?scl:scl enable %{scl} '}make pure_install DESTDIR='%{buildroot}'%{?scl:'}
4b6ada
find '%{buildroot}' -type f -name .packlist -exec rm -f {} \;
4b6ada
%{_fixperms} '%{buildroot}'/*
4b6ada
4b6ada
%check
4b6ada
%{?scl:scl enable %{scl} '}make test%{?scl:'}
4b6ada
4b6ada
%files
4b6ada
%doc Changes CONTRIBUTING.mkdn eg LICENSE README
4b6ada
%{perl_vendorlib}/*
4b6ada
%{_mandir}/man3/*
4b6ada
4b6ada
%changelog
4b6ada
* Mon Dec 15 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.053-1
4b6ada
- 0.053 bump
4b6ada
4b6ada
* Fri Nov 21 2014 Petr Pisar <ppisar@redhat.com> - 0.051-1
4b6ada
- 0.051 bump
4b6ada
4b6ada
* Wed Sep 24 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.050-1
4b6ada
- 0.050 bump
4b6ada
4b6ada
* Wed Sep 10 2014 Petr Pisar <ppisar@redhat.com> - 0.049-1
4b6ada
- 0.049 bump
4b6ada
4b6ada
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.048-2
4b6ada
- Perl 5.20 rebuild
4b6ada
4b6ada
* Fri Aug 22 2014 Petr Pisar <ppisar@redhat.com> - 0.048-1
4b6ada
- 0.048 bump
4b6ada
4b6ada
* Wed Jul 30 2014 Petr Pisar <ppisar@redhat.com> - 0.047-1
4b6ada
- 0.047 bump
4b6ada
4b6ada
* Tue Jul 29 2014 Petr Pisar <ppisar@redhat.com> - 0.046-1
4b6ada
- 0.046 bump
4b6ada
4b6ada
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.043-2
4b6ada
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b6ada
4b6ada
* Fri Feb 21 2014 Petr Pisar <ppisar@redhat.com> - 0.043-1
4b6ada
- 0.043 bump
4b6ada
4b6ada
* Wed Feb 19 2014 Petr Pisar <ppisar@redhat.com> - 0.042-1
4b6ada
- 0.042 bump
4b6ada
4b6ada
* Thu Nov 28 2013 Petr Pisar <ppisar@redhat.com> - 0.039-1
4b6ada
- 0.039 bump
4b6ada
4b6ada
* Wed Nov 27 2013 Petr Pisar <ppisar@redhat.com> - 0.038-2
4b6ada
- Croak on failed write into a file (bug #1031096)
4b6ada
- Do not use already existing temporary files (bug #1031096)
4b6ada
4b6ada
* Tue Nov 19 2013 Petr Pisar <ppisar@redhat.com> - 0.038-1
4b6ada
- 0.038 bump
4b6ada
4b6ada
* Tue Oct 29 2013 Petr Pisar <ppisar@redhat.com> - 0.037-1
4b6ada
- 0.037 bump
4b6ada
4b6ada
* Thu Sep 26 2013 Petr Pisar <ppisar@redhat.com> - 0.036-1
4b6ada
- 0.036 bump
4b6ada
4b6ada
* Wed Sep 11 2013 Petr Pisar <ppisar@redhat.com> - 0.035-1
4b6ada
- 0.035 bump
4b6ada
4b6ada
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.034-3
4b6ada
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4b6ada
4b6ada
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 0.034-2
4b6ada
- Link minimal build-root packages against libperl.so explicitly
4b6ada
4b6ada
* Mon Jul 01 2013 Petr Pisar <ppisar@redhat.com> - 0.034-1
4b6ada
- 0.034 bump
4b6ada
4b6ada
* Mon Jun 24 2013 Petr Pisar <ppisar@redhat.com> - 0.033-1
4b6ada
- 0.033 bump
4b6ada
4b6ada
* Fri Jun 21 2013 Petr Pisar <ppisar@redhat.com> - 0.032-1
4b6ada
- 0.032 bump
4b6ada
4b6ada
* Thu Jun 20 2013 Petr Pisar <ppisar@redhat.com> - 0.031-1
4b6ada
- 0.031 bump
4b6ada
4b6ada
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 0.030-1
4b6ada
- 0.030 bump
4b6ada
4b6ada
* Thu Apr 18 2013 Petr Pisar <ppisar@redhat.com> - 0.029-1
4b6ada
- 0.029 bump
4b6ada
4b6ada
* Fri Mar 15 2013 Petr Pisar <ppisar@redhat.com> 0.028-1
4b6ada
- Specfile autogenerated by cpanspec 1.78.