I executed the following on xyz-3.0.rpm: $ rpm -qi --scripts ~/xyz-3.0.rpm > list
Now here's what list showed: $ cat list
postinstall scriptlet (/bin/sh): rm /opt/xyz/config/appkey.cfg /opt/xyz/bin/setup
Now I see that the setup script was not added properly, and options are missing. It should have been called with a -i argument.
To fix this, my hunch was to go and search the .spec file which generates this rpm but within the spec file I did not see any setup script being called.
I believe I am looking into the right spec file but I don't see the setup script being called.
Is there a way I can extract the spec file from xyz-3.0.rpm? Or maybe modify the specfile to have setup run with -i argument?