Commit f35e47d9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add undefine libtoolize for al systems

set vendor when repack src.rpm with rpmbph
parent 51be2980
......@@ -35,8 +35,6 @@ if [ "$VENDOR" = "alt" ] ; then
set_release $SPECNAME alt$(decrement_release $BASERELEASE).$MDISTR.$BASERELEASE
ADDDEF=""
CLEANTEXT=""
# due new libtool
RECONFT="%undefine __libtoolize"
else
# Need our compat package and disable strong patch checking
BUILDREQ="BuildRequires: rpm-build-altlinux-compat >= 0.95\n$FIXPATCHFUZZ"
......@@ -46,9 +44,13 @@ else
CLEANTEXT=""
fi
# due new libtool, affected on ALT Linux and Mandriva 2009.0
RECONFT="%undefine __libtoolize"
# Do not add BuildReq if already exist
cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ="$FIXPATCHFUZZ"
# TODO: fix readlink -m, introduced by new libtool and missed in RHEL4
# fix mktemp using for MCBC
if [ "$VENDOR" = "mcbc" ] ; then
FIXMKTEMP="%__subst "s|mktemp -dt|mktemp -d|g" configure"
......@@ -194,6 +196,8 @@ if [ "$VENDOR" = "alt" ] ; then
else
subst "1i# This spec is autoported from ALT Linux Sisyphus to `distr_vendor -d` $DISTRVERSION automatically by rpmbph script. Do not edit it." $SPECNAME
ENTRY="- autoport to `distr_vendor -d` $DISTRVERSION (by rpmbph script)"
#DISTRARG="--define '_vendor $VENDOR'"
export USE_VENDOR=$VENDOR
DISTRARG=""
fi
......
......@@ -12,6 +12,7 @@ set_eterbuilddir()
ETERBUILDDIR=/usr/share/eterbuild
else
# if run from no system installation
# TODO: use real root dir not script dirname
ETERBUILDDIR=$(realpath `dirname $0`/../share/eterbuild)
ETERBUILDETC=$(realpath `dirname $0`/../etc)
if [ -r "$ETERBUILDETC/../AUTHORS" ] ; then
......@@ -19,11 +20,12 @@ set_eterbuilddir()
echo "Note: run from source tree, datadir=$ETERBUILDDIR, sysconfdir=$ETERBUILDETC"
fi
else
warning "Cannot find source tree root in source tree mode"
ETERBUILDETC=/etc/eterbuild
ETERBUILDDIR=/usr/share/eterbuild
fi
fi
ETERBUILDBIN=$(readlink -f $ETERBUILDDIR/../../bin)
ETERBUILDBIN=$(realpath $ETERBUILDDIR/../../bin)
test -n "$ETERBUILDDIR"
# returns test result
}
......
......@@ -24,6 +24,10 @@ uni_rpmbuild()
# FIXME: do not override -v
ONEPARAM="--define=_source_payload w9.gzdio"
fi
if [ -n "$USE_VENDOR" ] ; then
ONEPARAM="--define=_vendor $USE_VENDOR"
fi
if [ -n "$RPMTOPDIR" ] ; then
TWOPARAM="--define=_topdir $RPMTOPDIR"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment