From 8f49fa96f466f96a6c0171e13a9030bcd9d23794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Jul 2016 13:52:58 +0200 Subject: [PATCH] Migrate from Module::Build to ExtUtils::MakeMaker --- perl-IO-Socket-IP.spec | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/perl-IO-Socket-IP.spec b/perl-IO-Socket-IP.spec index dccf287..736f474 100644 --- a/perl-IO-Socket-IP.spec +++ b/perl-IO-Socket-IP.spec @@ -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 - 0.37-367 +- Migrate from Module::Build to ExtUtils::MakeMaker + * Wed May 18 2016 Jitka Plesnikova - 0.37-366 - Perl 5.24 re-rebuild of bootstrapped packages