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 %install
%if 0%{?bootstrap} %if 0%{?bootstrap}
%make_install -C bootstrap_ver %make_install -C bootstrap_ver
%{__rm} -fr %{buildroot}%{_includedir}/%{name} \ %{_bindir}/find %{buildroot} -xtype f -not \
%{buildroot}%{_libdir}/lib%{name}.so \ -name 'lib%{name}.so.%{so_ver_old}*' -delete -print
%{buildroot}%{_libdir}/pkgconfig %{_bindir}/find %{buildroot} -type l -not \
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
%endif %endif
%make_install %make_install