Commit 0d0c93b5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbps: some improvements

parent da0fa230
...@@ -129,6 +129,8 @@ if [ "$PKGVENDOR" = "alt" ] ; then ...@@ -129,6 +129,8 @@ if [ "$PKGVENDOR" = "alt" ] ; then
ADDDEF="" ADDDEF=""
CLEANTEXT="" CLEANTEXT=""
# HACK: remove after eepm update
subst "s|^%define pkgsystem .*|%define pkgsystem $($DISTRVENDOR -g $DISTRNAME/$DISTRVERSION)|" $SPECNAME
else else
# All non ALT Linux distros # All non ALT Linux distros
# disabled by Lav https://bugs.etersoft.ru/show_bug.cgi?id=13034 # disabled by Lav https://bugs.etersoft.ru/show_bug.cgi?id=13034
...@@ -136,7 +138,10 @@ else ...@@ -136,7 +138,10 @@ else
BUILDREQ="BuildRequires:" BUILDREQ="BuildRequires:"
# Korinf hack # Korinf hack
if [ $(basename $SPECNAME) != "eepm.spec" ] ; then if [ $(basename $SPECNAME) = "eepm.spec" ] ; then
subst "s|^%define pkgsystem .*|%define pkgsystem $($DISTRVENDOR -g $DISTRNAME/$DISTRVERSION)|" $SPECNAME
fi
if [ $(basename $SPECNAME) != "rpm-build-altlinux-compat.spec" ] ; then
if ! grep -q "BuildRequires:.*rpm-build-altlinux-compat" $SPECNAME ; then if ! grep -q "BuildRequires:.*rpm-build-altlinux-compat" $SPECNAME ; then
# Need our compat package and disable strong patch checking # Need our compat package and disable strong patch checking
BUILDREQ="$BUILDREQ rpm-build-altlinux-compat >= 0.95" BUILDREQ="$BUILDREQ rpm-build-altlinux-compat >= 0.95"
...@@ -165,6 +170,9 @@ else ...@@ -165,6 +170,9 @@ else
# Hack for allow repack on x86_64 packages with ExclusiveArch: %{ix586} # Hack for allow repack on x86_64 packages with ExclusiveArch: %{ix586}
[ "$SYSARCH" = "x86_64" ] && subst "s|^ExclusiveArch:.*||g" $SPECNAME [ "$SYSARCH" = "x86_64" ] && subst "s|^ExclusiveArch:.*||g" $SPECNAME
# TODO? Where we need it?
subst 's|^%if %_vendor == "alt" &&.*|%if %_vendor == "alt" |' $SPECNAME
[ -z "$BUILDCOMMAND" ] && BUILDCOMMAND=$ETERBUILDBIN/rpmbb [ -z "$BUILDCOMMAND" ] && BUILDCOMMAND=$ETERBUILDBIN/rpmbb
if is_backported_release $RELEASE ; then if is_backported_release $RELEASE ; then
...@@ -178,8 +186,11 @@ else ...@@ -178,8 +186,11 @@ else
CLEANTEXT="" CLEANTEXT=""
fi fi
# configure32 is obsoleted
subst "s|^%configure32|%configure|" $SPECNAME
# Do not add BuildReq if already exist # Do not add BuildReq if already exist
cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ="" #cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ=""
# fix readlink -m, introduced by new libtool and missed in RHEL4 (replace with readlink -f) # fix readlink -m, introduced by new libtool and missed in RHEL4 (replace with readlink -f)
if [ "$DISTRNAME/$DISTRVERSION" = "ASPLinux/11.2" ] ; then if [ "$DISTRNAME/$DISTRVERSION" = "ASPLinux/11.2" ] ; then
......
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