I have this spec file that will install numerous rpm packages such as apache, mysql, etc. I'm new to building rpms and I did looked at the Fedora documentation but I did not find the answer to my question.
How do I add commands in my spec file so that if I do a:
rpm -e yum erase
it will stop services that wasn't stopped during yum erase/rpm-e?