openSUSE/obs-build — pull request #29 by xiaoqiang0 (2012-10-10 14:24:48+00:00)
Title: Support incremental build using --short-circuit option of rpmbuild

Incremental build is very important for developer, especially for developing
big project, such as webkit, kernel, ect.

This patch add three options to support incremental build:
--no-build: create build root using spec file, and don't execute
build stage
--short-circuit: incremental build option, this need work with --stage
option.
--no-topdir-cleanup: don't remove rpmbuild build topdir, this need
to be specified for incremental build

Basic usage:
1) $ build test.spec --no-build
2) $ mount source code to buildroot/abuild/rpmbuild/BUILD/$name-$verson
3) build packages
a) just compile
$ build test.spec --no-init --short-circuit --no-topdir-cleanup --stage=bc
b) generate RPM packags
$ build test.spec --no-init --short-circuit --no-topdir-cleanup --stage=bs
4) $ umount buildroot/abuild/rpmbuild/BUILD/$name-$verson