Red Hat Bugzilla – Bug 203772
rpm cannot install .src.rpm due to missing /usr/src/redhat
Last modified: 2007-11-30 17:11:41 EST
rpm is normally able to install .src.rpm files. However the rpm package does not
own /usr/src/redhat - rpm-build does.
Without this directory, attempting to install a .src.rpm fails with:
error: cannot create %sourcedir /usr/src/redhat/SOURCES
Creating /usr/src/redhat allows the .src.rpm to be installed.
This bug has been present since FC5.
Solution: install rpm-build. You need this to do anything useful with the
contents of the .src.rpm anyway.
If you don't want to wait that long, just do:
and try again.