405cb7
# Run optional test
405cb7
%if ! (0%{?rhel})
405cb7
%bcond_without perl_IO_Socket_IP_enables_optional_test
405cb7
%else
405cb7
%bcond_with perl_IO_Socket_IP_enables_optional_test
405cb7
%endif
405cb7
405cb7
Name:           perl-IO-Socket-IP
405cb7
Version:        0.41
405cb7
Release:        5%{?dist}
405cb7
Summary:        Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
405cb7
License:        GPL+ or Artistic
405cb7
URL:            https://metacpan.org/release/IO-Socket-IP
405cb7
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
405cb7
# IO-Socket-IP-0.41 moved from ExtUtils::MakeMaker to Module::Build.
405cb7
# It will make problems, because IO::Socket::IP is a dual-lived package and
405cb7
# needs to be built very early on Perl bootstrap, but Module::Build is not
405cb7
# a core package and thus not available in the early stage of bootstrapping.
405cb7
# For this reason, we create Makefile.PL and use it instead of Build.PL.
405cb7
Source1:        Makefile.PL
405cb7
BuildArch:      noarch
405cb7
# Build
405cb7
BuildRequires:  coreutils
405cb7
BuildRequires:  make
405cb7
BuildRequires:  perl-generators
405cb7
BuildRequires:  perl-interpreter
405cb7
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
405cb7
# Runtime
405cb7
BuildRequires:  perl(base)
405cb7
BuildRequires:  perl(Carp)
405cb7
BuildRequires:  perl(constant)
405cb7
BuildRequires:  perl(Errno)
405cb7
BuildRequires:  perl(IO::Socket)
405cb7
BuildRequires:  perl(POSIX)
405cb7
BuildRequires:  perl(Socket) >= 1.97
405cb7
BuildRequires:  perl(strict)
405cb7
buildrequires:  perl(warnings)
405cb7
# Tests only
405cb7
BuildRequires:  perl(IO::Socket::INET)
405cb7
BuildRequires:  perl(Test::More)
405cb7
%if %{with perl_IO_Socket_IP_enables_optional_test} && !%{defined perl_bootstrap}
405cb7
# Optional tests only
405cb7
BuildRequires:  perl(Socket6)
405cb7
BuildRequires:  perl(Test::Pod) >= 1.00
405cb7
%endif
405cb7
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
405cb7
405cb7
%{?perl_default_filter}
405cb7
405cb7
%description
405cb7
This module provides a protocol-independent way to use IPv4 and IPv6
405cb7
sockets, intended as a replacement for IO::Socket::INET. Most constructor
405cb7
arguments and methods are provided in a backward-compatible way.
405cb7
405cb7
%prep
405cb7
%setup -q -n IO-Socket-IP-%{version}
405cb7
cp %{SOURCE1} .
405cb7
chmod -x lib/IO/Socket/IP.pm
405cb7
405cb7
%build
405cb7
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
405cb7
%{make_build}
405cb7
405cb7
%install
405cb7
%{make_install}
405cb7
%{_fixperms} %{buildroot}/*
405cb7
405cb7
%check
405cb7
make test
405cb7
405cb7
%files
405cb7
%license LICENSE
405cb7
%doc Changes examples README
405cb7
%{perl_vendorlib}/*
405cb7
%{_mandir}/man3/*
405cb7
405cb7
%changelog
405cb7
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.41-5
405cb7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
405cb7
  Related: rhbz#1991688
405cb7
405cb7
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.41-4
405cb7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
405cb7
405cb7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-3
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
405cb7
405cb7
* Thu Sep 17 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.41-2
405cb7
- Create Makefile.PL, use ExtUtils::MakeMaker instead of Module::Build
405cb7
405cb7
* Wed Sep 16 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.41-1
405cb7
- 0.41 bump
405cb7
405cb7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-458
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
405cb7
405cb7
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-457
405cb7
- Perl 5.32 re-rebuild of bootstrapped packages
405cb7
405cb7
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-456
405cb7
- Increase release to favour standalone package
405cb7
405cb7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-441
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
405cb7
405cb7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-440
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
405cb7
405cb7
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-439
405cb7
- Perl 5.30 re-rebuild of bootstrapped packages
405cb7
405cb7
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-438
405cb7
- Increase release to favour standalone package
405cb7
405cb7
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-419
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
405cb7
405cb7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-418
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
405cb7
405cb7
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-417
405cb7
- Perl 5.28 re-rebuild of bootstrapped packages
405cb7
405cb7
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-416
405cb7
- Increase release to favour standalone package
405cb7
405cb7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-5
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
405cb7
405cb7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-4
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
405cb7
405cb7
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-3
405cb7
- Perl 5.26 re-rebuild of bootstrapped packages
405cb7
405cb7
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-2
405cb7
- Perl 5.26 rebuild
405cb7
405cb7
* Tue Mar 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-1
405cb7
- 0.39 bump
405cb7
405cb7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-2
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
405cb7
405cb7
* Tue Aug 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.38-1
405cb7
- 0.38 bump
405cb7
405cb7
* Tue Jul 12 2016 Petr Pisar <ppisar@redhat.com> - 0.37-367
405cb7
- Migrate from Module::Build to ExtUtils::MakeMaker
405cb7
- Correct IO/Socket/IP.pm file mode
405cb7
405cb7
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-366
405cb7
- Perl 5.24 re-rebuild of bootstrapped packages
405cb7
405cb7
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-365
405cb7
- Increase release to favour standalone package
405cb7
405cb7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-348
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
405cb7
405cb7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-347
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
405cb7
405cb7
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-346
405cb7
- Perl 5.22 re-rebuild of bootstrapped packages
405cb7
405cb7
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-345
405cb7
- Increase release to favour standalone package
405cb7
405cb7
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-2
405cb7
- Perl 5.22 rebuild
405cb7
405cb7
* Fri Mar 13 2015 Petr Šabata <contyk@redhat.com> - 0.37-1
405cb7
- 0.37 bump
405cb7
405cb7
* Fri Jan 30 2015 Petr Šabata <contyk@redhat.com> - 0.36-1
405cb7
- 0.36 bump
405cb7
- Win32 changes only
405cb7
405cb7
* Mon Jan 05 2015 Petr Šabata <contyk@redhat.com> - 0.35-1
405cb7
- 0.35 bugfix bump
405cb7
405cb7
* Fri Dec 12 2014 Petr Pisar <ppisar@redhat.com> - 0.34-2
405cb7
- Do not build-require non-core Socket6 module when bootstrapping this core
405cb7
  module
405cb7
405cb7
* Fri Dec 05 2014 Petr Šabata <contyk@redhat.com> - 0.34-1
405cb7
- 0.34 bump, VMS bugfixes
405cb7
405cb7
* Tue Nov 25 2014 Petr Šabata <contyk@redhat.com> - 0.33-1
405cb7
- 0.33 bump
405cb7
405cb7
* Thu Sep 18 2014 Petr Šabata <contyk@redhat.com> - 0.32-1
405cb7
- 0.32 bump, implement connect timeout
405cb7
405cb7
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-2
405cb7
- Perl 5.20 rebuild
405cb7
405cb7
* Wed Jul 16 2014 Petr Šabata <contyk@redhat.com> - 0.31-1
405cb7
- 0.31 bump
405cb7
405cb7
* Wed Jul 09 2014 Petr Pisar <ppisar@redhat.com> - 0.30-2
405cb7
- Fix multihomed SSL (bug #1116600)
405cb7
405cb7
* Mon Jul 07 2014 Petr Pisar <ppisar@redhat.com> - 0.30-1
405cb7
- 0.30 bump
405cb7
405cb7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.29-2
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
405cb7
405cb7
* Wed Feb 26 2014 Petr Šabata <contyk@redhat.com> - 0.29-1
405cb7
- 0.29 bump
405cb7
405cb7
* Wed Feb 12 2014 Petr Šabata <contyk@redhat.com> - 0.28-1
405cb7
- 0.28 bump
405cb7
405cb7
* Tue Jan 21 2014 Petr Šabata <contyk@redhat.com> - 0.27-1
405cb7
- 0.27 bump, test suite enhancements only
405cb7
405cb7
* Fri Jan 17 2014 Petr Šabata <contyk@redhat.com> - 0.26-1
405cb7
- 0.26 bump
405cb7
405cb7
* Fri Sep 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-1
405cb7
- 0.24 bump
405cb7
405cb7
* Mon Sep 16 2013 Petr Šabata <contyk@redhat.com> - 0.23-1
405cb7
- 0.23 bump; smarter SO_REUSEPORT tests
405cb7
405cb7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
405cb7
405cb7
* Wed Jul 31 2013 Petr Šabata <contyk@redhat.com> - 0.22-1
405cb7
- 0.22 bump
405cb7
- Test suite bugfix release
405cb7
405cb7
* Thu Jul 18 2013 Petr Šabata <contyk@redhat.com> - 0.21-3
405cb7
- Disable the SO_REUSEPORT test; koji builders don't support this feature yet
405cb7
405cb7
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.21-2
405cb7
- Perl 5.18 rebuild
405cb7
405cb7
* Mon Apr 29 2013 Petr Šabata <contyk@redhat.com> - 0.21-1
405cb7
- 0.21 bump
405cb7
405cb7
* Wed Apr 17 2013 Petr Šabata <contyk@redhat.com> - 0.20-1
405cb7
- 0.20 bump
405cb7
405cb7
* Tue Mar 12 2013 Petr Šabata <contyk@redhat.com> - 0.19-1
405cb7
- 0.19 bump
405cb7
405cb7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
405cb7
405cb7
* Fri Nov 30 2012 Petr Šabata <contyk@redhat.com> - 0.18-1
405cb7
- 0.18 bump
405cb7
405cb7
* Thu Nov 15 2012 Petr Šabata <contyk@redhat.com> - 0.17-2
405cb7
- Fix a typo, sort the deps
405cb7
405cb7
* Wed Aug 22 2012 Petr Šabata <contyk@redhat.com> - 0.17-1
405cb7
- 0.17 bump
405cb7
405cb7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
405cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
405cb7
405cb7
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 0.16-2
405cb7
- Perl 5.16 rebuild
405cb7
405cb7
* Mon Jun 25 2012 Petr Šabata <contyk@redhat.com> - 0.16-1
405cb7
- 0.16 (IO::Socket::INET compatibility enhancement)
405cb7
405cb7
* Thu Jun 21 2012 Petr Šabata <contyk@redhat.com> - 0.15-1
405cb7
- 0.15 bump
405cb7
405cb7
* Tue Jun 19 2012 Petr Šabata <contyk@redhat.com> - 0.14-1
405cb7
- 0.14 bump
405cb7
405cb7
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.11-2
405cb7
- Perl 5.16 rebuild
405cb7
405cb7
* Wed Jun 06 2012 Petr Šabata <contyk@redhat.com> - 0.11-1
405cb7
- 0.11 bump
405cb7
405cb7
* Fri May 11 2012 Petr Šabata <contyk@redhat.com> - 0.10-1
405cb7
- 0.10 bump
405cb7
405cb7
* Wed Mar 14 2012 Petr Šabata <contyk@redhat.com> - 0.09-1
405cb7
- 0.09 bump
405cb7
405cb7
* Fri Jan 27 2012 Petr Šabata <contyk@redhat.com> 0.08-1
405cb7
- Specfile autogenerated by cpanspec 1.78.