Unlike Solaris and Debian packages RPM provides no utility for interactive installation. This seems annoying but it means that the software is installed the same everywhere.
I've seen two methods to work around this:
- You can create several RPMs each packaging the parts of the application. Then to assist the user install the correct parts you can write a wrapper script which prompts for answers and decides which part to install. This is the method taken by OFED.
- The other method I've seen is to install the whole application then provide a setup script which is run afterwards that configures the application. It is important to note that this script should not alter any of the packaged files that aren't marked as configuration, and should keep away from other packages. This method is used for VirtualBox Additions.
Option 1 is the better solution for RPMS as it allows much easier automation by systems administrators.