Use make_* macros

epel9
Jitka Plesnikova 5 years ago
parent 6e448d0e4a
commit 68297f5f7c

@ -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

Loading…
Cancel
Save