Commit b6089068 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix libtoolize, fix vendor setting

parent f35e47d9
...@@ -35,6 +35,8 @@ if [ "$VENDOR" = "alt" ] ; then ...@@ -35,6 +35,8 @@ 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, affected on ALT Linux
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"
...@@ -44,13 +46,15 @@ else ...@@ -44,13 +46,15 @@ else
CLEANTEXT="" CLEANTEXT=""
fi fi
# due new libtool, affected on ALT Linux and Mandriva 2009.0 if [ "$VENDOR" = "mdv" ] || [ "$VENDOR" = "pclinux" ] ; then
RECONFT="%undefine __libtoolize" # due new libtool, affected on Mandriva 2009.0
RECONFT="%define _disable_libtoolize 1"
fi
# 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 # TODO: fix readlink -m, introduced by new libtool and missed in RHEL4 (replace with readlink -e)
# 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"
......
...@@ -15,6 +15,7 @@ uni_rpmbuild() ...@@ -15,6 +15,7 @@ uni_rpmbuild()
# just for fill by something # just for fill by something
local ONEPARAM="-v" local ONEPARAM="-v"
local TWOPARAM="-v" local TWOPARAM="-v"
local THRPARAM="-v"
local SPECNAME=$1 local SPECNAME=$1
local SPECDIR=`dirname $SPECNAME` local SPECDIR=`dirname $SPECNAME`
...@@ -26,7 +27,7 @@ uni_rpmbuild() ...@@ -26,7 +27,7 @@ uni_rpmbuild()
fi fi
if [ -n "$USE_VENDOR" ] ; then if [ -n "$USE_VENDOR" ] ; then
ONEPARAM="--define=_vendor $USE_VENDOR" THRPARAM="--define=_vendor $USE_VENDOR"
fi fi
if [ -n "$RPMTOPDIR" ] ; then if [ -n "$RPMTOPDIR" ] ; then
...@@ -39,7 +40,7 @@ uni_rpmbuild() ...@@ -39,7 +40,7 @@ uni_rpmbuild()
#[ -n "$SPECDIR" ] && [ "$SPECDIR" != "." ] && warning "Spec is not in git dir (SPECDIR='$SPECDIR')" #[ -n "$SPECDIR" ] && [ "$SPECDIR" != "." ] && warning "Spec is not in git dir (SPECDIR='$SPECDIR')"
# build package without MENV checking # build package without MENV checking
if true || [ "$MENV" = "SS" ] ; then if true || [ "$MENV" = "SS" ] ; then
$NICE $GEAR --commit --rpmbuild -- $RPMBUILD "$ONEPARAM" "$TWOPARAM" $@ || RET=$? $NICE $GEAR --commit --rpmbuild -- $RPMBUILD "$ONEPARAM" "$TWOPARAM" "$THRPARAM" $@ || RET=$?
else else
fatal "Build backported src.rpm from git is unsupported now" fatal "Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT) # build src.rpm via hasher (on ALT)
...@@ -48,9 +49,9 @@ uni_rpmbuild() ...@@ -48,9 +49,9 @@ uni_rpmbuild()
fi fi
else else
mkdir -p $RPMTOPDIR/BUILD $RPMTOPDIR/SRPMS mkdir -p $RPMTOPDIR/BUILD $RPMTOPDIR/SRPMS
$NICE $RPMBUILD "$ONEPARAM" "$TWOPARAM" $@ || RET=$? $NICE $RPMBUILD "$ONEPARAM" "$TWOPARAM" "$THRPARAM" $@ || RET=$?
fi fi
[ -n "$VERBOSE" ] && echo "Run $RPMBUILD $ONEPARAM $TWOPARAM $@" || : [ -n "$VERBOSE" ] && echo "Run $RPMBUILD $ONEPARAM $TWOPARAM $THRPARAM $@" || :
return $RET return $RET
} }
......
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