diff --git a/.perl-IO-Socket-IP.metadata b/.perl-IO-Socket-IP.metadata new file mode 100644 index 0000000..4969854 --- /dev/null +++ b/.perl-IO-Socket-IP.metadata @@ -0,0 +1 @@ +5ef355e02221da9dd83d491a109a6efac6a13daf SOURCES/IO-Socket-IP-0.21.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/IO-Socket-IP-so_reuseport.patch b/SOURCES/IO-Socket-IP-so_reuseport.patch new file mode 100644 index 0000000..9cf625b --- /dev/null +++ b/SOURCES/IO-Socket-IP-so_reuseport.patch @@ -0,0 +1,12 @@ +diff --git a/t/11sockopts.t b/t/11sockopts.t +index 02f733c..e11051a 100644 +--- a/t/11sockopts.t ++++ b/t/11sockopts.t +@@ -28,6 +28,7 @@ TODO: { + SKIP: { + # Some OSes don't implement SO_REUSEPORT + skip "No SO_REUSEPORT", 1 unless defined eval { SO_REUSEPORT }; ++ skip "Koji builders don't support SO_REUSEPORT", 1; + + my $sock = IO::Socket::IP->new( + LocalHost => "127.0.0.1", diff --git a/SPECS/perl-IO-Socket-IP.spec b/SPECS/perl-IO-Socket-IP.spec new file mode 100644 index 0000000..791cd5a --- /dev/null +++ b/SPECS/perl-IO-Socket-IP.spec @@ -0,0 +1,113 @@ +Name: perl-IO-Socket-IP +Version: 0.21 +Release: 3%{?dist} +Summary: Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6 +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/IO-Socket-IP/ +Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz +Patch0: IO-Socket-IP-so_reuseport.patch +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Errno) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(IO::Socket::INET) +BuildRequires: perl(Module::Build) +BuildRequires: perl(POSIX) +BuildRequires: perl(Socket) >= 1.97 +BuildRequires: perl(Socket6) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) + +%{?perl_default_filter} + +%description +This module provides a protocol-independent way to use IPv4 and IPv6 +sockets, as a drop-in replacement for IO::Socket::INET. Most constructor +arguments and methods are provided in a backward-compatible way. + +%prep +%setup -q -n IO-Socket-IP-%{version} +%patch0 -p1 + +%build +perl Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%{_fixperms} %{buildroot}/* + +%check +# Don't do the live test +rm -f t/21nonblocking-connect-internet.t +./Build test + +%files +%doc Changes examples LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jul 18 2013 Petr Šabata - 0.21-3 +- Disable the SO_REUSEPORT test; koji builders don't support this feature yet + +* Thu Jul 18 2013 Petr Pisar - 0.21-2 +- Perl 5.18 rebuild + +* Mon Apr 29 2013 Petr Šabata - 0.21-1 +- 0.21 bump + +* Wed Apr 17 2013 Petr Šabata - 0.20-1 +- 0.20 bump + +* Tue Mar 12 2013 Petr Šabata - 0.19-1 +- 0.19 bump + +* Thu Feb 14 2013 Fedora Release Engineering - 0.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 30 2012 Petr Šabata - 0.18-1 +- 0.18 bump + +* Thu Nov 15 2012 Petr Šabata - 0.17-2 +- Fix a typo, sort the deps + +* Wed Aug 22 2012 Petr Šabata - 0.17-1 +- 0.17 bump + +* Fri Jul 20 2012 Fedora Release Engineering - 0.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 28 2012 Petr Pisar - 0.16-2 +- Perl 5.16 rebuild + +* Mon Jun 25 2012 Petr Šabata - 0.16-1 +- 0.16 (IO::Socket::INET compatibility enhancement) + +* Thu Jun 21 2012 Petr Šabata - 0.15-1 +- 0.15 bump + +* Tue Jun 19 2012 Petr Šabata - 0.14-1 +- 0.14 bump + +* Mon Jun 11 2012 Petr Pisar - 0.11-2 +- Perl 5.16 rebuild + +* Wed Jun 06 2012 Petr Šabata - 0.11-1 +- 0.11 bump + +* Fri May 11 2012 Petr Šabata - 0.10-1 +- 0.10 bump + +* Wed Mar 14 2012 Petr Šabata - 0.09-1 +- 0.09 bump + +* Fri Jan 27 2012 Petr Šabata 0.08-1 +- Specfile autogenerated by cpanspec 1.78.