working version of rpm_requires

probably should have written this in python instead of sh...