Remove backup files from %%configure munging

This commit is contained in:
Josh Stone 2018-08-10 12:41:09 -07:00
parent e5fcf71650
commit 5eabb0b0b3

View File

@ -494,6 +494,9 @@ find %{buildroot}%{_libdir} -maxdepth 1 -type f -name '*.so' \
# Remove installer artifacts (manifests, uninstall scripts, etc.) # Remove installer artifacts (manifests, uninstall scripts, etc.)
find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+' find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+'
# Remove backup files from %%configure munging
find %{buildroot}%{rustlibdir} -type f -name '*.orig' -exec rm -v '{}' '+'
# FIXME: __os_install_post will strip the rlibs # FIXME: __os_install_post will strip the rlibs
# -- should we find a way to preserve debuginfo? # -- should we find a way to preserve debuginfo?