Create Data Directory
Your installation of the RPM Development Environment requires a data directory to house all of the sources, patches, spec files, and built RPMs.
cd /path/to/www
mkdir -p rpm/{build_logs,SOURCES,SPECS,TMPSRC}
When creating the following directories update distrodir to match the distribution directory.
mkdir -p rpm/base/distrodir
mkdir -p rpm/updates/distrodir
mkdir -p SRPMS/distrodir/{base,updates}
You also want to make sure that the apache user has write access to certain directories
chgrp apachegrp rpm/{SOURCES,SPECS,TMPSRC}
chmod g+w rpm/{SOURCES,SPECS,TMPSRC}
