Blame SPECS/perl-libnet.spec

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