Optimize file removal for compatibility library

This commit is contained in:
Björn Esser 2019-01-24 09:29:52 +01:00
parent d20cc408d6
commit 989ff674f4
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -110,7 +110,7 @@ fi \
Name: libxcrypt Name: libxcrypt
Version: 4.4.2 Version: 4.4.2
Release: 7%{?dist} Release: 8%{?dist}
Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others
# For explicit license breakdown, see the # For explicit license breakdown, see the
@ -284,19 +284,17 @@ popd
%make_install -C %{_vpath_builddir}-compat %make_install -C %{_vpath_builddir}-compat
# Cleanup everything we do not need from the compatibility library. # Cleanup everything we do not need from the compatibility library.
%{__rm} -fr %{buildroot}%{_bindir} \ %{_bindir}/find %{buildroot} -xtype f -not -name 'libcrypt.so.%{csoc}*' \
%{buildroot}%{_includedir} \ -delete -print
%{buildroot}/%{_lib}/lib{,x}crypt.{a,so} \ %{_bindir}/find %{buildroot} -type l -not -name 'libcrypt.so.%{csoc}*' \
%{buildroot}%{_libdir}/pkgconfig \ -delete -print
%{buildroot}%{_mandir} \
%{buildroot}%{_sbindir}
%endif %endif
# Install the default system library. # Install the default system library.
%make_install -C %{_vpath_builddir} %make_install -C %{_vpath_builddir}
# Get rid of libtool crap. # Get rid of libtool crap.
%{_bindir}/find %{buildroot} -name '*.la' -print -delete %{_bindir}/find %{buildroot} -name '*.la' -delete -print
# Install documentation to shared %%_pkgdocdir. # Install documentation to shared %%_pkgdocdir.
%{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \ %{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \
@ -378,6 +376,9 @@ done
%changelog %changelog
* Thu Jan 24 2019 Björn Esser <besser82@fedoraproject.org> - 4.4.2-8
- Optimize file removal for compatibility library
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 4.4.2-7 * Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 4.4.2-7
- Add two upstream patches to fix build with GCC 9 - Add two upstream patches to fix build with GCC 9