From 0038476e3dc9ddcd2ff1012f712ebcc285d80e37 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 20 Nov 2024 13:46:40 +0000 Subject: [PATCH] import RHEL 10 Beta perl-libnet-3.15-510.el10 --- .gitignore | 2 +- .perl-libnet.metadata | 1 - SOURCES/libnetFAQ.pod | 6 - SPECS/perl-libnet.spec | 194 ----------- ...et-3.08-Do-not-create-Net-libnet.cfg.patch | 0 ...bnet-3.09-Normalize-Changes-encoding.patch | 2 +- perl-libnet.spec | 302 ++++++++++++++++++ sources | 1 + 8 files changed, 305 insertions(+), 203 deletions(-) delete mode 100644 .perl-libnet.metadata delete mode 100644 SOURCES/libnetFAQ.pod delete mode 100644 SPECS/perl-libnet.spec rename SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch => libnet-3.08-Do-not-create-Net-libnet.cfg.patch (100%) rename SOURCES/libnet-3.09-Normalize-Changes-encoding.patch => libnet-3.09-Normalize-Changes-encoding.patch (92%) create mode 100644 perl-libnet.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index b396629..75b9520 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/libnet-3.11_repackaged.tar.gz +libnet-3.15.tar.gz diff --git a/.perl-libnet.metadata b/.perl-libnet.metadata deleted file mode 100644 index e3eaaf0..0000000 --- a/.perl-libnet.metadata +++ /dev/null @@ -1 +0,0 @@ -a4d57be085667743c2d040bc309a61b036b2c6e0 SOURCES/libnet-3.11_repackaged.tar.gz diff --git a/SOURCES/libnetFAQ.pod b/SOURCES/libnetFAQ.pod deleted file mode 100644 index 8cd15d3..0000000 --- a/SOURCES/libnetFAQ.pod +++ /dev/null @@ -1,6 +0,0 @@ -=encoding utf-8 - -The L. You can -access the original document on -L. diff --git a/SPECS/perl-libnet.spec b/SPECS/perl-libnet.spec deleted file mode 100644 index befd86b..0000000 --- a/SPECS/perl-libnet.spec +++ /dev/null @@ -1,194 +0,0 @@ -# Run optional test -%if ! (0%{?rhel}) -%bcond_without perl_libnet_enables_optional_test -%else -%bcond_with perl_libnet_enables_optional_test -%endif -# SASL support -%bcond_without perl_libnet_enables_sasl -# SSL support -%bcond_without perl_libnet_enables_ssl - -Name: perl-libnet -Version: 3.11 -Release: 4%{?dist} -Summary: Perl clients for various network protocols -# other files: GPL+ or Artistic -## Not in binary packages -# repackage.sh: GPLv2+ -## Removed from upstream sources: -# lib/Net/libnetFAQ.pod: Artistic (CPAN RT#117888) -License: GPL+ or Artistic -URL: http://search.cpan.org/dist/libnet/ -# Origin source archive contains Artistic only files, CPAN RT#117888. -# Local archive produced by "./repackage.sh %%{version}" command. -# http://www.cpan.org/authors/id/S/SH/SHAY/libnet-%%{version}.tar.gz -Source0: libnet-%{version}_repackaged.tar.gz -# Replacement for the Artistic only file, CPAN RT#117888. -Source1: libnetFAQ.pod -# 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: coreutils -BuildRequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -# 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: perl(strict) -BuildRequires: perl(warnings) -# Run-time: -BuildRequires: perl(Carp) -BuildRequires: perl(constant) -# Convert::EBCDIC not used -BuildRequires: perl(Errno) -BuildRequires: perl(Exporter) -BuildRequires: perl(Fcntl) -# File::Basename not used at tests -BuildRequires: perl(FileHandle) -BuildRequires: perl(IO::Select) -BuildRequires: perl(IO::Socket) >= 1.05 -# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET -# IO::Socket::INET6 not used -BuildRequires: perl(IO::Socket::IP) >= 0.25 -BuildRequires: perl(POSIX) -BuildRequires: perl(Socket) >= 2.016 -BuildRequires: perl(Symbol) -BuildRequires: perl(Time::Local) -# Optional run-time: -# Authen::SASL not used at tests -# Digest::MD5 not used at tests -%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} -# Core modules must be built without non-core dependencies -BuildRequires: perl(IO::Socket::SSL) >= 2.007 -%endif -# MD5 not used because we prefer Digest::MD5 -# MIME::Base64 not used at tests -# Tests: -BuildRequires: perl(Config) -BuildRequires: perl(Cwd) -BuildRequires: perl(File::Temp) -BuildRequires: perl(IO::File) -BuildRequires: perl(Test::More) -%if %{with perl_libnet_enables_optional_test} -# Optional tests: -%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} -# Core modules must be built without non-core dependencies -BuildRequires: 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 -%endif -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: perl(File::Basename) -Requires: perl(IO::Socket) >= 1.05 -# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET -Requires: perl(IO::Socket::IP) >= 0.25 -Requires: perl(POSIX) -Requires: perl(Socket) >= 2.016 -# Optional run-time: -# Core modules must be built without non-core dependencies -%if %{with perl_libnet_enables_sasl} && !%{defined perl_bootstrap} -Suggests: perl(Authen::SASL) -Suggests: perl(MIME::Base64) -%endif -# Digest::MD5 or MD5 -Requires: perl(Digest::MD5) -%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} -Suggests: perl(IO::Socket::SSL) >= 2.007 -%endif -Conflicts: perl < 4:5.22.0-347 - -# Filter under-specified dependencies -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((IO::Socket|Socket)\\)$ - -%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} -# Provide dummy Net::libnetFAQ document, CPAN RT#117888 -install -m 0644 %{SOURCE1} lib/Net -%patch0 -p1 -%patch1 -p1 - -%build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 - 3.11-4 -- Rebuild with enable hardening (bug #1636329) - -* Fri Feb 09 2018 Fedora Release Engineering - 3.11-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Tue Dec 12 2017 Petr Pisar - 3.11-2 -- Require Digest::MD5 for APOP login method - -* Wed Nov 15 2017 Petr Pisar - 3.11-1 -- 3.11 bump - -* Thu Jul 27 2017 Fedora Release Engineering - 3.10-395 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Wed Jun 07 2017 Jitka Plesnikova - 3.10-394 -- Perl 5.26 re-rebuild of bootstrapped packages - -* Sat Jun 03 2017 Jitka Plesnikova - 3.10-393 -- Perl 5.26 rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 3.10-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Sep 16 2016 Petr Pisar - 3.10-2 -- Net::libnetFAQ document replaced with a hyper link because of the Artistic - license (CPAN RT#117888) - -* Mon Aug 01 2016 Jitka Plesnikova - 3.10-1 -- 3.10 bump - -* Wed Jul 27 2016 Petr Pisar - 3.09-2 -- Fix blocking in Net::FTP and other subclasses (bug #1360610) - -* 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) diff --git a/SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch b/libnet-3.08-Do-not-create-Net-libnet.cfg.patch similarity index 100% rename from SOURCES/libnet-3.08-Do-not-create-Net-libnet.cfg.patch rename to libnet-3.08-Do-not-create-Net-libnet.cfg.patch diff --git a/SOURCES/libnet-3.09-Normalize-Changes-encoding.patch b/libnet-3.09-Normalize-Changes-encoding.patch similarity index 92% rename from SOURCES/libnet-3.09-Normalize-Changes-encoding.patch rename to libnet-3.09-Normalize-Changes-encoding.patch index a7b2441..8e45ae6 100644 --- a/SOURCES/libnet-3.09-Normalize-Changes-encoding.patch +++ b/libnet-3.09-Normalize-Changes-encoding.patch @@ -15,7 +15,7 @@ diff --git a/Changes b/Changes index 831e061..27fda24 100644 --- a/Changes +++ b/Changes -@@ -236,7 +236,7 @@ Revision history for Perl distribution libnet +@@ -299,7 +299,7 @@ Revision history for Perl distribution libnet 1.24 2014-01-06 diff --git a/perl-libnet.spec b/perl-libnet.spec new file mode 100644 index 0000000..74bc64f --- /dev/null +++ b/perl-libnet.spec @@ -0,0 +1,302 @@ +%global base_version 3.15 + +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_libnet_enables_optional_test +%else +%bcond_with perl_libnet_enables_optional_test +%endif +# SASL support +%bcond_without perl_libnet_enables_sasl +# SSL support +%bcond_without perl_libnet_enables_ssl + +Name: perl-libnet +Version: 3.15 +Release: 510%{?dist} +Summary: Perl clients for various network protocols +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/libnet +Source0: https://cpan.metacpan.org/authors/id/S/SH/SHAY/libnet-%{base_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: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# 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: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +# Convert::EBCDIC not used +BuildRequires: perl(Errno) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +# File::Basename not used at tests +BuildRequires: perl(FileHandle) +BuildRequires: perl(IO::Select) +BuildRequires: perl(IO::Socket) >= 1.05 +# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET +# IO::Socket::INET6 not used +BuildRequires: perl(IO::Socket::IP) >= 0.25 +BuildRequires: perl(POSIX) +BuildRequires: perl(Socket) >= 2.016 +BuildRequires: perl(Symbol) +BuildRequires: perl(Time::Local) +# Optional run-time: +# Authen::SASL not used at tests +# Digest::MD5 not used at tests +%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} +# Core modules must be built without non-core dependencies +BuildRequires: perl(IO::Socket::SSL) >= 2.007 +%endif +# MD5 not used because we prefer Digest::MD5 +# MIME::Base64 not used at tests +# Tests: +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Temp) +BuildRequires: perl(IO::File) +BuildRequires: perl(Test::More) +%if %{with perl_libnet_enables_optional_test} +# Optional tests: +%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} +# Core modules must be built without non-core dependencies +BuildRequires: perl(IO::Socket::SSL::Utils) +%endif +%endif +Requires: perl(File::Basename) +Requires: perl(IO::Socket) >= 1.05 +# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET +Requires: perl(IO::Socket::IP) >= 0.25 +Requires: perl(POSIX) +Requires: perl(Socket) >= 2.016 +# Optional run-time: +# Core modules must be built without non-core dependencies +%if %{with perl_libnet_enables_sasl} && !%{defined perl_bootstrap} +Suggests: perl(Authen::SASL) +Suggests: perl(MIME::Base64) +%endif +# Digest::MD5 or MD5 +Requires: perl(Digest::MD5) +%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap} +Suggests: perl(IO::Socket::SSL) >= 2.007 +%endif +Conflicts: perl < 4:5.22.0-347 + +# Filter under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((IO::Socket|Socket)\\)$ + +%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. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n libnet-%{base_version} +%patch -P0 -p1 +%patch -P1 -p1 +# Help generators to recognize Perl scripts +for F in $(find t/ -name '*.t'); do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +# XXX Not run network tests in t/external/*.t +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +make test + +%files +%license Artistic Copying LICENCE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Thu Jul 18 2024 Jitka Plesnikova - 3.15-510 +- Increase release to favour standalone package + +* Fri Jul 12 2024 Michal Josef Špaček - 3.15-505 +- Fix patch macro +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 3.15-504 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 3.15-503 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 3.15-502 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 3.15-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Jitka Plesnikova - 3.15-500 +- Perl 5.38 re-rebuild of bootstrapped packages + +* Tue Jul 11 2023 Jitka Plesnikova - 3.15-499 +- Increase release to favour standalone package + +* Tue Mar 21 2023 Jitka Plesnikova - 3.15-1 +- 3.15 bump + +* Fri Jan 20 2023 Fedora Release Engineering - 3.14-491 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 3.14-490 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 3.14-489 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 3.14-488 +- Increase release to favour standalone package + +* Thu May 12 2022 Jitka Plesnikova - 3.14-1 +- Upgrade to 3.14 as provided in perl-5.35.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 3.13-480 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 3.13-479 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 3.13-478 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 3.13-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 3.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 04 2021 Jitka Plesnikova - 3.13-1 +- 3.13 bump + +* Wed Dec 09 2020 Jitka Plesnikova - 3.12-1 +- 3.12 bump + +* Tue Jul 28 2020 Fedora Release Engineering - 3.11-458 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 3.11-457 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Mon Jun 22 2020 Jitka Plesnikova - 3.11-456 +- Increase release to favour standalone package + +* Thu Jan 30 2020 Fedora Release Engineering - 3.11-441 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 3.11-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 3.11-439 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Thu May 30 2019 Jitka Plesnikova - 3.11-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 3.11-419 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 3.11-418 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 30 2018 Jitka Plesnikova - 3.11-417 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Wed Jun 27 2018 Jitka Plesnikova - 3.11-416 +- Increase release to favour standalone package + +* Fri Feb 09 2018 Fedora Release Engineering - 3.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Dec 12 2017 Petr Pisar - 3.11-2 +- Require Digest::MD5 for APOP login method + +* Wed Nov 15 2017 Petr Pisar - 3.11-1 +- 3.11 bump + +* Thu Jul 27 2017 Fedora Release Engineering - 3.10-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 3.10-394 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Sat Jun 03 2017 Jitka Plesnikova - 3.10-393 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Sep 16 2016 Petr Pisar - 3.10-2 +- Net::libnetFAQ document replaced with a hyper link because of the Artistic + license (CPAN RT#117888) + +* Mon Aug 01 2016 Jitka Plesnikova - 3.10-1 +- 3.10 bump + +* Wed Jul 27 2016 Petr Pisar - 3.09-2 +- Fix blocking in Net::FTP and other subclasses (bug #1360610) + +* 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 +- 3.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) diff --git a/sources b/sources new file mode 100644 index 0000000..65a0256 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libnet-3.15.tar.gz) = 8ae71a32e350b73d97eed87f51507e7c88fb37501b66a5c118cee894de664e6728444950dc32a3ca4b2c4e47974b8e90b5747cceff266fda46575fd995bedcf6