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 -nn -ncs --show-bcond-args $specfile)
27 # just create the rpm's if -bb is somewhere in the args
28 if [[ *$@* != *-bb* ]]; then
31 rpmbuild -bb --define 'clean %{nil}' "$@"