Bug 203772

Summary: rpm cannot install .src.rpm due to missing /usr/src/redhat
Product: [Fedora] Fedora Reporter: Will Woods <wwoods>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-23 18:29:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Will Woods 2006-08-23 17:45:30 UTC
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.

Comment 1 Will Woods 2006-08-23 18:29:38 UTC
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: 
 mkdir /usr/src/redhat
and try again.