From Fedora Project Wiki

Building RPM packages

Prerequisites

We need to have some tools installed

yum install rpm-build rpmdevtools

That's all so far, the rest will follow after the classroom