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 ...@@ -35,8 +35,6 @@ if [ "$VENDOR" = "alt" ] ; then
set_release $SPECNAME alt$(decrement_release $BASERELEASE).$MDISTR.$BASERELEASE set_release $SPECNAME alt$(decrement_release $BASERELEASE).$MDISTR.$BASERELEASE
ADDDEF="" ADDDEF=""
CLEANTEXT="" CLEANTEXT=""
# due new libtool
RECONFT="%undefine __libtoolize"
else else
# Need our compat package and disable strong patch checking # Need our compat package and disable strong patch checking
BUILDREQ="BuildRequires: rpm-build-altlinux-compat >= 0.95\n$FIXPATCHFUZZ" BUILDREQ="BuildRequires: rpm-build-altlinux-compat >= 0.95\n$FIXPATCHFUZZ"
...@@ -46,9 +44,13 @@ else ...@@ -46,9 +44,13 @@ else
CLEANTEXT="" CLEANTEXT=""
fi fi
# due new libtool, affected on ALT Linux and Mandriva 2009.0
RECONFT="%undefine __libtoolize"
# Do not add BuildReq if already exist # Do not add BuildReq if already exist
cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ="$FIXPATCHFUZZ" 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 # fix mktemp using for MCBC
if [ "$VENDOR" = "mcbc" ] ; then if [ "$VENDOR" = "mcbc" ] ; then
FIXMKTEMP="%__subst "s|mktemp -dt|mktemp -d|g" configure" FIXMKTEMP="%__subst "s|mktemp -dt|mktemp -d|g" configure"
...@@ -194,6 +196,8 @@ if [ "$VENDOR" = "alt" ] ; then ...@@ -194,6 +196,8 @@ if [ "$VENDOR" = "alt" ] ; then
else 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 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)" ENTRY="- autoport to `distr_vendor -d` $DISTRVERSION (by rpmbph script)"
#DISTRARG="--define '_vendor $VENDOR'"
export USE_VENDOR=$VENDOR
DISTRARG="" DISTRARG=""
fi fi
......
...@@ -12,6 +12,7 @@ set_eterbuilddir() ...@@ -12,6 +12,7 @@ set_eterbuilddir()
ETERBUILDDIR=/usr/share/eterbuild ETERBUILDDIR=/usr/share/eterbuild
else else
# if run from no system installation # if run from no system installation
# TODO: use real root dir not script dirname
ETERBUILDDIR=$(realpath `dirname $0`/../share/eterbuild) ETERBUILDDIR=$(realpath `dirname $0`/../share/eterbuild)
ETERBUILDETC=$(realpath `dirname $0`/../etc) ETERBUILDETC=$(realpath `dirname $0`/../etc)
if [ -r "$ETERBUILDETC/../AUTHORS" ] ; then if [ -r "$ETERBUILDETC/../AUTHORS" ] ; then
...@@ -19,11 +20,12 @@ set_eterbuilddir() ...@@ -19,11 +20,12 @@ set_eterbuilddir()
echo "Note: run from source tree, datadir=$ETERBUILDDIR, sysconfdir=$ETERBUILDETC" echo "Note: run from source tree, datadir=$ETERBUILDDIR, sysconfdir=$ETERBUILDETC"
fi fi
else else
warning "Cannot find source tree root in source tree mode"
ETERBUILDETC=/etc/eterbuild ETERBUILDETC=/etc/eterbuild
ETERBUILDDIR=/usr/share/eterbuild ETERBUILDDIR=/usr/share/eterbuild
fi fi
fi fi
ETERBUILDBIN=$(readlink -f $ETERBUILDDIR/../../bin) ETERBUILDBIN=$(realpath $ETERBUILDDIR/../../bin)
test -n "$ETERBUILDDIR" test -n "$ETERBUILDDIR"
# returns test result # returns test result
} }
......
...@@ -24,6 +24,10 @@ uni_rpmbuild() ...@@ -24,6 +24,10 @@ uni_rpmbuild()
# FIXME: do not override -v # FIXME: do not override -v
ONEPARAM="--define=_source_payload w9.gzdio" ONEPARAM="--define=_source_payload w9.gzdio"
fi fi
if [ -n "$USE_VENDOR" ] ; then
ONEPARAM="--define=_vendor $USE_VENDOR"
fi
if [ -n "$RPMTOPDIR" ] ; then if [ -n "$RPMTOPDIR" ] ; then
TWOPARAM="--define=_topdir $RPMTOPDIR" 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