Install rpmbuild on Fedora.
Use $HOME instead of ~ (the latter will not be expanded here).