Commit d84e48ac authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: add hacks for already backported releases

parent 17f914a3
...@@ -118,9 +118,15 @@ if [ "$PKGVENDOR" = "alt" ] ; then ...@@ -118,9 +118,15 @@ if [ "$PKGVENDOR" = "alt" ] ; then
;; ;;
esac esac
# Change release according to alt policy with extensions if is_backported_release $RELEASE ; then
# General rule: alwars alt(N-1).MM.(N) # TODO: do not use mask M00
docmd set_release $SPECNAME $(get_txtrelease $SPECNAME)$(decrement_release $BASERELEASE).$MDISTR.$BASERELEASE docmd set_release $SPECNAME "$(echo "$RELEASE" | sed -e "s|M[0-9][0-9][PCT]|$MDISTR|")"
else
# Change release according to alt policy with extensions
# General rule: alwars alt(N-1).MM.(N)
docmd set_release $SPECNAME $(get_txtrelease $SPECNAME)$(decrement_release $BASERELEASE).$MDISTR.$BASERELEASE
fi
ADDDEF="" ADDDEF=""
CLEANTEXT="" CLEANTEXT=""
# due new libtool, affected on ALT Linux # due new libtool, affected on ALT Linux
...@@ -168,7 +174,13 @@ else ...@@ -168,7 +174,13 @@ else
TXTRELEASE=$(get_txtrelease $SPECNAME) TXTRELEASE=$(get_txtrelease $SPECNAME)
# HACK: Override release with KORINFTARGETRELEASE if set # HACK: Override release with KORINFTARGETRELEASE if set
[ -z "$KORINFTARGETRELEASE" ] || TXTRELEASE=$KORINFTARGETRELEASE [ -z "$KORINFTARGETRELEASE" ] || TXTRELEASE=$KORINFTARGETRELEASE
docmd set_release $SPECNAME $TXTRELEASE$BASERELEASE$PKGVENDOR
if is_backported_release $RELEASE ; then
# TODO: do not use mask M00
docmd set_release $SPECNAME $TXTRELEASE"$(echo "$BASERELEASE" | sed -e "s|M[0-9][0-9][PCT].*||")"$PKGVENDOR
else
docmd set_release $SPECNAME $TXTRELEASE$BASERELEASE$PKGVENDOR
fi
test -z "$VERBOSE" || echo "Build package with release $TXTRELEASE" test -z "$VERBOSE" || echo "Build package with release $TXTRELEASE"
ADDDEF="%defattr(-, root, root)" ADDDEF="%defattr(-, root, root)"
CLEANTEXT="" CLEANTEXT=""
......
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