Use make_* macros

This commit is contained in:
Jitka Plesnikova 2020-02-24 16:34:07 +01:00
parent 4ec66ffd2a
commit a47ecc48ce

View File

@ -7,8 +7,8 @@ URL: https://metacpan.org/release/libxml-perl
Source0: https://cpan.metacpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires: perl(:VERSION) >= 5.5.0
@ -37,12 +37,12 @@ others.
%setup -q -n libxml-perl-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
chmod -R u+w %{buildroot}/*
%{make_install}
%{_fixperms} %{buildroot}/*
%check
make test