On my setup, where RPM will be installed, will have a file below:
#cat /etc/setup-details
environment=QA
#
Now, if environment is QA, i want below Requires:
Requires: my-qa-rpm
If environment is dev, i want below Requires:
Requires: my-dev-rpm
How to achieve dynamic Requires in RPM based on environment?