RPM spec %post doesn't execute in rpmbuild
问题 Given the minimal RPM spec file, that should only execute a %post stanza: $ cat ~/RPMBUILD/SPECS/test.spec Name: None Version: 1.0 Release: 1 Summary: Bla License: Proprietary %description Bla %prep %build %install %clean %post echo ">>> Inside post <<<" %files However, the echo from the %post is not executed: $ rpmbuild -v -bb ~/RPMBUILD/SPECS/test.spec Executing(%prep): /bin/sh -e /home/ronbarak/RPMBUILD/tmp/rpm-tmp.IvhCZs + umask 022 + cd /home/ronbarak/RPMBUILD/BUILD + LANG=C + export