f7b9fc
Name:           perl-IO-Socket-IP
f7b9fc
Version:        0.21
f7b9fc
Release:        5%{?dist}
f7b9fc
Summary:        Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
f7b9fc
License:        GPL+ or Artistic
f7b9fc
Group:          Development/Libraries
f7b9fc
URL:            http://search.cpan.org/dist/IO-Socket-IP/
f7b9fc
Source0:        http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
f7b9fc
Patch0:         IO-Socket-IP-so_reuseport.patch
f7b9fc
# 1/2 Fix constructing sockets without specifying host or family, bug #1492760,
f7b9fc
# CPAN RT#91982, fixed in 0.25
f7b9fc
Patch1:         IO-Socket-IP-0.21-Ensure-that-a-Host-Family-less-constructor-still-con.patch
f7b9fc
# 2/2 Fix constructing sockets without specifying host or family, bug #1492760,
f7b9fc
# fixed in 0.29
f7b9fc
Patch2:         IO-Socket-IP-0.21-Correct-prototol-family-in-hints.patch
f7b9fc
BuildArch:      noarch
f7b9fc
BuildRequires:  perl
f7b9fc
BuildRequires:  perl(base)
f7b9fc
BuildRequires:  perl(Carp)
f7b9fc
BuildRequires:  perl(constant)
f7b9fc
BuildRequires:  perl(Errno)
f7b9fc
BuildRequires:  perl(IO::Socket)
f7b9fc
BuildRequires:  perl(IO::Socket::INET)
f7b9fc
BuildRequires:  perl(Module::Build)
f7b9fc
BuildRequires:  perl(POSIX)
f7b9fc
BuildRequires:  perl(Socket) >= 1.97
f7b9fc
BuildRequires:  perl(Socket6)
f7b9fc
BuildRequires:  perl(strict)
f7b9fc
BuildRequires:  perl(Test::More)
f7b9fc
BuildRequires:  perl(Test::Pod)
f7b9fc
BuildRequires:  perl(warnings)
f7b9fc
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
f7b9fc
f7b9fc
%{?perl_default_filter}
f7b9fc
f7b9fc
%description
f7b9fc
This module provides a protocol-independent way to use IPv4 and IPv6
f7b9fc
sockets, as a drop-in replacement for IO::Socket::INET. Most constructor
f7b9fc
arguments and methods are provided in a backward-compatible way.
f7b9fc
f7b9fc
%prep
f7b9fc
%setup -q -n IO-Socket-IP-%{version}
f7b9fc
%patch0 -p1
f7b9fc
%patch1 -p1
f7b9fc
%patch2 -p1
f7b9fc
f7b9fc
%build
f7b9fc
perl Build.PL installdirs=vendor
f7b9fc
./Build
f7b9fc
f7b9fc
%install
f7b9fc
./Build install destdir=%{buildroot} create_packlist=0
f7b9fc
%{_fixperms} %{buildroot}/*
f7b9fc
f7b9fc
%check
f7b9fc
# Don't do the live test
f7b9fc
rm -f t/21nonblocking-connect-internet.t
f7b9fc
./Build test
f7b9fc
f7b9fc
%files
f7b9fc
%doc Changes examples LICENSE README
f7b9fc
%{perl_vendorlib}/*
f7b9fc
%{_mandir}/man3/*
f7b9fc
f7b9fc
%changelog
f7b9fc
* Mon Sep 18 2017 Petr Pisar <ppisar@redhat.com> - 0.21-5
f7b9fc
- Fix constructing sockets without specifying host or family (bug #1492760)
f7b9fc
f7b9fc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.21-4
f7b9fc
- Mass rebuild 2013-12-27
f7b9fc
f7b9fc
* Thu Jul 18 2013 Petr Šabata <contyk@redhat.com> - 0.21-3
f7b9fc
- Disable the SO_REUSEPORT test; koji builders don't support this feature yet
f7b9fc
f7b9fc
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.21-2
f7b9fc
- Perl 5.18 rebuild
f7b9fc
f7b9fc
* Mon Apr 29 2013 Petr Šabata <contyk@redhat.com> - 0.21-1
f7b9fc
- 0.21 bump
f7b9fc
f7b9fc
* Wed Apr 17 2013 Petr Šabata <contyk@redhat.com> - 0.20-1
f7b9fc
- 0.20 bump
f7b9fc
f7b9fc
* Tue Mar 12 2013 Petr Šabata <contyk@redhat.com> - 0.19-1
f7b9fc
- 0.19 bump
f7b9fc
f7b9fc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
f7b9fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f7b9fc
f7b9fc
* Fri Nov 30 2012 Petr Šabata <contyk@redhat.com> - 0.18-1
f7b9fc
- 0.18 bump
f7b9fc
f7b9fc
* Thu Nov 15 2012 Petr Šabata <contyk@redhat.com> - 0.17-2
f7b9fc
- Fix a typo, sort the deps
f7b9fc
f7b9fc
* Wed Aug 22 2012 Petr Šabata <contyk@redhat.com> - 0.17-1
f7b9fc
- 0.17 bump
f7b9fc
f7b9fc
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
f7b9fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7b9fc
f7b9fc
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 0.16-2
f7b9fc
- Perl 5.16 rebuild
f7b9fc
f7b9fc
* Mon Jun 25 2012 Petr Šabata <contyk@redhat.com> - 0.16-1
f7b9fc
- 0.16 (IO::Socket::INET compatibility enhancement)
f7b9fc
f7b9fc
* Thu Jun 21 2012 Petr Šabata <contyk@redhat.com> - 0.15-1
f7b9fc
- 0.15 bump
f7b9fc
f7b9fc
* Tue Jun 19 2012 Petr Šabata <contyk@redhat.com> - 0.14-1
f7b9fc
- 0.14 bump
f7b9fc
f7b9fc
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.11-2
f7b9fc
- Perl 5.16 rebuild
f7b9fc
f7b9fc
* Wed Jun 06 2012 Petr Šabata <contyk@redhat.com> - 0.11-1
f7b9fc
- 0.11 bump
f7b9fc
f7b9fc
* Fri May 11 2012 Petr Šabata <contyk@redhat.com> - 0.10-1
f7b9fc
- 0.10 bump
f7b9fc
f7b9fc
* Wed Mar 14 2012 Petr Šabata <contyk@redhat.com> - 0.09-1
f7b9fc
- 0.09 bump
f7b9fc
f7b9fc
* Fri Jan 27 2012 Petr Šabata <contyk@redhat.com> 0.08-1
f7b9fc
- Specfile autogenerated by cpanspec 1.78.