Blame SPECS/perl-libnet.spec

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