Yakov <iler.ml DeleteThis @gmail.com> wrote:
> Which option of 'rpmbuild --rebuilt' tells it not to erase
> sources and objects in the end ?
'rpmbuild --rebuild' (not "--rebuilt") is documented as follows
(see 'man rpmbuild'):
rpmbuild --rebuild|--recompile SOURCEPKG ...
When invoked this way, rpmbuild installs the named source package, and
does a prep, compile and install. In addition, --rebuild builds a new
binary package. When the build has completed, the build directory is
removed (as in --clean) and the the sources and spec file for the
package are removed.
so it does exactly what was promissed. If you do not want this
"in addition" part then use "--recompile" instead of "--rebuild".
If you want to end up with new binary packages as well then
install your src.rpm and do 'rpmbuild -ba desired.spec'.
Michal