2 # will build package, skipping %prep and %build stage
8 # do %install and rpm package, skips %clean
9 # SPECS$ ./repackage.sh kdelibs.spec
11 # after that is done you could try only package creation (as %clean was
12 # skipped), for adjusting %files lists:
13 # SPECS$ ./repackage.sh kdelibs.spec -bb
15 # See also: SPECS/compile.sh
18 # - make builder to understand -bi and use builder for short-circuit
24 /usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
27 specfile="${1%.spec}.spec"; shift
28 set -- "$specfile" "$@"
30 tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
35 BCONDS=$(./builder -nn -ncs --show-bcond-args $specfile)
37 # just create the rpm's if -bb is somewhere in the args
38 if [[ *$@* != *-bb* ]]; then
41 rpmbuild -bb --define 'clean %{nil}' "$@"