Merge pull request #3 from dhagberg/master

Agreed, this makes sense. make sure %post section leaves directories emtpy
This commit is contained in:
Jim Perrin 2014-04-03 12:09:34 -05:00
commit 1f96783393

View File

@ -85,16 +85,24 @@ rm -rf /boot
rpm -e MAKEDEV ethtool upstart initscripts iputils policycoreutils iptables \
iproute
# Remove files that are known to take up lots of space but leave
# directories intact since those may be required by new rpms.
# locales
rm -rf /usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
# docs
rm -rf /usr/share/{man,doc,info,gnome/help}
find /usr/{{lib,share}/{i18n,locale},{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive} \
-type f | xargs /bin/rm
# man pages and documentation
find /usr/share/{man,doc,info,gnome/help} \
-type f | xargs /bin/rm
# cracklib
rm -rf /usr/share/cracklib
# i18n
rm -rf /usr/share/i18n
find /usr/share/cracklib \
-type f | xargs /bin/rm
# sln
rm -rf /sbin/sln
rm -f /sbin/sln
# ldconfig
rm -rf /etc/ld.so.cache
rm -rf /var/cache/ldconfig/*