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
25 --define '_source_payload w9.gzdio' \
26 --define 'clean exit 0; %{nil}' \
27 --define 'check exit 0; %{nil}' \
28 ${TARGET:+--target $TARGET} \
34 specfile="${1%.spec}.spec"; shift
35 set -- "$specfile" "$@"
37 tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
42 BCONDS=$(./builder -nn -ncs --show-bcond-args $specfile)
44 # just create the rpm's if -bb is somewhere in the args
45 if [[ *$@* != *-bb* ]]; then