Re: rpmbuild building src rpm
It sounds as if you haven't installed all the necessary packages.
This is CentOS but see if you have the rpm-build (note the dash) installed.
When a command, or even a shared object (for example, if you get a message thislib.so.3 not found) is missing, one way to find it is
yum provides */<missing_file>, for example, in this instance, yum provides */rpm-build. (One way to make the search go a bit more quickly is to just use the main Fedora repo for the search, especially if it's a common file, otherwise, it will search all repos that you usually use. So, for example
yum --disablerepo=* --enablerepo=fedora provides */rpmbuild
In this case, the rpm-build package provides rpmbuild.
Just doublechecked on F18, and it's still the rpm-build package.
So yum install rpm-build should fix that for you.
Last edited by smr54; 9th December 2012 at 12:36 PM.