I'm working in ClearOS5.3, with rpm 4.4 installed. I'm using rpm to distribute a module I created, however the %post
script in my spec file isn't executed when I install the package.
I'm using the command rpmbuild -ba mypackage.spec
to build the rpm, and the command rpm -ivh mypackage-version-release.rpm
to install the package.
Installation is performed manually (not using make
) in the %install script. All the files seem to be installed in the correct places, however none of the install scripts run (specifically %post
and %preun
, in the case of my package). Testing with other install scripts (%pre
) showed those sections didn't work either.
From what I can tell based on installing the package in debug mode, the %pretrans
and %posttrans
scripts are run. Additionally, when building the package, it recognizes the the install scripts and lists their dependencies (/bin/sh
).
Does anyone have an idea as to why these install scripts might not be running and have suggestions to fix the issue?