diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb5639a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libnet-3.10.tar.gz diff --git a/.rh-perl524-perl-libnet.metadata b/.rh-perl524-perl-libnet.metadata new file mode 100644 index 0000000..3a8d2dc --- /dev/null +++ b/.rh-perl524-perl-libnet.metadata @@ -0,0 +1 @@ +0f2a71ae934f983ba4252f616806df4403cf6acd SOURCES/libnet-3.10.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +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/libnet-3.08-Do-not-create-Net-libnet.cfg.patch b/SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch new file mode 100644 index 0000000..911bc10 --- /dev/null +++ b/SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch @@ -0,0 +1,43 @@ +From a40f2774eede8e65dd6128b45525ec88f469e031 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 10 Jul 2015 13:02:00 +0200 +Subject: [PATCH 2/2] Do not create Net/libnet.cfg +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +I will remove the Net/libnet.cfg because: + +(1) it's content equals to default configuration hard-coded in the +code +(2) it's kind of configuration file we do not mark it as a configuration +file, so it's overwritten on each update +(3) it's loaded from directory based on Net::Config module location. +I.e. core module will search it in core path, vendor module in vendor +path and site module in site path. + +perl.spec does not provide it either. + + + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 64d6959..25fc626 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -235,7 +235,7 @@ MAIN: { + sub MY::post_initialize { + my $self = shift; + +- return '' if $self->{PERL_CORE}; ++ return ''; + + if (not -f $CfgFile) { + my @args = qw(Configure); +-- +2.5.0 + diff --git a/SOURCES/libnet-3.09-Normalize-Changes-encoding.patch b/SOURCES/libnet-3.09-Normalize-Changes-encoding.patch new file mode 100644 index 0000000..a7b2441 --- /dev/null +++ b/SOURCES/libnet-3.09-Normalize-Changes-encoding.patch @@ -0,0 +1,29 @@ +From 05e241bca2f48a271627a2fedcdb43f1fe5b9483 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 2 Jul 2015 13:37:47 +0200 +Subject: [PATCH] Normalize Changes encoding +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Changes | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Changes b/Changes +index 831e061..27fda24 100644 +--- a/Changes ++++ b/Changes +@@ -236,7 +236,7 @@ Revision history for Perl distribution libnet + + 1.24 2014-01-06 + +- - Fix incorrect handling of CRLF in Net::FTP. [Willem Monsuw�, CPAN ++ - Fix incorrect handling of CRLF in Net::FTP. [Willem Monsuwé, CPAN + RT#41642/62029] + + - POD fixes. [Dominic Hargreaves, CPAN RT#91761] +-- +2.5.5 + diff --git a/SPECS/perl-libnet.spec b/SPECS/perl-libnet.spec new file mode 100644 index 0000000..3a609f0 --- /dev/null +++ b/SPECS/perl-libnet.spec @@ -0,0 +1,146 @@ +%{?scl:%scl_package perl-libnet} + +Name: %{?scl_prefix}perl-libnet +Version: 3.10 +Release: 1%{?dist} +Summary: Perl clients for various network protocols +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/libnet/ +Source0: http://www.cpan.org/authors/id/S/SH/SHAY/libnet-%{version}.tar.gz +# Convert Changes to UTF-8 +Patch0: libnet-3.09-Normalize-Changes-encoding.patch +# Do not create Net/libnet.cfg, bug #1238689 +Patch1: libnet-3.08-Do-not-create-Net-libnet.cfg.patch +BuildArch: noarch +BuildRequires: findutils +BuildRequires: make +BuildRequires: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl-generators +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.64 +# Getopt::Std not used because of Do-not-create-Net-libnet.cfg.patch +# IO::File not used because of Do-not-create-Net-libnet.cfg.patch +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(warnings) +# Run-time: +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(constant) +# Convert::EBCDIC not used +BuildRequires: %{?scl_prefix}perl(Errno) +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(Fcntl) +# File::Basename not used at tests +BuildRequires: %{?scl_prefix}perl(FileHandle) +BuildRequires: %{?scl_prefix}perl(IO::Select) +BuildRequires: %{?scl_prefix}perl(IO::Socket) >= 1.05 +# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET +# IO::Socket::INET6 not used +BuildRequires: %{?scl_prefix}perl(IO::Socket::IP) >= 0.25 +BuildRequires: %{?scl_prefix}perl(POSIX) +BuildRequires: %{?scl_prefix}perl(Socket) >= 2.016 +BuildRequires: %{?scl_prefix}perl(Symbol) +BuildRequires: %{?scl_prefix}perl(Time::Local) +# Optional run-time: +# Authen::SASL not used at tests +# Digest::MD5 not used at tests +%if !%{defined perl_bootstrap} && !%{defined perl_small} +# Core modules must be built without non-core dependencies +BuildRequires: %{?scl_prefix}perl(IO::Socket::SSL) >= 2.007 +%endif +# MD5 not used because we prefer Digest::MD5 +# MIME::Base64 not used at tests +# Tests: +BuildRequires: %{?scl_prefix}perl(Config) +BuildRequires: %{?scl_prefix}perl(Cwd) +BuildRequires: %{?scl_prefix}perl(File::Temp) +BuildRequires: %{?scl_prefix}perl(IO::File) +BuildRequires: %{?scl_prefix}perl(Test::More) +# Optional tests: +%if !%{defined perl_bootstrap} && !%{defined perl_small} +# Core modules must be built without non-core dependencies +BuildRequires: %{?scl_prefix}perl(IO::Socket::SSL::Utils) +%endif +# Test::CPAN::Changes not used +# Test::Perl::Critic not used +# Test::Pod 1.00 not used +# Test::Pod::Coverage 0.08 not used +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) +Requires: %{?scl_prefix}perl(File::Basename) +Requires: %{?scl_prefix}perl(IO::Socket) >= 1.05 +# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET +Requires: %{?scl_prefix}perl(IO::Socket::IP) >= 0.25 +Requires: %{?scl_prefix}perl(POSIX) +Requires: %{?scl_prefix}perl(Socket) >= 2.016 +Conflicts: %{?scl_prefix}perl < 4:5.22.0-347 + +# Filter under-specified dependencies +%if 0%{?rhel} < 7 +# RPM 4.8 style +%{?filter_setup: +%filter_from_requires /^%{?scl_prefix}perl(IO::Socket)/d +%filter_from_requires /^%{?scl_prefix}perl(Socket)/d +%?perl_default_filter +} +%else +# RPM 4.9 style +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\((IO::Socket|Socket)\\)$ +%endif + +%description +This is a collection of Perl modules which provides a simple and +consistent programming interface (API) to the client side of various +protocols used in the internet community. + +%prep +%setup -q -n libnet-%{version} +%patch0 -p1 +%patch1 -p1 + +%build +%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor - 3.10-1 +- 3.10 bump + +* Wed Jul 27 2016 Petr Pisar - 3.09-3 +- Fix blocking in Net::FTP and other subclasses (bug #1360610) + +* Wed Jul 20 2016 Petr Pisar - 3.09-2 +- SCL + +* Wed Jul 20 2016 Petr Pisar - 3.09-1 +- 3.09 bump + +* Wed May 18 2016 Jitka Plesnikova - 3.08-366 +- Perl 5.24 re-rebuild of bootstrapped packages + +* Sat May 14 2016 Jitka Plesnikova - 3.08-365 +- Increase release to favour standalone package + +* Thu Feb 04 2016 Fedora Release Engineering - 3.08-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jan 06 2016 Petr Pisar - 3.08-1 +- 8.08 bump + +* Mon Jul 20 2015 Petr Pisar - 3.07-1 +- 3.07 bump + +* Wed Jul 01 2015 Petr Pisar 3.06-1 +- Specfile autogenerated by cpanspec 1.78. +- Do not create Net/libnet.cfg (bug #1238689)