I am trying to build an RPM, which has two BuildRequires items; the first is a repository RPM, which is the source of the 2nd RPM. The second BuildRequires item is obviously dependent on the first repository one being installed but the two are being installed together hence the second RPM is not sourced from the required repository as it is not yet installed. Can I configure so the first is installed before trying to install the second?
BuildRequires: source-for-second-rpm
BuildRequires: second-rpm
....
Getting requirements for /root/rpmbuild/SPECS/stuff.spec
--> source-for-second-rpm
--> 1:second-rpm < this is not the correct version as above not yet installed
....
Installing:
second-rpm sourced-from-other-repository!
source-for-second-rpm sourced-correctly
This means that the dependencies are not correctly set in those two rpms.
Normally second-rpm should Requires
source-for-second-rpm, which is obviously not the case. If those requirements were set correctly, the rpms would have been installed in the correct order.