perl-IO-Socket-IP/perl-IO-Socket-IP.spec

74 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:12:31 -04:00
Name: perl-IO-Socket-IP
2021-01-29 11:18:51 +08:00
Version: 0.41
Release: 2
2019-09-30 11:12:31 -04:00
Summary: Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
License: GPL+ or Artistic-1.0
2019-09-30 11:12:31 -04:00
URL: https://metacpan.org/release/IO-Socket-IP
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
2021-01-29 11:18:51 +08:00
Source1: Makefile.PL
2019-09-30 11:12:31 -04:00
BuildArch: noarch
#For Build
BuildRequires: coreutils findutils make perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
# For Runtime
BuildRequires: perl(base) perl(Carp) perl(constant) perl(Errno) perl(IO::Socket) perl(POSIX) perl(Socket) >= 1.97 perl(strict) perl(warnings)
# For Test
2019-11-06 19:46:14 +08:00
BuildRequires: perl(IO::Socket::INET) perl(Test::More) perl(Test::Pod) >= 1.00
2019-09-30 11:12:31 -04:00
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
%description
This module provides a protocol-independent way to use IPv4 and IPv6
sockets, intended as a replacement for the IO::Socket::INET manpage. Most
constructor arguments and methods are provided in a backward-compatible
way.
%package_help
%prep
%autosetup -n IO-Socket-IP-%{version} -p1
2021-01-29 11:18:51 +08:00
cp %{SOURCE1} .
2019-09-30 11:12:31 -04:00
chmod -x lib/IO/Socket/IP.pm
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
rm -f t/31nonblocking-connect-internet.t
make test
2019-09-30 11:12:31 -04:00
%files
%license LICENSE
%doc Changes examples
%{perl_vendorlib}/*
%files help
%doc README
%{_mandir}/man3/*
%changelog
* Mar Thu 04 2021 wuchaochao <wuchaochao4@huawei.com> - 0.41-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Modify the spec file ,solving the problem of the test probability failure
2021-01-29 11:18:51 +08:00
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 0.41-1
- upgrade version to 0.41
2019-11-06 19:46:14 +08:00
* Sat Oct 26 2019 shenyangyang <shenyangyang4@huawei.com> - 0.39-420
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete unneeded build requires of perl(Socket6)
2019-09-30 11:12:31 -04:00
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.39-419
- Package init