Optimized cleanup after installing compat files into %buildroot

This commit is contained in:
Björn Esser 2022-12-31 23:40:10 +01:00
parent dd21081189
commit a826bb3418
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -465,8 +465,8 @@ popd
%make_install -C %{_vpath_builddir}-compat
# Cleanup everything we do not need from the compatibility library.
find %{buildroot} -xtype f -not -name 'libcrypt.so.%{csoc}*' -delete -print
find %{buildroot} -type l -not -name 'libcrypt.so.%{csoc}*' -delete -print
find %{buildroot} \
-not -type d -not -name 'libcrypt.so.%{csoc}*' -delete -print
%endif
# Install the default system library.