Migrate from Module::Build to ExtUtils::MakeMaker

This commit is contained in:
Petr Písař 2016-07-12 13:52:58 +02:00
parent ed0aaef2cd
commit 8f49fa96f4

View File

@ -1,6 +1,6 @@
Name: perl-IO-Socket-IP
Version: 0.37
Release: 366%{?dist}
Release: 367%{?dist}
Summary: Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
License: GPL+ or Artistic
Group: Development/Libraries
@ -8,11 +8,11 @@ URL: http://search.cpan.org/dist/IO-Socket-IP/
Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(strict)
BuildRequires: perl(Module::Build)
BuildRequires: perl(warnings)
BuildRequires: perl(ExtUtils::MakeMaker)
# Runtime
BuildRequires: perl(base)
BuildRequires: perl(Carp)
@ -21,6 +21,8 @@ BuildRequires: perl(Errno)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(POSIX)
BuildRequires: perl(Socket) >= 1.97
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Tests only
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Test::More)
@ -42,17 +44,18 @@ arguments and methods are provided in a backward-compatible way.
%setup -q -n IO-Socket-IP-%{version}
%build
perl Build.PL installdirs=vendor
./Build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
./Build install destdir=%{buildroot} create_packlist=0
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*
%check
# Don't do the live test
rm -f t/21nonblocking-connect-internet.t
./Build test
make test
%files
%license LICENSE
@ -61,6 +64,9 @@ rm -f t/21nonblocking-connect-internet.t
%{_mandir}/man3/*
%changelog
* Tue Jul 12 2016 Petr Pisar <ppisar@redhat.com> - 0.37-367
- Migrate from Module::Build to ExtUtils::MakeMaker
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-366
- Perl 5.24 re-rebuild of bootstrapped packages