rpm -ivh shared-mime-info-0.12-1.src.rpm
This one's easy ... This is a source
RPM file. You need to run it like this:
rpm --rebuild <package_name>.src.rpm
as root from a console. The last few lines of the output will tell you where the 'compiled' RPM is stored. You can then run:
rpm -ivh /path_to/<package_name>.rpm
and everything should be sweet.
I should have mentioned that you need the kernel sources installed to compile SRC.RPM's