findutils, %post:
/usr/local/RPMS> rpm -qp --scripts findutils-4.1.1-7mdk.i586.rpm
postinstall script (through /bin/sh):
%_install_ifo find.info
preuninstall script (through /bin/sh):
if [ "$1" = "0" ];then /sbin/install-info \
/usr/share/info/find.info.bz2 --dir=/usr/share/info/dir --remove ;fi
gcc-cpp, %preun:
/usr/local/RPMS> rpm -q --scripts gcc-cpp-2.95.2-9mdk
postinstall script (through /bin/sh):
/sbin/ldconfig
/sbin/install-info /usr/share/info/cpp.info.bz2 --dir=/usr/share/info/dir;
preuninstall script (through /bin/sh):
if [ "$1" = "0" ];then /sbin/install-info \
/usr/share/info/cpp.info.bz2 --dir=/usr/share/info/dir --remove ;fi/sbin/ldconfig
(What's happening there, IMHO, is a problem with the %_remove_install_info
macro. Anything on the _next_ line gets appended to it. Enclosing the
macro (with argument) in braces or padding an extra line is needed here.)
--
Anton Graham GPG ID: 0x18F78541
<[EMAIL PROTECTED]> RSA key available upon request
"I got everybody to pay up front...then I blew up their planet."
"Now why didn't I think of that?"
-- Post Bros. Comics