2 if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then
4 SPECDIR=`rpm --define "_topdir $tmp" --eval "%{_specdir}"`
5 SRPMDIR=`rpm --define "_topdir $tmp" --eval "%{_srcrpmdir}"`
6 SOURCEDIR=`rpm --define "_topdir $tmp" --eval "%{_sourcedir}"`
7 BUILDDIR=`rpm --define "_topdir $tmp" --eval "%{_builddir}"`
8 RPMDIR=`rpm --define "_topdir $tmp" --eval "%{_rpmdir}"`
9 mkdir -p $SPECDIR $SRPMDIR $RPMDIR $SRPMDIR $SOURCEDIR $BUILDDIR
11 if echo "$3" | grep '\.src\.rpm$' >/dev/null; then
13 if echo "$3" | grep '://' >/dev/null; then
15 wget --passive-ftp -t0 "$3"
19 rpm2cpio `basename "$3"` | ( cd $SPECDIR; cpio -i @BASE_NAME@.spec )
20 if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then
21 rpm2cpio `basename "$3"` | ( cd $SOURCEDIR; cpio -i @COPYSOURCES@ )
25 cp -i "$3" $SPECDIR || exit 1
26 if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then
27 for i in @COPYSOURCES@; do
28 cp -i @DATADIR@/$i $SOURCEDIR/$i || exit 1
33 /usr/bin/builder --define _topdir $tmp -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec
34 if [ "$?" -ne 0 ]; then
37 RPMNAMES="$RPMDIR/@BASE_NAME@-@VERSION@-@RELEASE@wla.@TARGET_CPU@.rpm"
38 rpm -Uhv $RPMNAMES || echo -e "Install manually the file(s):\n $RPMNAMES" )
40 if [ "@LICENSE@" != '@'LICENSE'@' ]; then
43 If you accept the above license rebuild the package using:
47 License issues made us not to include inherent files into
48 this package by default. If you want to create full working
49 package please build it with the following command:
52 echo "$0 --with license_agreement @SPECFILE@"