From 68297f5f7ccd5fa6527205b944cfa9886fc856ee Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Fri, 19 Jun 2020 19:46:06 +0200 Subject: [PATCH] Use make_* macros --- perl-boolean.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/perl-boolean.spec b/perl-boolean.spec index 28edfa1..8d36323 100644 --- a/perl-boolean.spec +++ b/perl-boolean.spec @@ -6,14 +6,14 @@ License: GPL+ or Artistic URL: https://metacpan.org/release/boolean Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/boolean-%{version}.tar.gz BuildArch: noarch -BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter >= 0:5.005003 BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.5.3 BuildRequires: perl(base) BuildRequires: perl(Config) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::Find) BuildRequires: perl(JSON::MaybeXS) BuildRequires: perl(lib) @@ -22,7 +22,7 @@ BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(threads) BuildRequires: perl(warnings) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Most programming languages have a native Boolean data type. Perl does not. @@ -31,12 +31,11 @@ Most programming languages have a native Boolean data type. Perl does not. %setup -q -n boolean-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -delete +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check