On Fri, 2004-08-27 at 02:03, Bob Holtzman wrote:
On Thu, 26 Aug 2004, Paul Howarth wrote:
Thomas E. Dukes wrote:
Oooops, one more question. :-)
If I just rebuilt the source rpm, then I guess I need to build a binary package after I install the newly rebuilt source package, right?
Nope; if you "rpmbuild --rebuild" a src.rpm package you'll just get the binary packages built on your system, no new src.rpm. It would be equivalent to "rpmbuild -bb specfile". If you do "rpmbuild -ba specfile" you'll get a new src.rpm but unless you've edited the specfile, it won't have any significant differences to the src.rpm you started with.
I assume that, since rpmbuild is run against the src.rpm file, the src.rpm file doesn't get installed thereby splitting off the .spec file. Is this correct?
The src.rpm gets installed, then built, then removed. If the build fails the installed src.rpm (i.e. spec, sources, part-built package) is left in your build area and you can look at the spec file etc. to try to figure out what went wrong.
Paul.