2015-07-10 10:59:52 +00:00
|
|
|
Name: perl-libnet
|
2016-01-06 08:42:23 +00:00
|
|
|
Version: 3.08
|
2015-07-10 10:59:52 +00:00
|
|
|
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
|
|
|
|
# Convert Changes to UTF-8
|
2016-01-06 08:42:23 +00:00
|
|
|
Patch0: libnet-3.08-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
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
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
|
|
|
|
BuildRequires: perl(IO::Socket::IP) >= 0.20
|
|
|
|
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
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Core modules must built without non-core dependencies
|
|
|
|
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)
|
|
|
|
# Optional tests:
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Core modules must built without non-core dependencies
|
|
|
|
BuildRequires: perl(IO::Socket::SSL::Utils)
|
|
|
|
%endif
|
|
|
|
# Test::CPAN::Changes not used
|
|
|
|
# Test::Perl::Critic not used
|
|
|
|
# Test::Pod 1.00 not used
|
|
|
|
# Test::Pod::Coverage 0.08 not used
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(IO::Socket) >= 1.05
|
|
|
|
# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET
|
|
|
|
Requires: perl(IO::Socket::IP) >= 0.20
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
Requires: perl(Socket) >= 2.016
|
|
|
|
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
|
|
|
|
%setup -q -n libnet-%{version}
|
|
|
|
%patch0 -p1
|
2015-07-10 11:05:42 +00:00
|
|
|
%patch1 -p1
|
2015-07-10 10:59:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor </dev/null
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license Artistic Copying LICENCE
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2016-01-06 08:42:23 +00:00
|
|
|
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 3.08-1
|
|
|
|
- 8.08 bump
|
|
|
|
|
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)
|