You will need to install the following dependencies for build rpms (Fedora Linux):
sudo dnf install fedora-packager rpmdevtools gcc