| %{?scl:%scl_package perl-libnet} |
| |
| Name: %{?scl_prefix}perl-libnet |
| Version: 3.10 |
| Release: 1%{?dist} |
| Summary: Perl clients for various network protocols |
| License: GPL+ or Artistic |
| Group: Development/Libraries |
| URL: http://search.cpan.org/dist/libnet/ |
| Source0: http://www.cpan.org/authors/id/S/SH/SHAY/libnet-%{version}.tar.gz |
| |
| Patch0: libnet-3.09-Normalize-Changes-encoding.patch |
| |
| Patch1: libnet-3.08-Do-not-create-Net-libnet.cfg.patch |
| BuildArch: noarch |
| BuildRequires: findutils |
| BuildRequires: make |
| BuildRequires: %{?scl_prefix}perl |
| BuildRequires: %{?scl_prefix}perl-generators |
| BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.64 |
| |
| |
| BuildRequires: %{?scl_prefix}perl(strict) |
| BuildRequires: %{?scl_prefix}perl(warnings) |
| |
| BuildRequires: %{?scl_prefix}perl(Carp) |
| BuildRequires: %{?scl_prefix}perl(constant) |
| |
| BuildRequires: %{?scl_prefix}perl(Errno) |
| BuildRequires: %{?scl_prefix}perl(Exporter) |
| BuildRequires: %{?scl_prefix}perl(Fcntl) |
| |
| BuildRequires: %{?scl_prefix}perl(FileHandle) |
| BuildRequires: %{?scl_prefix}perl(IO::Select) |
| BuildRequires: %{?scl_prefix}perl(IO::Socket) >= 1.05 |
| |
| |
| BuildRequires: %{?scl_prefix}perl(IO::Socket::IP) >= 0.25 |
| BuildRequires: %{?scl_prefix}perl(POSIX) |
| BuildRequires: %{?scl_prefix}perl(Socket) >= 2.016 |
| BuildRequires: %{?scl_prefix}perl(Symbol) |
| BuildRequires: %{?scl_prefix}perl(Time::Local) |
| |
| |
| |
| %if !%{defined perl_bootstrap} && !%{defined perl_small} |
| |
| BuildRequires: %{?scl_prefix}perl(IO::Socket::SSL) >= 2.007 |
| %endif |
| |
| |
| |
| BuildRequires: %{?scl_prefix}perl(Config) |
| BuildRequires: %{?scl_prefix}perl(Cwd) |
| BuildRequires: %{?scl_prefix}perl(File::Temp) |
| BuildRequires: %{?scl_prefix}perl(IO::File) |
| BuildRequires: %{?scl_prefix}perl(Test::More) |
| |
| %if !%{defined perl_bootstrap} && !%{defined perl_small} |
| |
| BuildRequires: %{?scl_prefix}perl(IO::Socket::SSL::Utils) |
| %endif |
| |
| |
| |
| |
| Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) |
| Requires: %{?scl_prefix}perl(File::Basename) |
| Requires: %{?scl_prefix}perl(IO::Socket) >= 1.05 |
| |
| Requires: %{?scl_prefix}perl(IO::Socket::IP) >= 0.25 |
| Requires: %{?scl_prefix}perl(POSIX) |
| Requires: %{?scl_prefix}perl(Socket) >= 2.016 |
| Conflicts: %{?scl_prefix}perl < 4:5.22.0-347 |
| |
| |
| %if 0%{?rhel} < 7 |
| |
| %{?filter_setup: |
| %filter_from_requires /^%{?scl_prefix}perl(IO::Socket)/d |
| %filter_from_requires /^%{?scl_prefix}perl(Socket)/d |
| %?perl_default_filter |
| } |
| %else |
| |
| %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\((IO::Socket|Socket)\\)$ |
| %endif |
| |
| %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} |
| %patch0 -p1 |
| %patch1 -p1 |
| |
| %build |
| %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor </dev/null && make %{?_smp_mflags}%{?scl:'} |
| |
| %install |
| %{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'} |
| find $RPM_BUILD_ROOT -type f -name .packlist -delete |
| %{_fixperms} $RPM_BUILD_ROOT/* |
| |
| %check |
| %{?scl:scl enable %{scl} '}make test%{?scl:'} |
| |
| %files |
| %doc Artistic Copying LICENCE |
| %doc Changes README |
| %{perl_vendorlib}/* |
| %{_mandir}/man3/* |
| |
| %changelog |
| * Mon Aug 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.10-1 |
| - 3.10 bump |
| |
| * Wed Jul 27 2016 Petr Pisar <ppisar@redhat.com> - 3.09-3 |
| - Fix blocking in Net::FTP and other subclasses (bug |
| |
| * Wed Jul 20 2016 Petr Pisar <ppisar@redhat.com> - 3.09-2 |
| - SCL |
| |
| * Wed Jul 20 2016 Petr Pisar <ppisar@redhat.com> - 3.09-1 |
| - 3.09 bump |
| |
| * Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-366 |
| - Perl 5.24 re-rebuild of bootstrapped packages |
| |
| * Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.08-365 |
| - Increase release to favour standalone package |
| |
| * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.08-2 |
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
| |
| * Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 3.08-1 |
| - 8.08 bump |
| |
| * Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 3.07-1 |
| - 3.07 bump |
| |
| * Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 3.06-1 |
| - Specfile autogenerated by cpanspec 1.78. |
| - Do not create Net/libnet.cfg (bug |