As the subject reads, I wonder whether it is possible in the RPM spec file to make required packages dependent on a condition?
For instance check in a shell statement if
No. You can hand modify the Requires line and turn off autodetection, and then handle what is optional as needed.
Requires