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 '__spec_install_pre %___build_pre' \
29 --define 'clean %%clean \
31 --define 'check %%check \
33 ${TARGET:+--target $TARGET} \
39 specfile="${1%.spec}.spec"; shift
40 set -- "$specfile" "$@"
42 tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
47 BCONDS=$(./builder -nn -ncs --show-bcond-args $specfile)
49 # just create the rpm's if -bb is somewhere in the args
50 if [[ *$@* != *-bb* ]]; then