Show message(s) before/during rpm installation
Hi,
I have an rpm in both 32bit and 64bit versions. I have the below requests from my client:
1. When a 32bit rpm is being installed on a 64bit OS (and vice versa), we must get a meaningful message instead of failed dependencies
2. When a 32bit rpm is installed, the 64bit rpm installation (and vice versa) must fail instead of replacing the files from 32bit installation (and vice versa).
For 1, I tried using a script in %pre section to display a warning message. However, the failed dependencies message appears even before that. My spec file does not explicitly add any "Requires" packages. Is there a way I can provide a warning message based on the rpm and OS architectures?
What can be done for 2?
Thanks.
|