I have built two RPM packages
proj1-1.0-1.x86_64.rpm
libtest1-1.0-1.x86_64.rpm
proj1 depends on
proj1
I ran into this and what worked for me was to run yum localinstall enterPkgNameHere.rpm from inside the directory where the .rpm file is located.
yum localinstall enterPkgNameHere.rpm
Note: replace the enterPkgNameHere.rpm with the name of your .rpm file.
enterPkgNameHere.rpm