b6120d
# Run optional test
b6120d
%if ! (0%{?rhel})
b6120d
%bcond_without perl_libnet_enables_optional_test
b6120d
%else
b6120d
%bcond_with perl_libnet_enables_optional_test
b6120d
%endif
b6120d
# SASL support
b6120d
%bcond_without perl_libnet_enables_sasl
b6120d
# SSL support
b6120d
%bcond_without perl_libnet_enables_ssl
b6120d
b6120d
Name:           perl-libnet
b6120d
Version:        3.13
b6120d
Release:        4%{?dist}
b6120d
Summary:        Perl clients for various network protocols
b6120d
License:        GPL+ or Artistic
b6120d
URL:            https://metacpan.org/release/libnet
b6120d
Source0:        https://cpan.metacpan.org/authors/id/S/SH/SHAY/libnet-%{version}.tar.gz
b6120d
# Convert Changes to UTF-8
b6120d
Patch0:         libnet-3.09-Normalize-Changes-encoding.patch
b6120d
# Do not create Net/libnet.cfg, bug #1238689
b6120d
Patch1:         libnet-3.08-Do-not-create-Net-libnet.cfg.patch
b6120d
BuildArch:      noarch
b6120d
BuildRequires:  coreutils
b6120d
BuildRequires:  make
b6120d
BuildRequires:  perl-generators
b6120d
BuildRequires:  perl-interpreter
b6120d
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
b6120d
# Getopt::Std not used because of Do-not-create-Net-libnet.cfg.patch
b6120d
# IO::File not used because of Do-not-create-Net-libnet.cfg.patch
b6120d
BuildRequires:  perl(strict)
b6120d
BuildRequires:  perl(warnings)
b6120d
# Run-time:
b6120d
BuildRequires:  perl(Carp)
b6120d
BuildRequires:  perl(constant)
b6120d
# Convert::EBCDIC not used
b6120d
BuildRequires:  perl(Errno)
b6120d
BuildRequires:  perl(Exporter)
b6120d
BuildRequires:  perl(Fcntl)
b6120d
# File::Basename not used at tests
b6120d
BuildRequires:  perl(FileHandle)
b6120d
BuildRequires:  perl(IO::Select)
b6120d
BuildRequires:  perl(IO::Socket) >= 1.05
b6120d
# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET
b6120d
# IO::Socket::INET6 not used
b6120d
BuildRequires:  perl(IO::Socket::IP) >= 0.25
b6120d
BuildRequires:  perl(POSIX)
b6120d
BuildRequires:  perl(Socket) >= 2.016
b6120d
BuildRequires:  perl(Symbol)
b6120d
BuildRequires:  perl(Time::Local)
b6120d
# Optional run-time:
b6120d
# Authen::SASL not used at tests
b6120d
# Digest::MD5 not used at tests
b6120d
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
b6120d
# Core modules must be built without non-core dependencies
b6120d
BuildRequires:  perl(IO::Socket::SSL) >= 2.007
b6120d
%endif
b6120d
# MD5 not used because we prefer Digest::MD5
b6120d
# MIME::Base64 not used at tests
b6120d
# Tests:
b6120d
BuildRequires:  perl(Config)
b6120d
BuildRequires:  perl(Cwd)
b6120d
BuildRequires:  perl(File::Temp)
b6120d
BuildRequires:  perl(IO::File)
b6120d
BuildRequires:  perl(Test::More)
b6120d
%if %{with perl_libnet_enables_optional_test}
b6120d
# Optional tests:
b6120d
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
b6120d
# Core modules must be built without non-core dependencies
b6120d
BuildRequires:  perl(IO::Socket::SSL::Utils)
b6120d
%endif
b6120d
# Test::CPAN::Changes not used
b6120d
# Test::Perl::Critic not used
b6120d
# Test::Pod 1.00 not used
b6120d
# Test::Pod::Coverage 0.08 not used
b6120d
%endif
b6120d
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b6120d
Requires:       perl(File::Basename)
b6120d
Requires:       perl(IO::Socket) >= 1.05
b6120d
# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET
b6120d
Requires:       perl(IO::Socket::IP) >= 0.25
b6120d
Requires:       perl(POSIX)
b6120d
Requires:       perl(Socket) >= 2.016
b6120d
# Optional run-time:
b6120d
# Core modules must be built without non-core dependencies
b6120d
%if %{with perl_libnet_enables_sasl} && !%{defined perl_bootstrap}
b6120d
Suggests:       perl(Authen::SASL)
b6120d
Suggests:       perl(MIME::Base64)
b6120d
%endif
b6120d
# Digest::MD5 or MD5
b6120d
Requires:       perl(Digest::MD5)
b6120d
%if %{with perl_libnet_enables_ssl} && !%{defined perl_bootstrap}
b6120d
Suggests:       perl(IO::Socket::SSL) >= 2.007
b6120d
%endif
b6120d
Conflicts:      perl < 4:5.22.0-347
b6120d
b6120d
# Filter under-specified dependencies
b6120d
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((IO::Socket|Socket)\\)$
b6120d
b6120d
%description
b6120d
This is a collection of Perl modules which provides a simple and
b6120d
consistent programming interface (API) to the client side of various
b6120d
protocols used in the internet community.
b6120d
b6120d
%prep
b6120d
%setup -q -n libnet-%{version}
b6120d
%patch0 -p1
b6120d
%patch1 -p1
b6120d
b6120d
%build
b6120d
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 
b6120d
%{make_build}
b6120d
b6120d
%install
b6120d
%{make_install}
b6120d
%{_fixperms} $RPM_BUILD_ROOT/*
b6120d
b6120d
%check
b6120d
make test
b6120d
b6120d
%files
b6120d
%license Artistic Copying LICENCE
b6120d
%doc Changes README
b6120d
%{perl_vendorlib}/*
b6120d
%{_mandir}/man3/*
b6120d
b6120d
%changelog
b6120d
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.13-4
b6120d
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
b6120d
  Related: rhbz#1991688
b6120d
b6120d
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.13-3
b6120d
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
b6120d
b6120d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-2
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b6120d
b6120d
* Mon Jan 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.13-1
b6120d
- 3.13 bump
b6120d
b6120d
* Wed Dec 09 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.12-1
b6120d
- 3.12 bump
b6120d
b6120d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-458
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b6120d
b6120d
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-457
b6120d
- Perl 5.32 re-rebuild of bootstrapped packages
b6120d
b6120d
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-456
b6120d
- Increase release to favour standalone package
b6120d
b6120d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-441
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b6120d
b6120d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-440
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b6120d
b6120d
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-439
b6120d
- Perl 5.30 re-rebuild of bootstrapped packages
b6120d
b6120d
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-438
b6120d
- Increase release to favour standalone package
b6120d
b6120d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-419
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b6120d
b6120d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-418
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b6120d
b6120d
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-417
b6120d
- Perl 5.28 re-rebuild of bootstrapped packages
b6120d
b6120d
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.11-416
b6120d
- Increase release to favour standalone package
b6120d
b6120d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b6120d
b6120d
* Tue Dec 12 2017 Petr Pisar <ppisar@redhat.com> - 3.11-2
b6120d
- Require Digest::MD5 for APOP login method
b6120d
b6120d
* Wed Nov 15 2017 Petr Pisar <ppisar@redhat.com> - 3.11-1
b6120d
- 3.11 bump
b6120d
b6120d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10-395
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b6120d
b6120d
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-394
b6120d
- Perl 5.26 re-rebuild of bootstrapped packages
b6120d
b6120d
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-393
b6120d
- Perl 5.26 rebuild
b6120d
b6120d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10-3
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b6120d
b6120d
* Fri Sep 16 2016 Petr Pisar <ppisar@redhat.com> - 3.10-2
b6120d
- Net::libnetFAQ document replaced with a hyper link because of the Artistic
b6120d
  license (CPAN RT#117888)
b6120d
b6120d
* Mon Aug 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-1
b6120d
- 3.10 bump
b6120d
b6120d
* Wed Jul 27 2016 Petr Pisar <ppisar@redhat.com> - 3.09-2
b6120d
- Fix blocking in Net::FTP and other subclasses (bug #1360610)
b6120d
b6120d
* Wed Jul 20 2016 Petr Pisar <ppisar@redhat.com> - 3.09-1
b6120d
- 3.09 bump
b6120d
b6120d
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-366
b6120d
- Perl 5.24 re-rebuild of bootstrapped packages
b6120d
b6120d
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-365
b6120d
- Increase release to favour standalone package
b6120d
b6120d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.08-2
b6120d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b6120d
b6120d
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 3.08-1
b6120d
- 8.08 bump
b6120d
b6120d
* Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 3.07-1
b6120d
- 3.07 bump
b6120d
b6120d
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 3.06-1
b6120d
- Specfile autogenerated by cpanspec 1.78.
b6120d
- Do not create Net/libnet.cfg (bug #1238689)