2023-03-21 13:44:42 +00:00
|
|
|
%global base_version 3.15
|
2022-05-12 07:56:39 +00:00
|
|
|
|
2017-12-12 10:33:34 +00:00
|
|
|
# Run optional test
|
2018-04-09 08:19:48 +00:00
|
|
|
%if ! (0%{?rhel})
|
2017-12-12 10:33:34 +00:00
|
|
|
%bcond_without perl_libnet_enables_optional_test
|
2018-04-09 08:19:48 +00:00
|
|
|
%else
|
|
|
|
%bcond_with perl_libnet_enables_optional_test
|
|
|
|
%endif
|
2017-12-12 10:33:34 +00:00
|
|
|
# SASL support
|
|
|
|
%bcond_without perl_libnet_enables_sasl
|
|
|
|
# SSL support
|
|
|
|
%bcond_without perl_libnet_enables_ssl
|
|
|
|
|
2015-07-10 10:59:52 +00:00
|
|
|
Name: perl-libnet
|
2023-03-21 13:44:42 +00:00
|
|
|
Version: 3.15
|
2023-07-21 03:47:45 +00:00
|
|
|
Release: 501%{?dist}
|
2015-07-10 10:59:52 +00:00
|
|
|
Summary: Perl clients for various network protocols
|
2022-12-20 16:09:41 +00:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
2018-06-04 13:14:05 +00:00
|
|
|
URL: https://metacpan.org/release/libnet
|
2022-05-12 07:56:39 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHAY/libnet-%{base_version}.tar.gz
|
2015-07-10 10:59:52 +00:00
|
|
|
# Convert Changes to UTF-8
|
2016-07-20 06:16:17 +00:00
|
|
|
Patch0: libnet-3.09-Normalize-Changes-encoding.patch
|
2015-07-10 11:05:42 +00:00
|
|
|
# Do not create Net/libnet.cfg, bug #1238689
|
2016-01-06 08:42:23 +00:00
|
|
|
Patch1: libnet-3.08-Do-not-create-Net-libnet.cfg.patch
|
2015-07-10 10:59:52 +00:00
|
|
|
BuildArch: noarch
|
2016-09-16 12:58:21 +00:00
|
|
|
BuildRequires: coreutils
|
2015-07-10 10:59:52 +00:00
|
|
|
BuildRequires: make
|
2016-06-24 07:53:37 +00:00
|
|
|
BuildRequires: perl-generators
|
2017-11-15 08:09:37 +00:00
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2015-07-10 11:05:42 +00:00
|
|
|
# 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
|
2015-07-10 10:59:52 +00:00
|
|
|
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
|
2016-07-20 06:16:17 +00:00
|
|
|
BuildRequires: perl(IO::Socket::IP) >= 0.25
|
2015-07-10 10:59:52 +00:00
|
|
|
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
|
2017-12-12 10:33:34 +00:00
|
|
|
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
|
2016-07-20 06:16:17 +00:00
|
|
|
# Core modules must be built without non-core dependencies
|
2015-07-10 10:59:52 +00:00
|
|
|
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)
|
2015-07-10 11:05:42 +00:00
|
|
|
BuildRequires: perl(IO::File)
|
2015-07-10 10:59:52 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2017-12-12 10:33:34 +00:00
|
|
|
%if %{with perl_libnet_enables_optional_test}
|
2015-07-10 10:59:52 +00:00
|
|
|
# Optional tests:
|
2017-12-12 10:33:34 +00:00
|
|
|
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
|
2016-07-20 06:16:17 +00:00
|
|
|
# Core modules must be built without non-core dependencies
|
2015-07-10 10:59:52 +00:00
|
|
|
BuildRequires: perl(IO::Socket::SSL::Utils)
|
|
|
|
%endif
|
2017-12-12 10:33:34 +00:00
|
|
|
%endif
|
2015-07-10 10:59:52 +00:00
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(IO::Socket) >= 1.05
|
|
|
|
# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET
|
2016-07-20 06:16:17 +00:00
|
|
|
Requires: perl(IO::Socket::IP) >= 0.25
|
2015-07-10 10:59:52 +00:00
|
|
|
Requires: perl(POSIX)
|
|
|
|
Requires: perl(Socket) >= 2.016
|
2016-07-20 06:16:17 +00:00
|
|
|
# Optional run-time:
|
|
|
|
# Core modules must be built without non-core dependencies
|
2017-12-12 10:33:34 +00:00
|
|
|
%if %{with perl_libnet_enables_sasl} && !%{defined perl_bootstrap}
|
2016-07-20 06:16:17 +00:00
|
|
|
Suggests: perl(Authen::SASL)
|
2017-12-12 10:33:34 +00:00
|
|
|
Suggests: perl(MIME::Base64)
|
2016-07-20 06:16:17 +00:00
|
|
|
%endif
|
2017-12-12 10:39:31 +00:00
|
|
|
# Digest::MD5 or MD5
|
|
|
|
Requires: perl(Digest::MD5)
|
2017-12-12 10:33:34 +00:00
|
|
|
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
|
2016-07-20 06:16:17 +00:00
|
|
|
Suggests: perl(IO::Socket::SSL) >= 2.007
|
|
|
|
%endif
|
2015-07-10 10:59:52 +00:00
|
|
|
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
|
2022-05-12 07:56:39 +00:00
|
|
|
%setup -q -n libnet-%{base_version}
|
2015-07-10 10:59:52 +00:00
|
|
|
%patch0 -p1
|
2015-07-10 11:05:42 +00:00
|
|
|
%patch1 -p1
|
2015-07-10 10:59:52 +00:00
|
|
|
|
|
|
|
%build
|
2020-12-09 12:19:03 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 </dev/null
|
|
|
|
%{make_build}
|
2015-07-10 10:59:52 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-09 12:19:03 +00:00
|
|
|
%{make_install}
|
2015-07-10 10:59:52 +00:00
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license Artistic Copying LICENCE
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2023-07-21 03:47:45 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.15-501
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-12 11:32:00 +00:00
|
|
|
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.15-500
|
|
|
|
- Perl 5.38 re-rebuild of bootstrapped packages
|
|
|
|
|
2023-07-11 07:37:11 +00:00
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.15-499
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2023-03-21 13:44:42 +00:00
|
|
|
* Tue Mar 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.15-1
|
|
|
|
- 3.15 bump
|
|
|
|
|
2023-01-20 08:02:03 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-491
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 12:54:25 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-490
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-03 10:01:43 +00:00
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.14-489
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
2022-05-30 13:41:56 +00:00
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.14-488
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2022-05-12 07:56:39 +00:00
|
|
|
* Thu May 12 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.14-1
|
|
|
|
- Upgrade to 3.14 as provided in perl-5.35.11
|
|
|
|
|
2022-01-21 07:00:52 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-480
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-27 07:08:07 +00:00
|
|
|
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-479
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-24 08:13:13 +00:00
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.13-478
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
2021-05-21 07:58:41 +00:00
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.13-477
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2021-01-27 06:08:52 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-04 13:29:51 +00:00
|
|
|
* Mon Jan 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.13-1
|
|
|
|
- 3.13 bump
|
|
|
|
|
2020-12-09 12:19:03 +00:00
|
|
|
* Wed Dec 09 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.12-1
|
|
|
|
- 3.12 bump
|
|
|
|
|
2020-07-28 20:24:31 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-458
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-26 16:31:26 +00:00
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-457
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
2020-06-22 11:40:54 +00:00
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-456
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2020-01-30 06:30:58 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-441
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 08:24:32 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-440
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-02 20:54:35 +00:00
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-439
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
2019-05-30 08:59:44 +00:00
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-438
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2019-02-02 01:55:29 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-419
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 20:59:04 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-418
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-30 21:06:06 +00:00
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-417
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
2018-06-27 00:17:35 +00:00
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-416
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2018-02-09 02:42:21 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-12 10:39:31 +00:00
|
|
|
* Tue Dec 12 2017 Petr Pisar <ppisar@redhat.com> - 3.11-2
|
|
|
|
- Require Digest::MD5 for APOP login method
|
|
|
|
|
2017-11-15 08:09:37 +00:00
|
|
|
* Wed Nov 15 2017 Petr Pisar <ppisar@redhat.com> - 3.11-1
|
|
|
|
- 3.11 bump
|
|
|
|
|
2017-07-27 07:13:38 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10-395
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-07 15:09:49 +00:00
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-394
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
2017-06-03 10:57:25 +00:00
|
|
|
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-393
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 06:13:22 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-09-16 12:58:21 +00:00
|
|
|
* Fri Sep 16 2016 Petr Pisar <ppisar@redhat.com> - 3.10-2
|
|
|
|
- Net::libnetFAQ document replaced with a hyper link because of the Artistic
|
|
|
|
license (CPAN RT#117888)
|
|
|
|
|
2016-08-01 13:15:49 +00:00
|
|
|
* Mon Aug 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-1
|
|
|
|
- 3.10 bump
|
|
|
|
|
2016-07-27 11:35:15 +00:00
|
|
|
* Wed Jul 27 2016 Petr Pisar <ppisar@redhat.com> - 3.09-2
|
|
|
|
- Fix blocking in Net::FTP and other subclasses (bug #1360610)
|
|
|
|
|
2016-07-20 06:16:17 +00:00
|
|
|
* Wed Jul 20 2016 Petr Pisar <ppisar@redhat.com> - 3.09-1
|
|
|
|
- 3.09 bump
|
|
|
|
|
2016-05-18 14:45:01 +00:00
|
|
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-366
|
|
|
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
|
|
2016-05-14 10:23:57 +00:00
|
|
|
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-365
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2016-02-04 16:48:45 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.08-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-06 08:42:23 +00:00
|
|
|
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 3.08-1
|
2022-05-12 07:56:39 +00:00
|
|
|
- 3.08 bump
|
2016-01-06 08:42:23 +00:00
|
|
|
|
2015-07-20 12:38:12 +00:00
|
|
|
* Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 3.07-1
|
|
|
|
- 3.07 bump
|
|
|
|
|
2015-07-10 10:59:52 +00:00
|
|
|
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 3.06-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|
2015-07-10 11:05:42 +00:00
|
|
|
- Do not create Net/libnet.cfg (bug #1238689)
|