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
23 # use gz payload as time is what we need here, not compress ratio
26 --define '_source_payload w9.gzdio' \
27 --define '__spec_clean_body %{nil}' \
28 --define 'clean %%clean \
30 --define 'check %%check \
32 ${TARGET:+--target $TARGET} \
38 specfile="${1%.spec}.spec"; shift
39 set -- "$specfile" "$@"
41 tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
46 BCONDS=$(./builder -nn -ncs --show-bcond-args $specfile)
48 # just create the rpm's if -bb is somewhere in the args
49 if [[ *$@* != *-bb* ]]; then