Optimize file removal during bootstrap

This commit is contained in:
Björn Esser 2019-01-24 09:42:47 +01:00
parent cb399c6829
commit e193474db4
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -114,9 +114,10 @@ popd
%install
%if 0%{?bootstrap}
%make_install -C bootstrap_ver
%{__rm} -fr %{buildroot}%{_includedir}/%{name} \
%{buildroot}%{_libdir}/lib%{name}.so \
%{buildroot}%{_libdir}/pkgconfig
%{_bindir}/find %{buildroot} -xtype f -not \
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
%{_bindir}/find %{buildroot} -type l -not \
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
%endif
%make_install