Use make_build macro

This commit is contained in:
Jitka Plesnikova 2020-02-04 09:01:44 +01:00
parent 8bee1c5271
commit 4231ab6846

View File

@ -49,12 +49,12 @@ perl -pi -e 's|^#!perl\b|#!%{__perl}|' \
examples/{benchmk{2,3},primes,SetObject}.pl
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{make_install}
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
%{_fixperms} %{buildroot}/*