Use make_build macro
This commit is contained in:
parent
8bee1c5271
commit
4231ab6846
@ -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}/*
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user