2 # will build package, skipping %prep and %build stage
8 # - make builder to understand -bi and use builder for short-circuit
14 /usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
17 specfile="${1%.spec}.spec"; shift
18 set -- "$specfile" "$@"
20 tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
25 BCONDS=$(./builder --show-bconds $specfile)
26 # ignore output from older builders whose output is not compatible.
27 if [ "$(echo "$BCONDS" | wc -l)" -gt 1 ]; then
31 # just create the rpm's if -bb is somewhere in the args
32 if [[ *$@* != *-bb* ]]; then
35 rpmbuild -bb --define 'clean %{nil}' "$@"