Use make_install macro

This commit is contained in:
Jitka Plesnikova 2020-02-04 09:09:10 +01:00
parent 9cc5364018
commit b13eda4037
1 changed files with 3 additions and 2 deletions

View File

@ -70,11 +70,12 @@ sed -i -e '/^bzlib-src\//d' MANIFEST
find bzlib-src -type f >>MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
%make_install
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot}